DUECA/DUSIME
|
This class defines an ID pair, consisting of a location id, identifying a participating dueca node, and an object id, identifying an object (or channel) created in that node. More...
#include <GlobalId.hxx>
Public Types | |
typedef GlobalId | __ThisDCOType__ |
typedef for internal reference | |
Public Member Functions | |
GlobalId () | |
default constructor. | |
GlobalId (const LocationId &location, const ObjectId &object) | |
Constructor with arguments. | |
GlobalId (const GlobalId &o) | |
copy constructor. | |
GlobalId (::dueca::AmorphReStore &r) | |
constructor to restore an GlobalId from amorphous storage. | |
~GlobalId () | |
destructor. | |
void | packData (::dueca::AmorphStore &s) const |
packs the GlobalId into amorphous storage. | |
void | packDataDiff (::dueca::AmorphStore &s, const GlobalId &ref) const |
packs the GlobalId into amorphous storage. | |
void | unPackData (::dueca::AmorphReStore &s) |
unpacks the GlobalId from an amorphous storage. | |
void | unPackDataDiff (::dueca::AmorphReStore &s) |
unpacks the differences for GlobalId from an amorphous storage. | |
bool | operator== (const GlobalId &o) const |
Test for equality. | |
bool | operator!= (const GlobalId &o) const |
Test for inequality. | |
GlobalId & | operator= (const GlobalId &o) |
Assignment operator. | |
std::ostream & | print (std::ostream &s) const |
prints the GlobalId 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, GlobalId *&o) |
placement "new", needed for stl. | |
Public Attributes | |
LocationId | location |
ID part pointing to the dueca node. | |
ObjectId | object |
Unique ID within the dueca node. | |
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. | |
This class defines an ID pair, consisting of a location id, identifying a participating dueca node, and an object id, identifying an object (or channel) created in that node.
The ObjectManager maintains a list of references to local objects, indexed on the object id, the ChannelManager does the same for channels.
Local and remote queries for an object, defined by its name and the entity in which it participates, are returned with a GlobalId
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::GlobalId::packDataDiff | ( | ::dueca::AmorphStore & | s, |
const GlobalId & | ref ) const |
packs the GlobalId into amorphous storage.
only differences with a previous object are packed.