This class encapsulates a UUID and allows it to be uses as a value type.
More...
#include <uuid.hpp>
|
| UUID (const char *str) |
|
| UUID (const std::string &str) |
|
| operator std::string () const |
|
| operator bool () const |
|
const unsigned char * | get_bytes () const |
|
size_t | hash () const |
|
|
static UUID | random () |
|
static UUID | UUID5 (const UUID &nsid, const unsigned char *name, size_t name_size) |
|
|
static constexpr auto | size = sizeof(uuid_t) |
|
|
bool | operator== (const UUID &self, const UUID &other) |
|
bool | operator!= (const UUID &self, const UUID &other) |
|
bool | operator< (const UUID &self, const UUID &other) |
|
bool | operator> (const UUID &self, const UUID &other) |
|
This class encapsulates a UUID and allows it to be uses as a value type.
It uses uuid.h from libutil or the UUID function from the win32 rpc api ( see util/uuid_win32.hpp )
◆ operator bool()
horizon::UUID::operator bool |
( |
| ) |
const |
- Returns
- true if uuid is non-null, false otherwise
The documentation for this class was generated from the following files: