DUECA/DUSIME
|
Enum event type for keeping snapshot info. More...
Public Types | |
enum | Type { SnapClear, SnapPrepared, SnapNow, SnapTaken, SnapSendNotApplicable, SnapSent, SnapLoaded, SnapNotFilled, TooLateForSnap } |
Enum type for the different snapshot states and commands. More... | |
typedef SnapshotState | __ThisDCOType__ |
typedef for internal reference | |
Public Member Functions | |
SnapshotState () | |
default constructor. More... | |
SnapshotState (const Type &state) | |
Constructor with arguments. | |
SnapshotState (const SnapshotState &o) | |
copy constructor. More... | |
SnapshotState (::dueca::AmorphReStore &r) | |
constructor to restore an SnapshotState from amorphous storage. More... | |
~SnapshotState () | |
destructor. More... | |
void | packData (::dueca::AmorphStore &s) const |
packs the SnapshotState into amorphous storage. More... | |
void | packDataDiff (::dueca::AmorphStore &s, const SnapshotState &ref) const |
packs the SnapshotState into amorphous storage. More... | |
void | unPackData (::dueca::AmorphReStore &s) |
unpacks the SnapshotState from an amorphous storage. More... | |
void | unPackDataDiff (::dueca::AmorphReStore &s) |
unpacks the differences for SnapshotState from an amorphous storage. More... | |
bool | operator== (const SnapshotState &o) const |
Test for equality. More... | |
bool | operator!= (const SnapshotState &o) const |
Test for inequality. More... | |
SnapshotState & | operator= (const SnapshotState &o) |
Assignment operator. More... | |
std::ostream & | print (std::ostream &s) const |
prints the SnapshotState to a stream. 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, SnapshotState *&o) |
placement "new", needed for stl. More... | |
Public Attributes | |
Type | state |
actual state | |
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... | |
Enum event type for keeping snapshot info.
Enum type for the different snapshot states and commands.
dueca::SnapshotState::SnapshotState | ( | ) |
default constructor.
dueca::SnapshotState::SnapshotState | ( | const SnapshotState & | o | ) |
copy constructor.
dueca::SnapshotState::SnapshotState | ( | ::dueca::AmorphReStore & | r | ) |
constructor to restore an SnapshotState from amorphous storage.
dueca::SnapshotState::~SnapshotState | ( | ) |
destructor.
|
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::SnapshotState::packData | ( | ::dueca::AmorphStore & | s | ) | const |
packs the SnapshotState into amorphous storage.
void dueca::SnapshotState::packDataDiff | ( | ::dueca::AmorphStore & | s, |
const SnapshotState & | ref | ||
) | const |
packs the SnapshotState into amorphous storage.
only differences with a previous object are packed.
void dueca::SnapshotState::unPackData | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the SnapshotState from an amorphous storage.
void dueca::SnapshotState::unPackDataDiff | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the differences for SnapshotState from an amorphous storage.
bool dueca::SnapshotState::operator== | ( | const SnapshotState & | o | ) | const |
Test for equality.
|
inline |
Test for inequality.
SnapshotState& dueca::SnapshotState::operator= | ( | const SnapshotState & | o | ) |
Assignment operator.
std::ostream& dueca::SnapshotState::print | ( | std::ostream & | s | ) | const |
prints the SnapshotState to a stream.
|
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.