DUECA/DUSIME
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
dueca::ReplicatorPeerJoined Struct Reference

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...
 
ReplicatorPeerJoinedoperator= (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...
 

Detailed Description

Notification message on the joining of a peer to a replicator network.

Constructor & Destructor Documentation

◆ ReplicatorPeerJoined() [1/3]

dueca::ReplicatorPeerJoined::ReplicatorPeerJoined ( )

default constructor.

◆ ReplicatorPeerJoined() [2/3]

dueca::ReplicatorPeerJoined::ReplicatorPeerJoined ( const ReplicatorPeerJoined o)

copy constructor.

◆ ReplicatorPeerJoined() [3/3]

dueca::ReplicatorPeerJoined::ReplicatorPeerJoined ( ::dueca::AmorphReStore r)

constructor to restore an ReplicatorPeerJoined from amorphous storage.

◆ ~ReplicatorPeerJoined()

dueca::ReplicatorPeerJoined::~ReplicatorPeerJoined ( )

destructor.

Member Function Documentation

◆ operator new() [1/2]

static void* dueca::ReplicatorPeerJoined::operator new ( size_t  size)
static

new operator "new", which places objects not on a heap, but in one of the memory arenas.

This to speed up memory management.

◆ operator delete()

static void dueca::ReplicatorPeerJoined::operator delete ( void *  p)
static

new operator "delete", to go with the new version of operator new.

◆ operator new() [2/2]

static void* dueca::ReplicatorPeerJoined::operator new ( size_t  size,
ReplicatorPeerJoined *&  o 
)
inlinestatic

placement "new", needed for stl.

◆ packData()

void dueca::ReplicatorPeerJoined::packData ( ::dueca::AmorphStore s) const

packs the ReplicatorPeerJoined into amorphous storage.

◆ packDataDiff()

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.

◆ unPackData()

void dueca::ReplicatorPeerJoined::unPackData ( ::dueca::AmorphReStore s)

unpacks the ReplicatorPeerJoined from an amorphous storage.

◆ unPackDataDiff()

void dueca::ReplicatorPeerJoined::unPackDataDiff ( ::dueca::AmorphReStore s)

unpacks the differences for ReplicatorPeerJoined from an amorphous storage.

◆ operator==()

bool dueca::ReplicatorPeerJoined::operator== ( const ReplicatorPeerJoined o) const

Test for equality.

◆ operator!=()

bool dueca::ReplicatorPeerJoined::operator!= ( const ReplicatorPeerJoined o) const
inline

Test for inequality.

◆ operator=()

ReplicatorPeerJoined& dueca::ReplicatorPeerJoined::operator= ( const ReplicatorPeerJoined o)

Assignment operator.

◆ print()

std::ostream& dueca::ReplicatorPeerJoined::print ( std::ostream &  s) const

prints the ReplicatorPeerJoined to a stream.

Member Data Documentation

◆ classname

const char* const dueca::ReplicatorPeerJoined::classname
static

The name of this class.

◆ magic_check_number

const uint32_t dueca::ReplicatorPeerJoined::magic_check_number
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.


The documentation for this struct was generated from the following file: