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