38 #ifndef MADNESS_WORLD_UNIQUEID_H__INCLUDED
39 #define MADNESS_WORLD_UNIQUEID_H__INCLUDED
74 explicit operator bool()
const {
82 template <
typename Archive>
108 template <
typename CharT,
typename Traits>
109 friend std::basic_ostream<CharT, Traits>&
operator<<(std::basic_ostream<CharT, Traits>& s,
const uniqueidT&
id) {
110 s <<
"{" <<
id.get_world_id() <<
"," <<
id.get_obj_id() <<
"}";
121 return a.get_obj_id() ==
b.get_obj_id() &&
a.get_world_id() ==
b.get_world_id();
139 return a.get_world_id() <
b.get_world_id() || (
a.get_world_id() ==
b.get_world_id() &&
a.get_obj_id() <
b.get_obj_id());
A parallel world class.
Definition: world.h:132
Class for unique global IDs.
Definition: uniqueid.h:53
uniqueidT()
Default constructor.
Definition: uniqueid.h:61
friend std::basic_ostream< CharT, Traits > & operator<<(std::basic_ostream< CharT, Traits > &s, const uniqueidT &id)
Stream insertion function for a uniqueidT.
Definition: uniqueid.h:109
unsigned long get_obj_id() const
Access the object ID.
Definition: uniqueid.h:97
unsigned long objid
ID of the object.
Definition: uniqueid.h:57
uniqueidT(unsigned long worldid, unsigned long objid)
Constructor that uses the world and object IDs.
Definition: uniqueid.h:68
unsigned long worldid
ID of the World the object belongs to.
Definition: uniqueid.h:56
unsigned long get_world_id() const
Access the World ID.
Definition: uniqueid.h:90
void serialize(Archive &ar)
Serialize a unique ID object.
Definition: uniqueid.h:83
bool operator<(const uniqueidT &a, const uniqueidT &b)
Ordering operator.
Definition: uniqueid.h:138
void combine_hash(hashT &seed, hashT hash)
Internal use only.
Definition: worldhash.h:248
File holds all helper structures necessary for the CC_Operator and CC2 class.
Definition: DFParameters.h:10
bool operator!=(const ResponseParameters &p1, const ResponseParameters &p2)
Definition: response_parameters.cpp:17
bool operator==(const ResponseParameters &p1, const ResponseParameters &p2)
Definition: response_parameters.cpp:12
std::size_t hashT
The hash value type.
Definition: worldhash.h:145
madness::hashT hash_value(const std::array< T, N > &a)
Hash std::array with madness hash.
Definition: array_addons.h:78
static const double b
Definition: nonlinschro.cc:119
static const double a
Definition: nonlinschro.cc:118
Defines hash functions for use in distributed containers.