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
void G3D::GUniqueID::deserialize | ( | class BinaryInput & | b | ) |
void G3D::GUniqueID::deserialize | ( | class TextInput & | t | ) |
Returns the ID that has the specified tag (so that it is not uninitialized), but which is a common sentinel "none" value.
|
inline |
void G3D::GUniqueID::serialize | ( | class BinaryOutput & | b | ) | const |
void G3D::GUniqueID::serialize | ( | class TextOutput & | t | ) | const |
|
inline |
Any G3D::GUniqueID::toAny | ( | ) | const |
std::string G3D::GUniqueID::toString16 | ( | ) | const |
Returns a 16-character string equivalent to this GUniqueID's uint64 value.
|
inline |
|
private |