GlsMenu
1.5.4
|
#include <gls_menu_data.h>
Public Member Functions | |
GlsMenuDataMap_T (const std::string &name, MapT *map, GlsFunctor_T< GlsMenuData * > &CreateFunction) | |
GlsMenuDataMap_T (const std::string &name, GlsFunctor_T< GlsMenuData * > &CreateFunction) | |
virtual | ~GlsMenuDataMap_T () |
virtual std::ostream & | WriteValue (std::ostream &outstr) |
virtual std::istream & | ReadValue (std::istream &instr) |
virtual void | Inc (long amount=1) |
Protected Attributes | |
MapT * | _dataMap |
Map Storage for the meta-data. More... | |
GlsFunctor_T< GlsMenuData * > & | CreateDataItem |
Functor that creates new data items. More... | |
The GlsMenuDataMap_T provides a fully functional templatized map container type to hold menu meta-data.
Definition at line 487 of file gls_menu_data.h.
GlsMenuDataMap_T< MapT >::GlsMenuDataMap_T | ( | const std::string & | name, |
MapT * | map, | ||
GlsFunctor_T< GlsMenuData * > & | CreateFunction | ||
) |
Class constructor. Keeps a pointer to the specified type in sync with the simulation meta-data. This will set localStorage to false.
GlsMenuDataMap_T< MapT >::GlsMenuDataMap_T | ( | const std::string & | name, |
GlsFunctor_T< GlsMenuData * > & | CreateFunction | ||
) |
Class constructor. Actually creates storage for the simulation meta-data but will not initialize the value. This will set localStorage to true.
|
virtual |
Class destructor.
|
virtualinherited |
Increment the data item. Derived classes must override this as the default is a no-op.
Reimplemented in GlsMenuDiscrete_T< T >.
Referenced by GlsMenuSet_T< MenuType_t, DataFactory_t >::IncData().
|
virtual |
Reads the value from the input stream. The ReadValue call shall consume only what it needs. It is the responsibility of the calling function to read to the end of line, or to clean up from a bad read. The calling function will also ensure that the data starts as the next byte in the stream.
|
virtual |
Writes the value to the output stream.
|
protected |
Map Storage for the meta-data.
Definition at line 539 of file gls_menu_data.h.
|
protected |
Functor that creates new data items.
Definition at line 542 of file gls_menu_data.h.