MADNESS
0.10.1
|
Key object that includes the process information. More...
#include <distributed_id.h>
Public Member Functions | |
ProcessKey () | |
Default constructor. More... | |
ProcessKey (const Key &key, const ProcessID proc) | |
Constructor. More... | |
ProcessKey (const ProcessKey< Key, Tag > &other) | |
Copy constructor. More... | |
const Key & | key () const |
Base key accessor. More... | |
bool | operator!= (const ProcessKey< Key, Tag > &other) const |
Inequality comparison. More... | |
ProcessKey< Key, Tag > & | operator= (const ProcessKey< Key, Tag > &other) |
Copy assignment operator. More... | |
bool | operator== (const ProcessKey< Key, Tag > &other) const |
Equality comparison. More... | |
ProcessID | proc () const |
Process ID accessor. More... | |
template<typename Archive > | |
void | serialize (const Archive &ar) |
Serialize this key. More... | |
Private Attributes | |
Key | key_ |
The base key type. More... | |
ProcessID | proc_ |
The process that generated the key. More... | |
Friends | |
hashT | hash_value (const ProcessKey< Key, Tag > &key) |
Hashing function. More... | |
Key object that includes the process information.
|
inline |
Default constructor.
|
inline |
Constructor.
[in] | key | The base key. |
[in] | proc | The process that generated the key. |
|
inline |
Copy constructor.
[in] | other | The key to be copied. |
|
inline |
Base key accessor.
References madness::ProcessKey< Key, Tag >::key_.
Referenced by madness::operator<<().
|
inline |
Inequality comparison.
[in] | other | The key to be compared to this. |
References madness::ProcessKey< Key, Tag >::key_, and madness::ProcessKey< Key, Tag >::proc_.
|
inline |
Copy assignment operator.
[in] | other | The key to be copied. |
References madness::ProcessKey< Key, Tag >::key_, and madness::ProcessKey< Key, Tag >::proc_.
|
inline |
Equality comparison.
[in] | other | The key to be compared to this. |
References madness::ProcessKey< Key, Tag >::key_, and madness::ProcessKey< Key, Tag >::proc_.
|
inline |
Process ID accessor.
References madness::ProcessKey< Key, Tag >::proc_.
Referenced by madness::operator<<().
|
inline |
Serialize this key.
Archive | The archive type. |
[in,out] | ar | The archive object that will serialize this object. |
References madness::ProcessKey< Key, Tag >::key_, and madness::ProcessKey< Key, Tag >::proc_.
|
friend |
Hashing function.
[in] | key | The key to be hashed. |
|
private |
|
private |
The process that generated the key.
Referenced by madness::ProcessKey< Key, Tag >::operator!=(), madness::ProcessKey< Key, Tag >::operator=(), madness::ProcessKey< Key, Tag >::operator==(), madness::ProcessKey< Key, Tag >::proc(), and madness::ProcessKey< Key, Tag >::serialize().