Support Forum       G3D Web Page     
Public Member Functions | Static Public Member Functions | List of all members
G3D::GUniqueID Class Reference

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
 
GUniqueIDoperator= (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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GUniqueID() [1/2]

G3D::GUniqueID::GUniqueID ( )
inline
See also
create

◆ GUniqueID() [2/2]

G3D::GUniqueID::GUniqueID ( const Any a)
inline
See also
create

Member Function Documentation

◆ create()

static GUniqueID G3D::GUniqueID::create ( uint16  tag = 0)
static

Create a new ID.

◆ deserialize() [1/2]

void G3D::GUniqueID::deserialize ( class BinaryInput b)

◆ deserialize() [2/2]

void G3D::GUniqueID::deserialize ( class TextInput t)

◆ fromString16()

static GUniqueID G3D::GUniqueID::fromString16 ( const String s)
static

◆ NONE()

static GUniqueID G3D::GUniqueID::NONE ( uint16  tag)
static

Returns the ID that has the specified tag (so that it is not uninitialized), but which is a common sentinel "none" value.

◆ operator uint64()

G3D::GUniqueID::operator uint64 ( ) const
inline

◆ operator!=()

bool G3D::GUniqueID::operator!= ( const GUniqueID other) const
inline

◆ operator=()

GUniqueID& G3D::GUniqueID::operator= ( const Any a)

◆ operator==()

bool G3D::GUniqueID::operator== ( const GUniqueID other) const
inline

◆ serialize() [1/2]

void G3D::GUniqueID::serialize ( class BinaryOutput b) const

◆ serialize() [2/2]

void G3D::GUniqueID::serialize ( class TextOutput t) const

◆ tag()

uint16 G3D::GUniqueID::tag ( ) const
inline

◆ toAny()

Any G3D::GUniqueID::toAny ( ) const

◆ toString16()

String G3D::GUniqueID::toString16 ( ) const

Returns a 16-character string equivalent to this GUniqueID's uint64 value.

◆ uninitialized()

bool G3D::GUniqueID::uninitialized ( ) const
inline

documentation generated on Wed Nov 24 2021 08:01:57 using doxygen 1.8.15