UUID class, using the Boost uuid implementation. More...
#include <UUID.hpp>
Public Member Functions | |
UUID () | |
Construct a new UUID with a random value. More... | |
UUID (const UUID ©)=default | |
Construct a new UUID by copying the supplied instance. More... | |
std::array< unsigned char, 16 > | asArray () const |
Get the UUID as a std::array of bytes. More... | |
const unsigned char * | asBytes () const |
Get the UUID as raw bytes. More... | |
template<typename AllocatorT > | |
Balau::U8String< AllocatorT > | asString () const |
Get the UUID as a UTF-8 string. More... | |
std::string | asString () const |
Get the UUID as a UTF-8 string. More... | |
const boost::uuids::uuid & | asUUID () const |
Get the UUID as the underlying Boost UUID. More... | |
bool | operator!= (const UUID &rhs) const |
Are the two UUIDs not equal? More... | |
bool | operator< (const UUID &rhs) const |
Is this UUID less than the supplied UUID? More... | |
bool | operator<= (const UUID &rhs) const |
Is this UUID less or equal to the supplied UUID? More... | |
bool | operator== (const UUID &rhs) const |
Are the two UUIDs equal? More... | |
bool | operator> (const UUID &rhs) const |
Is this UUID greater than the supplied UUID? More... | |
bool | operator>= (const UUID &rhs) const |
Is this UUID greater or equal to the supplied UUID? More... | |
UUID class, using the Boost uuid implementation.
|
inline |
Get the UUID as a std::array of bytes.
This allocates a std::array object.
|
inline |
Get the UUID as raw bytes.
This returns the bytes directly. No object construction is performed.
|
inline |
Get the UUID as a UTF-8 string.
This allocates a string stream and string object.
|
inline |
Get the UUID as a UTF-8 string.
This allocates a string stream and string object.
|
inline |
|
inline |
Are the two UUIDs not equal?
|
inline |
Are the two UUIDs equal?
|
inline |