|
DUECA/DUSIME
|
Name tuple as used in DUECA. More...
Public Types | |
| typedef NameSet | __ThisDCOType__ |
| typedef for internal reference | |
Public Member Functions | |
| NameSet () | |
| default constructor. More... | |
| NameSet (const std::string &name) | |
| Constructor with arguments. | |
| NameSet (const NameSet &o) | |
| copy constructor. More... | |
| NameSet (::dueca::AmorphReStore &r) | |
| constructor to restore an NameSet from amorphous storage. More... | |
| ~NameSet () | |
| destructor. More... | |
| void | packData (::dueca::AmorphStore &s) const |
| packs the NameSet into amorphous storage. More... | |
| void | packDataDiff (::dueca::AmorphStore &s, const NameSet &ref) const |
| packs the NameSet into amorphous storage. More... | |
| void | unPackData (::dueca::AmorphReStore &s) |
| unpacks the NameSet from an amorphous storage. More... | |
| void | unPackDataDiff (::dueca::AmorphReStore &s) |
| unpacks the differences for NameSet from an amorphous storage. More... | |
| bool | operator== (const NameSet &o) const |
| Test for equality. More... | |
| bool | operator!= (const NameSet &o) const |
| Test for inequality. More... | |
| NameSet & | operator= (const NameSet &o) |
| Assignment operator. More... | |
| std::ostream & | print (std::ostream &s) const |
| prints the NameSet to a stream. More... | |
| NameSet (const std::string &e, const std::string &c, const std::string &p) | |
| Old compatibility constructor for a complete name, using a three-part structure, results in name c://e/p or c://e if p is an empty string. More... | |
| NameSet (const std::string &e, const std::string &c, int p) | |
| Old compatibility constructor for a complete name, with the part as an integer. More... | |
| std::string | getEntity () const |
| Return the entity part only. | |
| std::string | getClass () const |
| Return class name part only. More... | |
| std::string | getPart () const |
| Return part name(s) only. More... | |
| bool | operator< (const NameSet &o) const |
| A nameset is considered smaller, when its name is alphabetically smaller. More... | |
| bool | operator> (const NameSet &o) const |
| A nameset is considered larger, when its name is alphabetically larger. More... | |
| void | validate_set () |
| validate, and throw an dueca::improper_nameset exception if required. 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, NameSet *&o) |
| placement "new", needed for stl. More... | |
Public Attributes | |
| std::string | name |
| A class member. | |
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... | |
Name tuple as used in DUECA.
The tuple is typically written in URL-type fashion, with the data class type before the dots, e.g., MyDataClass://entity/part, or MyDataClass://something
Originally, the naming in DUECA was limited to three-part names
This is now re-coded to a name of Class://Entity/Part, and if part is omitted, to Class://Entity
| dueca::NameSet::NameSet | ( | ) |
default constructor.
| dueca::NameSet::NameSet | ( | const NameSet & | o | ) |
copy constructor.
| dueca::NameSet::NameSet | ( | ::dueca::AmorphReStore & | r | ) |
constructor to restore an NameSet from amorphous storage.
| dueca::NameSet::~NameSet | ( | ) |
destructor.
| dueca::NameSet::NameSet | ( | const std::string & | e, |
| const std::string & | c, | ||
| const std::string & | p | ||
| ) |
Old compatibility constructor for a complete name, using a three-part structure, results in name c://e/p or c://e if p is an empty string.
| e | Entity part |
| c | Class part |
| p | part |
| dueca::NameSet::NameSet | ( | const std::string & | e, |
| const std::string & | c, | ||
| int | p | ||
| ) |
Old compatibility constructor for a complete name, with the part as an integer.
Often used for automatically generating a series of names, results in name c://e/p.
| e | Entity part |
| c | Class part |
| p | part, converted to string from integer |
|
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::NameSet::packData | ( | ::dueca::AmorphStore & | s | ) | const |
packs the NameSet into amorphous storage.
| void dueca::NameSet::packDataDiff | ( | ::dueca::AmorphStore & | s, |
| const NameSet & | ref | ||
| ) | const |
packs the NameSet into amorphous storage.
only differences with a previous object are packed.
| void dueca::NameSet::unPackData | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the NameSet from an amorphous storage.
| void dueca::NameSet::unPackDataDiff | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the differences for NameSet from an amorphous storage.
| bool dueca::NameSet::operator== | ( | const NameSet & | o | ) | const |
Test for equality.
|
inline |
Test for inequality.
| std::ostream& dueca::NameSet::print | ( | std::ostream & | s | ) | const |
prints the NameSet to a stream.
| std::string dueca::NameSet::getClass | ( | ) | const |
Return class name part only.
| std::string dueca::NameSet::getPart | ( | ) | const |
Return part name(s) only.
|
inline |
A nameset is considered smaller, when its name is alphabetically smaller.
| o | The other nameset |
|
inline |
A nameset is considered larger, when its name is alphabetically larger.
| o | The other nameset |
| void dueca::NameSet::validate_set | ( | ) |
validate, and throw an dueca::improper_nameset exception if required.
|
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.