DUECA/DUSIME
|
Describes the state a module may be in. More...
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. More... | |
ModuleState (const Type &t) | |
Constructor with arguments. | |
ModuleState (const ModuleState &o) | |
copy constructor. More... | |
ModuleState (::dueca::AmorphReStore &r) | |
constructor to restore an ModuleState from amorphous storage. More... | |
~ModuleState () | |
destructor. More... | |
void | packData (::dueca::AmorphStore &s) const |
packs the ModuleState into amorphous storage. More... | |
void | packDataDiff (::dueca::AmorphStore &s, const ModuleState &ref) const |
packs the ModuleState into amorphous storage. More... | |
void | unPackData (::dueca::AmorphReStore &s) |
unpacks the ModuleState from an amorphous storage. More... | |
void | unPackDataDiff (::dueca::AmorphReStore &s) |
unpacks the differences for ModuleState from an amorphous storage. More... | |
bool | operator== (const ModuleState &o) const |
Test for equality. More... | |
bool | operator!= (const ModuleState &o) const |
Test for inequality. More... | |
ModuleState & | operator= (const ModuleState &o) |
Assignment operator. More... | |
std::ostream & | print (std::ostream &s) const |
prints the ModuleState to a stream. More... | |
ModuleState (const std::string &s) | |
Constructor from a string. More... | |
Type | get () const |
Obtain the enumerated type. More... | |
ModuleState & | operator= (const ModuleState::Type &o) |
Assignment with type. More... | |
bool | operator== (const ModuleState::Type &o) const |
Test equality. More... | |
bool | operator!= (const ModuleState::Type &o) const |
Test inequality. More... | |
ModuleState | operator&& (const ModuleState &o) const |
Combine two states, into a new one. More... | |
ModuleState & | operator&= (const ModuleState &o) |
Combine and possibly change this state. More... | |
void | neutral () |
Set to neutral/clear status. More... | |
const char * | getString () const |
Obtain the state as a string value. More... | |
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. More... | |
static void | operator delete (void *p) |
new operator "delete", to go with the new version of operator new. More... | |
static void * | operator new (size_t size, ModuleState *&o) |
placement "new", needed for stl. More... | |
Public Attributes | |
Type | t |
A class member. | |
Static Public Attributes | |
static const char *const | classname |
The name of this class. More... | |
static const uint32_t | magic_check_number |
a "magic" number, hashed out of the class definition, that will be used to check consistency of the sent objects across the dueca nodes. More... | |
Describes the state a module may be in.
Enum type for the different modulestate types.
dueca::ModuleState::ModuleState | ( | ) |
default constructor.
dueca::ModuleState::ModuleState | ( | const ModuleState & | o | ) |
copy constructor.
dueca::ModuleState::ModuleState | ( | ::dueca::AmorphReStore & | r | ) |
constructor to restore an ModuleState from amorphous storage.
dueca::ModuleState::~ModuleState | ( | ) |
destructor.
dueca::ModuleState::ModuleState | ( | const std::string & | s | ) |
Constructor from a string.
|
static |
new operator "new", which places objects not on a heap, but in one of the memory arenas.
This to speed up memory management.
|
static |
new operator "delete", to go with the new version of operator new.
|
inlinestatic |
placement "new", needed for stl.
void dueca::ModuleState::packData | ( | ::dueca::AmorphStore & | s | ) | const |
packs the ModuleState into amorphous storage.
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.
void dueca::ModuleState::unPackData | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the ModuleState from an amorphous storage.
void dueca::ModuleState::unPackDataDiff | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the differences for ModuleState from an amorphous storage.
bool dueca::ModuleState::operator== | ( | const ModuleState & | o | ) | const |
Test for equality.
|
inline |
Test for inequality.
ModuleState& dueca::ModuleState::operator= | ( | const ModuleState & | o | ) |
Assignment operator.
std::ostream& dueca::ModuleState::print | ( | std::ostream & | s | ) | const |
prints the ModuleState to a stream.
|
inline |
Obtain the enumerated type.
|
inline |
Assignment with type.
|
inline |
Test equality.
|
inline |
Test inequality.
ModuleState dueca::ModuleState::operator && | ( | const ModuleState & | o | ) | const |
Combine two states, into a new one.
ModuleState& dueca::ModuleState::operator &= | ( | const ModuleState & | o | ) |
Combine and possibly change this state.
|
inline |
Set to neutral/clear status.
const char* dueca::ModuleState::getString | ( | ) | const |
Obtain the state as a string value.
|
static |
The name of this class.
|
static |
a "magic" number, hashed out of the class definition, that will be used to check consistency of the sent objects across the dueca nodes.