|
DUECA/DUSIME
|
Start information for a peer joining a replicator network. More...
Public Types | |
| enum | MessageType { AddPeer, AddEntry, RemoveEntry, RemovePeer, Undefined } |
| defines type of message More... | |
| typedef ReplicatorInfo | __ThisDCOType__ |
| typedef for internal reference | |
Public Member Functions | |
| ReplicatorInfo () | |
| default constructor. More... | |
| ReplicatorInfo (const MessageType &mtype, const peer_id_t &peer_id, const entry_id_t &entry_id, const vstring &name, const vstring &channelname, const vstring &dataclass) | |
| Constructor with arguments. | |
| ReplicatorInfo (const ReplicatorInfo &o) | |
| copy constructor. More... | |
| ReplicatorInfo (::dueca::AmorphReStore &r) | |
| constructor to restore an ReplicatorInfo from amorphous storage. More... | |
| ~ReplicatorInfo () | |
| destructor. More... | |
| void | packData (::dueca::AmorphStore &s) const |
| packs the ReplicatorInfo into amorphous storage. More... | |
| void | packDataDiff (::dueca::AmorphStore &s, const ReplicatorInfo &ref) const |
| packs the ReplicatorInfo into amorphous storage. More... | |
| void | unPackData (::dueca::AmorphReStore &s) |
| unpacks the ReplicatorInfo from an amorphous storage. More... | |
| void | unPackDataDiff (::dueca::AmorphReStore &s) |
| unpacks the differences for ReplicatorInfo from an amorphous storage. More... | |
| bool | operator== (const ReplicatorInfo &o) const |
| Test for equality. More... | |
| bool | operator!= (const ReplicatorInfo &o) const |
| Test for inequality. More... | |
| ReplicatorInfo & | operator= (const ReplicatorInfo &o) |
| Assignment operator. More... | |
| std::ostream & | print (std::ostream &s) const |
| prints the ReplicatorInfo 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 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. More... | |
| static void * | operator new (size_t size, ReplicatorInfo *&o) |
| placement "new", needed for stl. More... | |
Public Attributes | |
| MessageType | mtype |
| type of information message | |
| peer_id_t | peer_id |
| peer id | |
| entry_id_t | entry_id |
| entry id | |
| vstring | name |
| name, used for peer internet address or channel entry label | |
| vstring | channelname |
| channel name | |
| vstring | dataclass |
| data class of the entry | |
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... | |
Start information for a peer joining a replicator network.
defines type of message
| dueca::ReplicatorInfo::ReplicatorInfo | ( | ) |
default constructor.
| dueca::ReplicatorInfo::ReplicatorInfo | ( | const ReplicatorInfo & | o | ) |
copy constructor.
| dueca::ReplicatorInfo::ReplicatorInfo | ( | ::dueca::AmorphReStore & | r | ) |
constructor to restore an ReplicatorInfo from amorphous storage.
| dueca::ReplicatorInfo::~ReplicatorInfo | ( | ) |
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::ReplicatorInfo::packData | ( | ::dueca::AmorphStore & | s | ) | const |
packs the ReplicatorInfo into amorphous storage.
| void dueca::ReplicatorInfo::packDataDiff | ( | ::dueca::AmorphStore & | s, |
| const ReplicatorInfo & | ref | ||
| ) | const |
packs the ReplicatorInfo into amorphous storage.
only differences with a previous object are packed.
| void dueca::ReplicatorInfo::unPackData | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the ReplicatorInfo from an amorphous storage.
| void dueca::ReplicatorInfo::unPackDataDiff | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the differences for ReplicatorInfo from an amorphous storage.
| bool dueca::ReplicatorInfo::operator== | ( | const ReplicatorInfo & | o | ) | const |
Test for equality.
|
inline |
Test for inequality.
| ReplicatorInfo& dueca::ReplicatorInfo::operator= | ( | const ReplicatorInfo & | o | ) |
Assignment operator.
| std::ostream& dueca::ReplicatorInfo::print | ( | std::ostream & | s | ) | const |
prints the ReplicatorInfo 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.