Lunchbox
1.4.0
|
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.
lunchbox::UUID::UUID | ( | const bool | generate = false | ) | [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.
lunchbox::UUID::UUID | ( | const uint64_t | high_, |
const uint64_t | low_ | ||
) | [inline] |
lunchbox::UUID::UUID | ( | const uint128_t & | from | ) | [inline] |
bool lunchbox::UUID::isGenerated | ( | ) | const [inline] |
Definition at line 61 of file uuid.h.
References lunchbox::uint128_t::high().
UUID& lunchbox::UUID::operator= | ( | const std::string & | from | ) | [inline] |
Assign another UUID from a string representation.
Reimplemented from lunchbox::uint128_t.