|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef OFFLINE_V5_POOL_GUID_H
12 #define OFFLINE_V5_POOL_GUID_H
43 explicit Guid(
bool assign) {
if ( assign )
create(*
this); }
56 for (
size_t i = 0;
i < 8;
i++) {
67 if (
Data1 !=
g.Data1 )
return false;
68 if (
Data2 !=
g.Data2 )
return false;
69 if (
Data3 !=
g.Data3 )
return false;
70 const unsigned int *
p = (
const unsigned int*)&
Data4[0],
71 *
q = (
const unsigned int*)&
g.Data4[0];
72 return *
p++ == *
q++ && *
p == *
q;
85 static const Guid&
null();
90 #endif // OFFLINE_V5_POOL_GUID_H
bool operator!=(const Guid &g) const
Non-equality operator.
bool operator<(const Guid &g) const
Smaller operator.
Guid & operator=(const Guid &g)
Assignment operator.
const std::string toString() const
Automatic conversion from string reprentation.
static void create(Guid &guid)
Create a new Guid.
Guid()
Standard constructor (No initialization of data for performance reasons)
Guid(const char *s)
Constructor for Guid from char*.
const Guid & fromString(const std::string &s)
Automatic conversion to string representation.
Guid(bool assign)
Standard constructor (With possible initialization)
Guid(const std::string &s)
Constructor for Guid from string.
Guid(const Guid &c)
Copy constructor.
bool operator==(const Guid &g) const
Equality operator.