AGX Dynamics 2.38.0.0
|
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distributed environment without significant central coordination. More...
#include <Uuid.h>
Classes | |
struct | Data |
struct | Less |
Sorting functor of an uuid. More... | |
Public Member Functions | |
Uuid () | |
Constructor. | |
Uuid (const agx::String &uuidString) | |
Constructor, will construct a uuid based on the given Uuis formatted string. | |
agx::UInt8 * | data () |
const agx::UInt8 * | data () const |
UInt32 | hash () const |
bool | isNil () const |
If this method returns true, the str() method will return a string of zeros. | |
bool | operator!= (const Uuid &rhs) const |
bool | operator< (const Uuid &rhs) const |
bool | operator== (const Uuid &rhs) const |
bool | operator> (const Uuid &rhs) const |
agx::String | str () const |
Static Public Member Functions | |
static Uuid | generateFromString (const agx::String &seedString) |
Generate a valid UUID string from a specified input string. | |
static size_t | size () |
Protected Attributes | |
Data | m_data |
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distributed environment without significant central coordination.
It can be used to tag objects with very short lifetimes, or to reliably identify very persistent objects across a network. Generator of UUID values based on V4 http://en.wikipedia.org/wiki/Universally_unique_identifier
agx::Uuid::Uuid | ( | ) |
Constructor.
|
explicit |
Constructor, will construct a uuid based on the given Uuis formatted string.
uuidString | - THe string with a uuid value |
agx::UInt8 * agx::Uuid::data | ( | ) |
const agx::UInt8 * agx::Uuid::data | ( | ) | const |
Referenced by agx::operator>>().
|
static |
Generate a valid UUID string from a specified input string.
The algorithm will use the specified string as a seed to generate an Uuid in the standard form. There is no guarantee that the Uuid is truly unique.
seedString | - A string used as a seed to create a unique identifier |
UInt32 agx::Uuid::hash | ( | ) | const |
Definition at line 213 of file Uuid.h.
References agx::Uuid::Data::ab, agx::Uuid::Data::cd, agx::hash(), and m_data.
|
inline |
|
inline |
Definition at line 59 of file Uuid.h.
References agx::Uuid::Data::ab, agx::Uuid::Data::cd, and m_data.
|
inline |
Definition at line 64 of file Uuid.h.
References agx::Uuid::Data::ab, agx::Uuid::Data::cd, and m_data.
|
inline |
Definition at line 54 of file Uuid.h.
References agx::Uuid::Data::ab, agx::Uuid::Data::cd, and m_data.
|
inline |
Definition at line 72 of file Uuid.h.
References agx::Uuid::Data::ab, agx::Uuid::Data::cd, and m_data.
|
inlinestatic |
Definition at line 90 of file Uuid.h.
Referenced by agx::operator>>().
agx::String agx::Uuid::str | ( | ) | const |
References agx::hash().
|
protected |
Definition at line 141 of file Uuid.h.
Referenced by hash(), operator!=(), operator<(), operator==(), and operator>().