jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Public Member Functions | Public Attributes | List of all members
jau::uuid128_t Class Reference

#include <uuid.hpp>

Inheritance diagram for jau::uuid128_t:
Collaboration diagram for jau::uuid128_t:

Public Member Functions

 uuid128_t () noexcept
 
 uuid128_t (const std::string &str)
 
 uuid128_t (const uuid128_t &o) noexcept=default
 
 uuid128_t (jau::uint128dp_t const v) noexcept
 
 uuid128_t (uint8_t const *const buffer, lb_endian_t const le_or_be) noexcept
 
 uuid128_t (uuid128_t &&o) noexcept=default
 
 uuid128_t (uuid16_t const &uuid16, uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const uuid16_le_octet_index=12) noexcept
 
 uuid128_t (uuid32_t const &uuid32, uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const uuid32_le_octet_index=12) noexcept
 
const uint8_t * data () const noexcept override
 returns the pointer to the uuid data of size getTypeSize() More...
 
uuid128_toperator= (const uuid128_t &o) noexcept=default
 
uuid128_toperator= (uuid128_t &&o) noexcept=default
 
jau::nsize_t put (uint8_t *const buffer, lb_endian_t const le_or_be) const noexcept override
 
std::string toString () const noexcept override
 Returns the string representation in BE network order, i.e. More...
 
std::string toUUID128String (uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const le_octet_index=12) const noexcept override
 Returns the uuid128_t string representation in BE network order, i.e. More...
 
- Public Member Functions inherited from jau::uuid_t
 uuid_t (const uuid_t &o) noexcept=default
 
 uuid_t (uuid_t &&o) noexcept=default
 
virtual ~uuid_t () noexcept=default
 
std::unique_ptr< uuid_tclone () const noexcept
 
virtual const uint8_t * data () const noexcept=0
 returns the pointer to the uuid data of size getTypeSize() More...
 
bool equivalent (uuid_t const &o) const noexcept
 Relaxed equality operator. More...
 
TypeSize getTypeSize () const noexcept
 
jau::nsize_t getTypeSizeInt () const noexcept
 
std::string getTypeSizeString () const noexcept
 
bool operator!= (uuid_t const &o) const noexcept
 Strict not-equal operator. More...
 
uuid_toperator= (const uuid_t &o) noexcept=default
 
uuid_toperator= (uuid_t &&o) noexcept=default
 
bool operator== (uuid_t const &o) const noexcept
 Strict equality operator. More...
 
virtual jau::nsize_t put (uint8_t *const buffer, lb_endian_t const le_or_be) const noexcept=0
 
virtual std::string toString () const noexcept=0
 Returns the string representation in BE network order, i.e. More...
 
uuid128_t toUUID128 (uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const uuid32_le_octet_index=12) const noexcept
 
virtual std::string toUUID128String (uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const le_octet_index=12) const noexcept=0
 Returns the uuid128_t string representation in BE network order, i.e. More...
 

Public Attributes

jau::uint128dp_t value
 

Additional Inherited Members

- Public Types inherited from jau::uuid_t
enum class  TypeSize : jau::nsize_t { UUID16_SZ =2 , UUID32_SZ =4 , UUID128_SZ =16 }
 Underlying integer value present octet count. More...
 
- Static Public Member Functions inherited from jau::uuid_t
static std::unique_ptr< uuid_tcreate (const std::string &str)
 
static std::unique_ptr< uuid_tcreate (TypeSize const t, uint8_t const *const buffer, lb_endian_t const le_or_be)
 
static std::string getTypeSizeString (const TypeSize v) noexcept
 
static constexpr jau::nsize_t number (const TypeSize rhs) noexcept
 
static TypeSize toTypeSize (const jau::nsize_t size)
 
- Protected Member Functions inherited from jau::uuid_t
 uuid_t (TypeSize const type_)
 

Detailed Description

Definition at line 205 of file uuid.hpp.

Constructor & Destructor Documentation

◆ uuid128_t() [1/8]

jau::uuid128_t::uuid128_t ( )
inlinenoexcept

Definition at line 209 of file uuid.hpp.

◆ uuid128_t() [2/8]

jau::uuid128_t::uuid128_t ( jau::uint128dp_t const  v)
inlinenoexcept

Definition at line 211 of file uuid.hpp.

◆ uuid128_t() [3/8]

uuid128_t::uuid128_t ( const std::string &  str)

Definition at line 259 of file uuid.cpp.

◆ uuid128_t() [4/8]

jau::uuid128_t::uuid128_t ( uint8_t const *const  buffer,
lb_endian_t const  le_or_be 
)
inlinenoexcept

Definition at line 216 of file uuid.hpp.

◆ uuid128_t() [5/8]

uuid128_t::uuid128_t ( uuid16_t const &  uuid16,
uuid128_t const &  base_uuid = BT_BASE_UUID,
jau::nsize_t const  uuid16_le_octet_index = 12 
)
noexcept

Definition at line 129 of file uuid.cpp.

◆ uuid128_t() [6/8]

uuid128_t::uuid128_t ( uuid32_t const &  uuid32,
uuid128_t const &  base_uuid = BT_BASE_UUID,
jau::nsize_t const  uuid32_le_octet_index = 12 
)
noexcept

Definition at line 132 of file uuid.cpp.

◆ uuid128_t() [7/8]

jau::uuid128_t::uuid128_t ( const uuid128_t o)
defaultnoexcept

◆ uuid128_t() [8/8]

jau::uuid128_t::uuid128_t ( uuid128_t &&  o)
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

uuid128_t & jau::uuid128_t::operator= ( const uuid128_t o)
defaultnoexcept

◆ operator=() [2/2]

uuid128_t & jau::uuid128_t::operator= ( uuid128_t &&  o)
defaultnoexcept

◆ data()

const uint8_t * jau::uuid128_t::data ( ) const
inlineoverridevirtualnoexcept

returns the pointer to the uuid data of size getTypeSize()

Implements jau::uuid_t.

Definition at line 228 of file uuid.hpp.

Here is the caller graph for this function:

◆ toString()

std::string uuid128_t::toString ( ) const
overridevirtualnoexcept

Returns the string representation in BE network order, i.e.

00000000-0000-1000-8000-00805F9B34FB.

Implements jau::uuid_t.

Definition at line 177 of file uuid.cpp.

Here is the caller graph for this function:

◆ toUUID128String()

std::string jau::uuid128_t::toUUID128String ( uuid128_t const &  base_uuid = BT_BASE_UUID,
jau::nsize_t const  le_octet_index = 12 
) const
inlineoverridevirtualnoexcept

Returns the uuid128_t string representation in BE network order, i.e.

00000000-0000-1000-8000-00805F9B34FB.

Implements jau::uuid_t.

Definition at line 230 of file uuid.hpp.

◆ put()

jau::nsize_t jau::uuid128_t::put ( uint8_t *const  buffer,
lb_endian_t const  le_or_be 
) const
inlineoverridevirtualnoexcept

Implements jau::uuid_t.

Definition at line 236 of file uuid.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ value

jau::uint128dp_t jau::uuid128_t::value

Definition at line 207 of file uuid.hpp.


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