Elaztek Developer Hub
Blamite Game Engine - Strings  00386.06.16.23.0646.blamite
A library containing general purpose utilities and classes for use in multiple projects.
uuids::uuid Class Reference

#include <uuid.h>

Public Types

using value_type = uint8_t
 

Public Member Functions

constexpr uuid () noexcept=default
 
 uuid (value_type(&arr)[16]) noexcept
 
constexpr uuid (std::array< value_type, 16 > const &arr) noexcept
 
 uuid (span< value_type, 16 > bytes)
 
template<typename ForwardIterator >
 uuid (ForwardIterator first, ForwardIterator last)
 
constexpr uuid_variant variant () const noexcept
 
constexpr uuid_version version () const noexcept
 
constexpr bool is_nil () const noexcept
 
void swap (uuid &other) noexcept
 
span< std::byte const, 16 > as_bytes () const
 

Static Public Member Functions

template<typename StringType >
constexpr static bool is_valid_uuid (StringType const &in_str) noexcept
 
template<typename StringType >
constexpr static std::optional< uuidfrom_string (StringType const &in_str) noexcept
 

Friends

bool operator== (uuid const &lhs, uuid const &rhs) noexcept
 
bool operator< (uuid const &lhs, uuid const &rhs) noexcept
 
template<class Elem , class Traits >
std::basic_ostream< Elem, Traits > & operator<< (std::basic_ostream< Elem, Traits > &s, uuid const &id)
 
template<class CharT , class Traits , class Allocator >
std::basic_string< CharT, Traits, Allocator > to_string (uuid const &id)
 

Member Typedef Documentation

◆ value_type

using uuids::uuid::value_type = uint8_t

Constructor & Destructor Documentation

◆ uuid() [1/5]

constexpr uuids::uuid::uuid ( )
constexprdefaultnoexcept

◆ uuid() [2/5]

uuids::uuid::uuid ( value_type(&)  arr[16])
inlinenoexcept

◆ uuid() [3/5]

constexpr uuids::uuid::uuid ( std::array< value_type, 16 > const &  arr)
inlineconstexprnoexcept

◆ uuid() [4/5]

uuids::uuid::uuid ( span< value_type, 16 >  bytes)
inlineexplicit

◆ uuid() [5/5]

template<typename ForwardIterator >
uuids::uuid::uuid ( ForwardIterator  first,
ForwardIterator  last 
)
inlineexplicit

Member Function Documentation

◆ as_bytes()

span<std::byte const, 16> uuids::uuid::as_bytes ( ) const
inline

◆ from_string()

template<typename StringType >
constexpr static std::optional<uuid> uuids::uuid::from_string ( StringType const &  in_str)
inlinestaticconstexprnoexcept
+ Here is the call graph for this function:

◆ is_nil()

constexpr bool uuids::uuid::is_nil ( ) const
inlineconstexprnoexcept

◆ is_valid_uuid()

template<typename StringType >
constexpr static bool uuids::uuid::is_valid_uuid ( StringType const &  in_str)
inlinestaticconstexprnoexcept
+ Here is the call graph for this function:

◆ swap()

void uuids::uuid::swap ( uuid other)
inlinenoexcept

◆ variant()

constexpr uuid_variant uuids::uuid::variant ( ) const
inlineconstexprnoexcept

◆ version()

constexpr uuid_version uuids::uuid::version ( ) const
inlineconstexprnoexcept

Friends And Related Function Documentation

◆ operator<

bool operator< ( uuid const &  lhs,
uuid const &  rhs 
)
friend

◆ operator<<

template<class Elem , class Traits >
std::basic_ostream<Elem, Traits>& operator<< ( std::basic_ostream< Elem, Traits > &  s,
uuid const &  id 
)
friend

◆ operator==

bool operator== ( uuid const &  lhs,
uuid const &  rhs 
)
friend

◆ to_string

template<class CharT , class Traits , class Allocator >
std::basic_string<CharT, Traits, Allocator> to_string ( uuid const &  id)
friend

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