xentara-utils v2.0.3
The Xentara Utility Library
Loading...
Searching...
No Matches
xentara::utils::tparam::Uuid Struct Reference

A UUID that can be used as a template parameter. More...

#include <xentara/utils/tparam/Uuid.hpp>

Public Member Functions

constexpr Uuid (const core::Uuid &uuid) noexcept
 Constructor that sets the UUID.
 
constexpr operator core::Uuid () const noexcept
 Conversion to a regular Uuid.
 
constexpr auto uuid () const noexcept -> core::Uuid
 Conversion to a regular Uuid.
 
template<tools::CharType Char, typename CharTraits = std::char_traits<Char>>
auto toBasicString () const -> string::BasicFixedString< Char, core::Uuid::kStringSize, CharTraits >
 Converts the UUID to a string.
 
auto toString () const -> std::string
 Converts the UUID to a string of type char.
 
auto toWString () const -> std::wstring
 Converts the UUID to a string of type wchar_t.
 
auto toU8String () const -> std::u8string
 Converts the UUID to a string of type char8_t.
 
auto toU16String () const -> std::u16string
 Converts the UUID to a string of type char16_t.
 
auto toU32String () const -> std::u32string
 Converts the UUID to a string of type char32_t.
 
constexpr auto operator== (const core::Uuid &rhs) const -> bool
 Comparison operator.
 
constexpr auto operator<=> (const core::Uuid &rhs) const -> std::strong_ordering
 Three-Way-Comparison operator.
 
constexpr auto isNull () const noexcept -> bool
 Determines if the UUID is 00000000-0000-0000-0000-000000000000
 

Detailed Description

A UUID that can be used as a template parameter.

This class behaves just like core::Uuid, but can be used as a template parameter.

Constructor & Destructor Documentation

◆ Uuid()

constexpr xentara::utils::tparam::Uuid::Uuid ( const core::Uuid uuid)
constexprnoexcept

Constructor that sets the UUID.

Member Function Documentation

◆ isNull()

constexpr auto xentara::utils::tparam::Uuid::isNull ( ) const -> bool
constexprnoexcept

Determines if the UUID is 00000000-0000-0000-0000-000000000000

◆ operator core::Uuid()

constexpr xentara::utils::tparam::Uuid::operator core::Uuid ( ) const
constexprnoexcept

Conversion to a regular Uuid.

◆ operator<=>()

constexpr auto xentara::utils::tparam::Uuid::operator<=> ( const core::Uuid rhs) const -> std::strong_ordering
constexpr

Three-Way-Comparison operator.

◆ operator==()

constexpr auto xentara::utils::tparam::Uuid::operator== ( const core::Uuid rhs) const -> bool
constexpr

Comparison operator.

◆ toBasicString()

template<tools::CharType Char, typename CharTraits = std::char_traits<Char>>
auto xentara::utils::tparam::Uuid::toBasicString ( ) const -> string::BasicFixedString<Char, core::Uuid::kStringSize, CharTraits>

Converts the UUID to a string.

◆ toString()

auto xentara::utils::tparam::Uuid::toString ( ) const -> std::string

Converts the UUID to a string of type char.

◆ toU16String()

auto xentara::utils::tparam::Uuid::toU16String ( ) const -> std::u16string

Converts the UUID to a string of type char16_t.

◆ toU32String()

auto xentara::utils::tparam::Uuid::toU32String ( ) const -> std::u32string

Converts the UUID to a string of type char32_t.

◆ toU8String()

auto xentara::utils::tparam::Uuid::toU8String ( ) const -> std::u8string

Converts the UUID to a string of type char8_t.

◆ toWString()

auto xentara::utils::tparam::Uuid::toWString ( ) const -> std::wstring

Converts the UUID to a string of type wchar_t.

◆ uuid()

constexpr auto xentara::utils::tparam::Uuid::uuid ( ) const -> core::Uuid
constexprnoexcept

Conversion to a regular Uuid.