Horizon
Public Member Functions | Static Public Member Functions | Friends | List of all members
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
 

Static Public Member Functions

static UUID random ()
 

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
inline
Returns
true if uuid is non-null, false otherwise

The documentation for this class was generated from the following files: