![]() |
ezEngine Release 26.3
|
128-bit Universally Unique Identifier (UUID/GUID) for object identification and referencing. More...
#include <Uuid.h>
Public Member Functions | |
| EZ_DECLARE_POD_TYPE () | |
| EZ_ALWAYS_INLINE | ezUuid ()=default |
| Default constructor. Constructed Uuid will be invalid. | |
| EZ_ALWAYS_INLINE constexpr | 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. | |
| void | GetValues (ezUInt64 &ref_uiLow, ezUInt64 &ref_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 EZ_ALWAYS_INLINE ezUuid | MakeInvalid () |
| Returns an invalid UUID. | |
| static ezUuid | MakeUuid () |
| Returns a new Uuid. | |
| static ezUuid | MakeStableUuidFromString (ezStringView sString) |
| Creates a uuid from a string. The result is always the same for the same string. | |
| static ezUuid | MakeStableUuidFromInt (ezInt64 iInt) |
| Creates a uuid from an integer. The result is always the same for the same input. | |
Friends | |
| EZ_FOUNDATION_DLL_FRIEND void | operator>> (ezStreamReader &inout_stream, ezUuid &ref_value) |
| Operator to serialize ezUuid objects. [tested]. | |
| EZ_FOUNDATION_DLL_FRIEND void | operator<< (ezStreamWriter &inout_stream, const ezUuid &value) |
| Operator to serialize ezUuid objects. [tested]. | |
128-bit Universally Unique Identifier (UUID/GUID) for object identification and referencing.
ezUuid provides a robust way to uniquely identify objects, assets, or entities across systems, time, and network boundaries. It's essential for serialization, asset management, networking, and any scenario where objects need stable, globally unique identities.