Equalizer
1.2.1
|
Provides a universally unique identifier. More...
#include <uuid.h>
Public Member Functions | |
UUID (const bool generate=false) | |
Construct a new universally unique identifier. | |
UUID (const uint64_t high_, const uint64_t low_) | |
Construct a new universally unique identifier. | |
UUID (const uint128_t &from) | |
Construct a new universally unique identifier from an unsigned 128 bit integer value. | |
UUID & | operator= (const std::string &from) |
Assign another UUID from a string representation. | |
bool | isGenerated () const |
Provides a universally unique identifier.
Not to be subclassed.
co::base::UUID::UUID | ( | const bool | generate = false | ) | [inline, explicit] |
Construct a new universally unique identifier.
If generate is set to true, a new UUID is allocated. Otherwise the UUID is cleared, i.e., it is equal to UUID::ZERO.
Definition at line 44 of file uuid.h.
References co::base::RNG::get(), co::base::uint128_t::high(), and co::base::uint128_t::low().
co::base::UUID::UUID | ( | const uint64_t | high_, |
const uint64_t | low_ | ||
) | [inline] |
co::base::UUID::UUID | ( | const uint128_t & | from | ) | [inline] |
bool co::base::UUID::isGenerated | ( | ) | const [inline] |
Definition at line 73 of file uuid.h.
References co::base::uint128_t::high().
UUID& co::base::UUID::operator= | ( | const std::string & | from | ) | [inline] |
Assign another UUID from a string representation.
Reimplemented from co::base::uint128_t.