DUECA/DUSIME
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
dueca::GlobalId Struct Reference

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.
 
GlobalIdoperator= (const GlobalId &o)
 Assignment operator.
 
std::ostream & print (std::ostream &s) const
 prints the GlobalId to a stream.
 

Static Public Member Functions

static voidoperator 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 voidoperator 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.
 

Detailed Description

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

Member Function Documentation

◆ operator new()

static void * dueca::GlobalId::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.

◆ packDataDiff()

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.


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