class
UUID
64-bit identifier for entity IDs, asset handles and the like. Not a 128-bit RFC UUID — collision odds are correspondingly worse.
- Module
- Core
- Header
#include "Core/UUID.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
bool operator<(const UUID& other) | const | |
static const UUID | Invalid |
Constructors
| Signature | Name | Description |
|---|---|---|
UUID() : m_uuid(0) | UUID | Zero is the invalid value. |
explicit UUID(uint64_t uuid) : m_uuid(uuid) | UUID |
Public functions
| Returns | Name | Description |
|---|---|---|
UUID | Generate | |
UUID | FromString | |
bool | IsValid | |
operatorbool | ||
uint64_t | GetValue | |
std::string | ToString | Hex. |
std::string | ToCompactString | base64-like. |
bool | operator== | |
bool | operator!= | |
bool | operator> | |
bool | operator>= |
Function details
UUID
C++
UUID() : m_uuid(0)Zero is the invalid value.
UUID
C++
explicit UUID(uint64_t uuid) : m_uuid(uuid)Generate
C++
static UUID Generate()FromString
C++
static UUID FromString(const std::string& str)IsValid
C++
bool IsValid() constoperatorbool
C++
explicit operator bool() constGetValue
C++
uint64_t GetValue() constToString
C++
std::string ToString() constHex.
ToCompactString
C++
std::string ToCompactString() constbase64-like.
operator==
C++
bool operator==(const UUID& other) constoperator!=
C++
bool operator!=(const UUID& other) constoperator>
C++
bool operator>(const UUID& other) constoperator>=
C++
bool operator>=(const UUID& other) constGenerated from Core/UUID.h via core.json · Nov 5, 2026Version 1.0.0