Gromacs
2024.4
|
Private implementation class for OptionsAssigner.
Public Types | |
typedef internal::OptionSectionImpl | Section |
Shorthand for the internal type used to represent a section. | |
Public Member Functions | |
Impl (Options *options) | |
Sets the option object to assign to. | |
bool | inSection () const |
Returns true if a subsection has been set. | |
Section & | currentSection () const |
Returns the Options object for the current section. | |
AbstractOptionStorage * | findOption (const char *name) |
Finds an option by the given name. More... | |
Public Attributes | |
Options & | options_ |
Options object to assign to. | |
bool | bAcceptBooleanNoPrefix_ |
Recognize boolean option "name" also as "noname". | |
std::vector< Section * > | sectionStack_ |
List of (sub)sections being assigned to. More... | |
AbstractOptionStorage * | currentOption_ |
Current option being assigned to, or NULL if none. | |
int | currentValueCount_ |
Number of values assigned so far to the current option. More... | |
bool | reverseBoolean_ |
If true, a "no" prefix was given for the current boolean option. | |
AbstractOptionStorage * gmx::OptionsAssigner::Impl::findOption | ( | const char * | name | ) |
Finds an option by the given name.
[in] | name | Name of the option to look for. |
This function takes into account the flags specified, and may change the internal state of the assigner to match the option found. If no option is found, the internal state is not modified.
int gmx::OptionsAssigner::Impl::currentValueCount_ |
Number of values assigned so far to the current option.
Counts the number of attempted assignments, whether they have been successful or not.
std::vector<Section*> gmx::OptionsAssigner::Impl::sectionStack_ |
List of (sub)sections being assigned to.
The first element always points to options_.