![]() |
ezEngine
Milestone 9
|
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_ALWAYS_INLINE | ezUuid () |
Default constructor. Constructed Uuid will be invalid. [tested]. | |
EZ_ALWAYS_INLINE | ezUuid (ezUInt64 uiLow, ezUInt64 uiHigh) |
Constructs the Uuid from existing values. | |
EZ_ALWAYS_INLINE bool | operator== (const ezUuid &Other) const |
Comparison operator. [tested]. | |
EZ_ALWAYS_INLINE bool | operator!= (const ezUuid &Other) const |
Comparison operator. [tested]. | |
EZ_ALWAYS_INLINE bool | operator< (const ezUuid &Other) const |
Comparison operator. | |
EZ_ALWAYS_INLINE bool | IsValid () const |
Returns true if this is a valid Uuid. | |
EZ_ALWAYS_INLINE void | SetInvalid () |
Sets the Uuid to be invalid. | |
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_ALWAYS_INLINE void | CombineWithSeed (const ezUuid &seed) |
Adds the given seed value to this guid, creating a new guid. The process is reversible. | |
EZ_ALWAYS_INLINE void | RevertCombinationWithSeed (const ezUuid &seed) |
Subtracts the given seed from this guid, restoring the original guid. | |
EZ_ALWAYS_INLINE void | HashCombine (const ezUuid &hash) |
Combines two guids using hashing, irreversible and order dependent. | |
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. | |
static ezUuid | StableUuidForInt (ezInt64 iInt) |
Creates a uuid from an integer. The result is always the same for the same input. | |
Friends | |
EZ_FOUNDATION_DLL void | operator>> (ezStreamReader &Stream, ezUuid &Value) |
Operator to serialize ezUuid objects. [tested]. | |
EZ_FOUNDATION_DLL void | operator<< (ezStreamWriter &Stream, const ezUuid &Value) |
Operator to serialize ezUuid objects. [tested]. | |
This data type is the abstraction for 128-bit Uuid (also known as GUID) instances.