Leosac  0.8.0
Open Source Access Control
Leosac::UUID Class Reference

Thin wrapper around boost::uuids::uuid. More...

#include <Uuid.hpp>

Public Member Functions

 UUID ()=default
 
 UUID (const UUID &)=default
 
 UUID (const boost::uuids::uuid &uuid)
 
bool operator== (const UUID &other) const
 
bool operator!= (const UUID &other) const
 
bool is_nil () const
 
std::string to_string () const
 
bool operator< (const UUID &o) const
 

Static Public Member Functions

static UUID null_uuid ()
 Returns a null UUID with a full zero value. More...
 
static UUID random_uuid ()
 

Private Attributes

boost::uuids::uuid uuid_
 

Friends

class odb::access
 

Detailed Description

Thin wrapper around boost::uuids::uuid.

Definition at line 35 of file Uuid.hpp.

Constructor & Destructor Documentation

◆ UUID() [1/3]

Leosac::UUID::UUID ( )
default

◆ UUID() [2/3]

Leosac::UUID::UUID ( const UUID )
default

◆ UUID() [3/3]

Leosac::UUID::UUID ( const boost::uuids::uuid &  uuid)
inlineexplicit

Definition at line 42 of file Uuid.hpp.

Member Function Documentation

◆ is_nil()

bool Leosac::UUID::is_nil ( ) const
inline

Definition at line 57 of file Uuid.hpp.

◆ null_uuid()

static UUID Leosac::UUID::null_uuid ( )
inlinestatic

Returns a null UUID with a full zero value.

Definition at line 70 of file Uuid.hpp.

◆ operator!=()

bool Leosac::UUID::operator!= ( const UUID other) const
inline

Definition at line 52 of file Uuid.hpp.

◆ operator<()

bool Leosac::UUID::operator< ( const UUID o) const
inline

Definition at line 83 of file Uuid.hpp.

◆ operator==()

bool Leosac::UUID::operator== ( const UUID other) const
inline

Definition at line 47 of file Uuid.hpp.

◆ random_uuid()

static UUID Leosac::UUID::random_uuid ( )
inlinestatic

Definition at line 77 of file Uuid.hpp.

◆ to_string()

std::string Leosac::UUID::to_string ( ) const
inline

Definition at line 62 of file Uuid.hpp.

Friends And Related Function Documentation

◆ odb::access

friend class odb::access
friend

Definition at line 91 of file Uuid.hpp.

Member Data Documentation

◆ uuid_

boost::uuids::uuid Leosac::UUID::uuid_
private

Definition at line 89 of file Uuid.hpp.


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