MADNESS
version 0.9
|
Key object that uses a tag to differentiate keys. More...
#include <dist_keys.h>
Public Member Functions | |
TaggedKey () | |
Default constructor. More... | |
TaggedKey (const Key &key) | |
Constructor. More... | |
TaggedKey (const TaggedKey< Key, Tag > &other) | |
Copy constructor. More... | |
TaggedKey< Key, Tag > & | operator= (const TaggedKey< Key, Tag > &other) |
Copy assignment operator. More... | |
const Key & | key () const |
Base key accessor. More... | |
bool | operator== (const TaggedKey< Key, Tag > &other) const |
Equality comparison. More... | |
bool | operator!= (const TaggedKey< Key, Tag > &other) const |
Inequality comparison. More... | |
template<typename Archive > | |
void | serialize (const Archive &ar) |
Serialize this key. More... | |
Friends | |
hashT | hash_value (const TaggedKey< Key, Tag > &key) |
Hashing function. More... | |
Key object that uses a tag to differentiate keys.
Key | The base key type |
Tag | A type to differentiate key types |
|
inline |
Default constructor.
|
inline |
Constructor.
key | The base key |
proc | The process that generated the key |
|
inline |
Copy constructor.
other | The key to be copied |
|
inline |
Base key accessor.
|
inline |
Inequality comparison.
other | The key to be compared to this |
true
when other key or other process are not equal to that of this key, otherwise false
.
|
inline |
Copy assignment operator.
other | The key to be copied |
|
inline |
Equality comparison.
other | The key to be compared to this |
true
when other key and other process are equal to that of this key, otherwise false
.
|
inline |
Serialize this key.
Archive | The archive type |
ar | The archive object that will serialize this object |
Hashing function.
key | The key to be hashed |