|
DUECA/DUSIME
|
Describes the state a module may be in. More...
#include <ModuleState.hxx>
Public Types | |
| enum | Type { UnPrepared , InitialPrep , Safe , Prepared , On , Neutral , Undefined } |
| Enum type for the different modulestate types. More... | |
| typedef ModuleState | __ThisDCOType__ |
| typedef for internal reference | |
Public Member Functions | |
| ModuleState () | |
| default constructor. | |
| ModuleState (const Type &t) | |
| Constructor with arguments. | |
| ModuleState (const ModuleState &o) | |
| copy constructor. | |
| ModuleState (::dueca::AmorphReStore &r) | |
| constructor to restore an ModuleState from amorphous storage. | |
| ~ModuleState () | |
| destructor. | |
| void | packData (::dueca::AmorphStore &s) const |
| packs the ModuleState into amorphous storage. | |
| void | packDataDiff (::dueca::AmorphStore &s, const ModuleState &ref) const |
| packs the ModuleState into amorphous storage. | |
| void | unPackData (::dueca::AmorphReStore &s) |
| unpacks the ModuleState from an amorphous storage. | |
| void | unPackDataDiff (::dueca::AmorphReStore &s) |
| unpacks the differences for ModuleState from an amorphous storage. | |
| bool | operator== (const ModuleState &o) const |
| Test for equality. | |
| bool | operator!= (const ModuleState &o) const |
| Test for inequality. | |
| ModuleState & | operator= (const ModuleState &o) |
| Assignment operator. | |
| std::ostream & | print (std::ostream &s) const |
| prints the ModuleState to a stream. | |
| ModuleState (const std::string &s) | |
| Constructor from a string. | |
| Type | get () const |
| Obtain the enumerated type. | |
| ModuleState & | operator= (const ModuleState::Type &o) |
| Assignment with type. | |
| bool | operator== (const ModuleState::Type &o) const |
| Test equality. | |
| bool | operator!= (const ModuleState::Type &o) const |
| Test inequality. | |
| ModuleState | operator&& (const ModuleState &o) const |
| Combine two states, into a new one. | |
| ModuleState & | operator&= (const ModuleState &o) |
| Combine and possibly change this state. | |
| void | neutral () |
| Set to neutral/clear status. | |
| const char * | getString () const |
| Obtain the state as a string value. | |
Static Public Member Functions | |
| static void * | operator new (size_t size) |
| new operator "new", which places objects not on a heap, but in one of the memory arenas. | |
| static void * | operator new (size_t size, void *mem) |
| accompanying placement operator "new" | |
| static void | operator delete (void *p) |
| new operator "delete", to go with the new version of operator new. | |
| static void * | operator new (size_t size, ModuleState *&o) |
| placement "new", needed for stl. | |
Public Attributes | |
| Type | t |
| A class member. | |
Describes the state a module may be in.
Enum type for the different modulestate types.
|
static |
new operator "new", which places objects not on a heap, but in one of the memory arenas.
This to speed up memory management.
| void dueca::ModuleState::packDataDiff | ( | ::dueca::AmorphStore & | s, |
| const ModuleState & | ref ) const |
packs the ModuleState into amorphous storage.
only differences with a previous object are packed.