ezEngine  Milestone 7
ezUuid Class Reference

This data type is the abstraction for 128-bit Uuid (also known as GUID) instances. More...

#include <Uuid.h>

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
EZ_FORCE_INLINE ezUuid ()
 Default constructor. Constructed Uuid will be invalid. [tested].
 
EZ_FORCE_INLINE ezUuid (ezUInt64 uiLow, ezUInt64 uiHigh)
 Constructs the Uuid from existing values.
 
EZ_FORCE_INLINE bool operator== (const ezUuid &Other) const
 Comparison operator. [tested].
 
EZ_FORCE_INLINE bool operator!= (const ezUuid &Other) const
 Comparison operator. [tested].
 
EZ_FORCE_INLINE bool operator< (const ezUuid &Other) const
 Comparison operator.
 
EZ_FORCE_INLINE bool IsValid () const
 Returns true if this is a valid Uuid.
 
void CreateNewUuid ()
 Creates a new Uuid and stores is it in this object.
 
void GetValues (ezUInt64 &uiLow, ezUInt64 &uiHigh) const
 Returns the internal 128 Bit of data.
 
EZ_FORCE_INLINE void CombineWithSeed (const ezUuid &seed)
 Adds the given seed value to this guid, creating a new guid. The process is reversible.
 
EZ_FORCE_INLINE void RevertCombinationWithSeed (const ezUuid &seed)
 Subtracts the given seed from this guid, restoring the original guid.
 

Static Public Member Functions

static ezUuid StableUuidForString (const char *szString)
 Creates a uuid from a string. The result is always the same for the same string.
 

Private Attributes

ezUInt64 m_uiHigh
 
ezUInt64 m_uiLow
 

Friends

EZ_FOUNDATION_DLL void operator>> (ezStreamReaderBase &Stream, ezUuid &Value)
 Operator to serialize ezUuid objects. [tested].
 
EZ_FOUNDATION_DLL void operator<< (ezStreamWriterBase &Stream, const ezUuid &Value)
 Operator to serialize ezUuid objects. [tested].
 

Detailed Description

This data type is the abstraction for 128-bit Uuid (also known as GUID) instances.


The documentation for this class was generated from the following files: