Gromacs
2018.4
|
#include <gromacs/options/basicoptions.h>
Type-specific implementation for IOptionValueStore for an enum option.
This class is instantiated for each enum type for which EnumOption is used, and takes care of managing int
-to-enum
conversions. Having this part 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 int | valueCount () |
Returns the number of values stored so far. | |
virtual ArrayRef< int > | values () |
Returns a reference to the actual values. | |
virtual void | clear () |
Removes all stored values. | |
virtual void | reserve (size_t count) |
Reserves memory for additional count entries. | |
virtual void | append (const int &value) |
Appends a value to the store. | |