![]() |
TrinityCore
|
#include <GUniqueID.h>
Public Member Functions | |
| GUniqueID () | |
| GUniqueID & | operator= (const Any &a) |
| GUniqueID (const Any &a) | |
| Any | toAny () const |
| std::string | toString16 () const |
| bool | uninitialized () const |
| uint16 | tag () const |
| operator uint64 () const | |
| bool | operator== (const GUniqueID &other) const |
| bool | operator!= (const GUniqueID &other) const |
| void | serialize (class BinaryOutput &b) const |
| void | deserialize (class BinaryInput &b) |
| void | serialize (class TextOutput &t) const |
| void | deserialize (class TextInput &t) |
Static Public Member Functions | |
| static GUniqueID | fromString16 (const std::string &s) |
| static GUniqueID | NONE (uint16 tag) |
| static GUniqueID | create (uint16 tag=0) |
Private Attributes | |
| uint64 | id |
Globally unique identifiers. The probability of two different programs generating the same value from UniqueID::create is vanishingly small.
UniqueIDs optionally contain a 10-bit application specific tag that distinguishes their type.
|
inline |
Create a new ID
Here is the call graph for this function:| void G3D::GUniqueID::deserialize | ( | class BinaryInput & | b | ) |
| void G3D::GUniqueID::deserialize | ( | class TextInput & | t | ) |
Here is the call graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:Returns the ID that has the specified tag (so that it is not uninitialized), but which is a common sentinel "none" value.
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:| void G3D::GUniqueID::serialize | ( | class BinaryOutput & | b | ) | const |
| void G3D::GUniqueID::serialize | ( | class TextOutput & | t | ) | const |
|
inline |
| Any G3D::GUniqueID::toAny | ( | ) | const |
Here is the call graph for this function:| std::string G3D::GUniqueID::toString16 | ( | ) | const |
Returns a 16-character string equivalent to this GUniqueID's uint64 value.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
private |
1.8.8