Gromacs
2016.6
|
#include <gromacs/options/basicoptions.h>
Type-specific implementation for EnumIndexStoreInterface.
This class is instantiated for each enum type for which EnumOption is used, and takes care of managing the int
-to-enum
conversions as described in EnumIndexStoreInterface. Having this as a template in the header allows the actual storage implementation to not be in the header, which would require exposing all the internals through this one header...
Public Member Functions | |
EnumIndexStore (EnumType *store, std::vector< EnumType > *storeVector) | |
Initializes the storage for the given actual enum variables. | |
virtual std::vector< int > | initialValues () const |
Returns initial values from the actual enum variables. | |
virtual void | reserveSpace (size_t count) |
Reserves space for storage in the actual enum variables. | |
virtual void | refreshValues (const std::vector< int > &values) |
Updates values in the actual enum variables based on option values. | |