|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef PERSISTENTDATAMODEL_GUID_H
6 #define PERSISTENTDATAMODEL_GUID_H
47 if (
m_data1 !=
g.m_data1 )
return false;
48 if (
m_data2 !=
g.m_data2 )
return false;
49 if (
m_data3 !=
g.m_data3 )
return false;
50 const unsigned int*
p = (
const unsigned int*)
m_data4, *
q = (
const unsigned int*)
g.m_data4;
51 return *
p++ == *
q++ && *
p == *
q;
65 static const Guid&
null();
80 unsigned char data4(
unsigned int i)
const {
if (
i < 8)
return m_data4[
i];
return 0; }
Guid()
Standard constructor.
char data[hepevt_bytes_allocation_ATLAS]
static GuidGenMethod initGuidGenMethod()
Checks for POOL_GUID_TIME or POOL_GUID_RANDOM env variables.
void setData1(unsigned int data)
Allow modifiers for member data.
Guid(const Guid &c)
Copy constructor.
bool operator==(const std::string &g) const
const std::string toString() const
Automatic conversion to string representation.
Guid(bool assign)
Standard constructor (With possible initialization)
unsigned int data1() const
Allow accessors to member data.
unsigned short data3() const
unsigned short data2() const
static void create(Guid &guid, GuidGenMethod method=GuidGenDefault)
Create a new Guid default method is currently Random, can be changed by param, API or environment.
friend bool operator==(const std::string &str, const Guid &rhs)
Equality operator.
friend bool operator!=(const std::string &str, const Guid &rhs)
Non-equality operator.
Guid(const std::string &s)
Constructor for Guid from string.
bool operator<(const Guid &g) const
Smaller operator.
bool operator==(const Guid &g) const
Equality operator.
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Guid & operator=(const Guid &g)
Assignment operator.
static const GuidGenMethod m_guidGenMethod
friend std::ostream & operator<<(std::ostream &os, const Guid &rhs)
Extraction operators.
void setData3(unsigned short data)
unsigned char data4(unsigned int i) const
const Guid & fromString(const std::string &s)
Automatic conversion from string representation.
Guid(const char *s)
Constructor for Guid from char*.
bool operator!=(const std::string &g) const
void setData4(unsigned char data, unsigned int i)
void setData2(unsigned short data)
bool operator!=(const Guid &g) const
Non-equality operator.