Horizon
Loading...
Searching...
No Matches
horizon::UUID Class Reference

This class encapsulates a UUID and allows it to be uses as a value type. More...

#include <uuid.hpp>

Public Member Functions

 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 Public Member Functions

static UUID random ()
static UUID UUID5 (const UUID &nsid, const unsigned char *name, size_t name_size)

Static Public Attributes

static constexpr auto size = sizeof(uuid_t)

Friends

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)

Detailed Description

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 )

Member Function Documentation

◆ 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: