A++ » INCLUDE » TUUID

class TUUID


TUUID

This class defines a UUID (Universally Unique IDentifier), also
known as GUIDs (Globally Unique IDentifier). A UUID is 128 bits
long, and if generated according to this algorithm, is either
guaranteed to be different from all other UUIDs/GUIDs generated
until 3400 A.D. or extremely likely to be different. UUIDs were
originally used in the Network Computing System (NCS) and
later in the Open Software Foundation's (OSF) Distributed Computing
Environment (DCE).


Function Members (Methods)

public:
virtual~TUUID()
const char*AsString() const
static TClass*Class()
Int_tCompare(const TUUID& u) const
voidFillBuffer(char*& buffer)
TInetAddressGetHostAddress() const
TDatimeGetTime() const
voidGetUUID(UChar_t[16] uuid) const
UInt_tGetUUIDNumber() const
UShort_tHash() const
virtual TClass*IsA() const
TUUID&operator=(const TUUID&)
voidPrint() const
voidReadBuffer(char*& buffer)
voidSetUUID(const char* uuid_str)
voidSetUUIDNumber(UInt_t index)
virtual voidShowMembers(TMemberInspector& insp) const
Int_tSizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
voidStreamerV1(TBuffer& b)
TUUID()
TUUID(const char* uuid_str)
TUUID(const TUUID&)
protected:
Int_tCmpTime(TUUID::uuid_time_t* t1, TUUID::uuid_time_t* t2)
voidFormat(UShort_t clockseq, TUUID::uuid_time_t ts)
voidGetCurrentTime(TUUID::uuid_time_t* timestamp)
voidGetNodeIdentifier()
voidGetRandomInfo(UChar_t[16] seed)
voidGetSystemTime(TUUID::uuid_time_t* timestamp)
voidSetFromString(const char* uuid_str)

Data Members

protected:
UChar_tfClockSeqHiAndReservedhigh 6 clock bits + 2 bits reserved
UChar_tfClockSeqLowlow 8 clock bits
UChar_tfNode[6]6 node id bytes
UShort_tfTimeHiAndVersionhigh 12 time bits + 4 UUID version bits
UInt_tfTimeLow60 bit time, lower 32 bits
UShort_tfTimeMidmiddle 16 time bits
UInt_tfUUIDIndex!index in the list of UUIDs in TProcessUUID

Class Charts

Inheritance Chart:
TUUID

Function documentation

Int_t CmpTime(TUUID::uuid_time_t* t1, TUUID::uuid_time_t* t2)
void Format(UShort_t clockseq, TUUID::uuid_time_t ts)
void GetNodeIdentifier()
void GetCurrentTime(TUUID::uuid_time_t* timestamp)
void GetSystemTime(TUUID::uuid_time_t* timestamp)
void GetRandomInfo(UChar_t[16] seed)
void SetFromString(const char* uuid_str)
TUUID()
TUUID(const char* uuid_str)
virtual ~TUUID()
const char * AsString() const
Int_t Compare(const TUUID& u) const
UShort_t Hash() const
void Print() const
TInetAddress GetHostAddress() const
TDatime GetTime() const
void GetUUID(UChar_t[16] uuid) const
void SetUUID(const char* uuid_str)
UInt_t GetUUIDNumber() const
{ return fUUIDIndex; }
void SetUUIDNumber(UInt_t index)
{ fUUIDIndex = index; }
void StreamerV1(TBuffer& b)
void FillBuffer(char*& buffer)
void ReadBuffer(char*& buffer)
Int_t Sizeof() const
{ return 18; }