DUECA/DUSIME
|
Notification message on the joining of a peer to a replicator network. More...
Public Types | |
typedef ReplicatorPeerJoined | __ThisDCOType__ |
typedef for internal reference | |
Public Member Functions | |
ReplicatorPeerJoined () | |
default constructor. More... | |
ReplicatorPeerJoined (const vstring &netaddress, const uint16_t &peer_id) | |
Constructor with arguments. | |
ReplicatorPeerJoined (const ReplicatorPeerJoined &o) | |
copy constructor. More... | |
ReplicatorPeerJoined (::dueca::AmorphReStore &r) | |
constructor to restore an ReplicatorPeerJoined from amorphous storage. More... | |
~ReplicatorPeerJoined () | |
destructor. More... | |
void | packData (::dueca::AmorphStore &s) const |
packs the ReplicatorPeerJoined into amorphous storage. More... | |
void | packDataDiff (::dueca::AmorphStore &s, const ReplicatorPeerJoined &ref) const |
packs the ReplicatorPeerJoined into amorphous storage. More... | |
void | unPackData (::dueca::AmorphReStore &s) |
unpacks the ReplicatorPeerJoined from an amorphous storage. More... | |
void | unPackDataDiff (::dueca::AmorphReStore &s) |
unpacks the differences for ReplicatorPeerJoined from an amorphous storage. More... | |
bool | operator== (const ReplicatorPeerJoined &o) const |
Test for equality. More... | |
bool | operator!= (const ReplicatorPeerJoined &o) const |
Test for inequality. More... | |
ReplicatorPeerJoined & | operator= (const ReplicatorPeerJoined &o) |
Assignment operator. More... | |
std::ostream & | print (std::ostream &s) const |
prints the ReplicatorPeerJoined 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, ReplicatorPeerJoined *&o) |
placement "new", needed for stl. More... | |
Public Attributes | |
vstring | netaddress |
network address of the joining peer | |
uint16_t | peer_id |
proposed peer id – for matching a possible response | |
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... | |
Notification message on the joining of a peer to a replicator network.
dueca::ReplicatorPeerJoined::ReplicatorPeerJoined | ( | ) |
default constructor.
dueca::ReplicatorPeerJoined::ReplicatorPeerJoined | ( | const ReplicatorPeerJoined & | o | ) |
copy constructor.
dueca::ReplicatorPeerJoined::ReplicatorPeerJoined | ( | ::dueca::AmorphReStore & | r | ) |
constructor to restore an ReplicatorPeerJoined from amorphous storage.
dueca::ReplicatorPeerJoined::~ReplicatorPeerJoined | ( | ) |
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::ReplicatorPeerJoined::packData | ( | ::dueca::AmorphStore & | s | ) | const |
packs the ReplicatorPeerJoined into amorphous storage.
void dueca::ReplicatorPeerJoined::packDataDiff | ( | ::dueca::AmorphStore & | s, |
const ReplicatorPeerJoined & | ref | ||
) | const |
packs the ReplicatorPeerJoined into amorphous storage.
only differences with a previous object are packed.
void dueca::ReplicatorPeerJoined::unPackData | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the ReplicatorPeerJoined from an amorphous storage.
void dueca::ReplicatorPeerJoined::unPackDataDiff | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the differences for ReplicatorPeerJoined from an amorphous storage.
bool dueca::ReplicatorPeerJoined::operator== | ( | const ReplicatorPeerJoined & | o | ) | const |
Test for equality.
|
inline |
Test for inequality.
ReplicatorPeerJoined& dueca::ReplicatorPeerJoined::operator= | ( | const ReplicatorPeerJoined & | o | ) |
Assignment operator.
std::ostream& dueca::ReplicatorPeerJoined::print | ( | std::ostream & | s | ) | const |
prints the ReplicatorPeerJoined 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.