Clean up option (default) value access
commit48d253102e8ad5e646394772124f0a7b6896d267
authorTeemu Murtola <teemu.murtola@gmail.com>
Thu, 20 Oct 2016 16:04:15 +0000 (20 19:04 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Fri, 21 Oct 2016 17:03:09 +0000 (21 19:03 +0200)
tree38d385640605ec4442064154468290cc4b47db03
parent0144c5c05d4a65d9413cdbef1df55b90aff8f5f7
Clean up option (default) value access

Currently, the only user for valueCount() and formatValue() in
OptionInfo was actually interested in the default values, and limiting
access to the default values only makes the responsibilities clearer.
So replace both methods with a single method that returns just the
default values.  The internal implementation currently places some
limitations on when this can actually be called, but that should not be
a problem for current or future uses.

Change-Id: I3e68ce397ec3f40f62ececad4ee6b87d0ecc790e
src/gromacs/commandline/cmdlinehelpwriter.cpp
src/gromacs/options/abstractoption.cpp
src/gromacs/options/abstractoption.h
src/gromacs/options/abstractoptionstorage.h
src/gromacs/options/optionstoragetemplate.h
src/gromacs/selection/selectionfileoptionstorage.h