Support Forum G3D Web Page |
Globally unique identifiers. More...
Public Member Functions | |
GUniqueID () | |
GUniqueID (const Any &a) | |
void | deserialize (class BinaryInput &b) |
void | deserialize (class TextInput &t) |
operator uint64 () const | |
bool | operator!= (const GUniqueID &other) const |
GUniqueID & | operator= (const Any &a) |
bool | operator== (const GUniqueID &other) const |
void | serialize (class BinaryOutput &b) const |
void | serialize (class TextOutput &t) const |
uint16 | tag () const |
Any | toAny () const |
String | toString16 () const |
Returns a 16-character string equivalent to this GUniqueID's uint64 value. More... | |
bool | uninitialized () const |
Static Public Member Functions | |
static GUniqueID | create (uint16 tag=0) |
Create a new ID. More... | |
static GUniqueID | fromString16 (const String &s) |
static GUniqueID | NONE (uint16 tag) |
Returns the ID that has the specified tag (so that it is not uninitialized), but which is a common sentinel "none" value. More... | |
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 |
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 |
|
inline |
|
inline |
void G3D::GUniqueID::serialize | ( | class BinaryOutput & | b | ) | const |
void G3D::GUniqueID::serialize | ( | class TextOutput & | t | ) | const |
|
inline |
Any G3D::GUniqueID::toAny | ( | ) | const |
String G3D::GUniqueID::toString16 | ( | ) | const |
Returns a 16-character string equivalent to this GUniqueID's uint64 value.
|
inline |