Gromacs
2018.8
|
#include <gromacs/options/options-impl.h>
Describes a group of options (see Options::addGroup()).
Public Types | |
typedef std::vector < AbstractOptionStorage * > | OptionList |
Convenience typedef for list of options. | |
typedef std::list< Group > | SubgroupList |
Convenience typedef for list of subgroups. | |
Public Member Functions | |
Group (OptionSectionImpl *parent) | |
Creates a group within the given Options. | |
virtual IOptionsContainer & | addGroup () |
Creates a subgroup of options within the current options. More... | |
virtual OptionInfo * | addOptionImpl (const AbstractOption &settings) |
Adds a recognized option. More... | |
Public Member Functions inherited from gmx::IOptionsContainer | |
template<class OptionType > | |
OptionType::InfoType * | addOption (const OptionType &settings) |
Adds a recognized option. More... | |
Public Attributes | |
OptionSectionImpl * | parent_ |
Containing options object. | |
OptionList | options_ |
List of options, in insertion order. More... | |
SubgroupList | subgroups_ |
List of groups, in insertion order. | |
Additional Inherited Members |
|
virtual |
Creates a subgroup of options within the current options.
To add options to the group, use the returned interface.
Currently, this is only used to influence the order of options: all options in a group appear before options in a group added after it, no matter in which order the options are added to the groups. In the future, the groups could also be used to influence the help output.
Implements gmx::IOptionsContainer.
|
virtual |
Adds a recognized option.
[in] | settings | Option description. |
APIError | if invalid option settings are provided. |
This method provides the internal implementation, but the templated method is called from user code. See the templated method for more details.
Implements gmx::IOptionsContainer.
OptionList gmx::internal::OptionSectionImpl::Group::options_ |
List of options, in insertion order.
Pointers in this container point to the objects managed by Impl::optionsMap_.