Lunchbox
1.8.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 int rhs) |
Assign an integer value. | |
UUID & | operator= (const std::string &from) |
Assign another UUID from a string representation. | |
bool | isGenerated () const |
Public Member Functions inherited from lunchbox::uint128_t | |
uint128_t (const uint64_t low_=0) | |
Construct a new 128 bit integer with a default value. | |
uint128_t (const uint64_t high_, const uint64_t low_) | |
Construct a new 128 bit integer with default values. | |
uint128_t (const std::string &string) | |
Construct a new 128 bit integer from a string representation. | |
uint128_t & | operator= (const uint128_t &rhs) |
Assign another 128 bit value. | |
uint128_t & | operator= (const uint64_t rhs) |
Assign another 64 bit value. | |
bool | operator== (const uint128_t &rhs) const |
bool | operator!= (const uint128_t &rhs) const |
bool | operator< (const uint128_t &rhs) const |
bool | operator> (const uint128_t &rhs) const |
bool | operator<= (const uint128_t &rhs) const |
bool | operator>= (const uint128_t &rhs) const |
uint128_t & | operator++ () |
Increment the value. | |
uint128_t & | operator-- () |
Decrement the value. | |
uint128_t & | operator+= (const uint128_t &rhs) |
Add value and return the new value. | |
const uint64_t & | low () const |
const uint64_t & | high () const |
uint64_t & | low () |
uint64_t & | high () |
std::string | getShortString () const |
std::string | getString () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Serialize this object to a boost archive. |
Provides a universally unique identifier.
Not to be subclassed.
|
explicit |
|
inline |
|
inline |
|
inline |
Definition at line 65 of file uuid.h.
References lunchbox::uint128_t::high().
|
inline |
|
inline |
Assign another UUID from a string representation.
Reimplemented from lunchbox::uint128_t.