Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Public Attributes | List of all members
direct_bt::uuid128_t Class Reference

#include <UUID.hpp>

Inheritance diagram for direct_bt::uuid128_t:
Collaboration diagram for direct_bt::uuid128_t:

Public Member Functions

 uuid128_t () noexcept
 
 uuid128_t (jau::uint128_t const v) noexcept
 
 uuid128_t (const std::string str)
 
 uuid128_t (uint8_t const *const buffer, jau::nsize_t const byte_offset, bool const littleEndian) noexcept
 
 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
 
 uuid128_t (const uuid128_t &o) noexcept=default
 
 uuid128_t (uuid128_t &&o) noexcept=default
 
uuid128_toperator= (const uuid128_t &o) noexcept=default
 
uuid128_toperator= (uuid128_t &&o) noexcept=default
 
bool operator== (uuid_t const &o) const noexcept override
 
const uint8_t * data () const noexcept override
 returns the pointer to the uuid data of size getTypeSize() More...
 
std::string toString () const noexcept override
 
std::string toUUID128String (uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const le_octet_index=12) const noexcept override
 
- Public Member Functions inherited from direct_bt::uuid_t
virtual ~uuid_t () noexcept
 
 uuid_t (const uuid_t &o) noexcept=default
 
 uuid_t (uuid_t &&o) noexcept=default
 
uuid_toperator= (const uuid_t &o) noexcept=default
 
uuid_toperator= (uuid_t &&o) noexcept=default
 
bool operator!= (uuid_t const &o) const noexcept
 
TypeSize getTypeSize () const noexcept
 
jau::nsize_t getTypeSizeInt () const noexcept
 
uuid128_t toUUID128 (uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const uuid32_le_octet_index=12) const noexcept
 

Public Attributes

jau::uint128_t value
 

Additional Inherited Members

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

Detailed Description

Definition at line 152 of file UUID.hpp.

Constructor & Destructor Documentation

◆ uuid128_t() [1/8]

direct_bt::uuid128_t::uuid128_t ( )
inlinenoexcept

Definition at line 156 of file UUID.hpp.

◆ uuid128_t() [2/8]

direct_bt::uuid128_t::uuid128_t ( jau::uint128_t const  v)
inlinenoexcept

Definition at line 158 of file UUID.hpp.

◆ uuid128_t() [3/8]

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

Definition at line 161 of file UUID.cpp.

Here is the call graph for this function:

◆ uuid128_t() [4/8]

direct_bt::uuid128_t::uuid128_t ( uint8_t const *const  buffer,
jau::nsize_t const  byte_offset,
bool const  littleEndian 
)
inlinenoexcept

Definition at line 163 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 74 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 77 of file UUID.cpp.

◆ uuid128_t() [7/8]

direct_bt::uuid128_t::uuid128_t ( const uuid128_t o)
defaultnoexcept

◆ uuid128_t() [8/8]

direct_bt::uuid128_t::uuid128_t ( uuid128_t &&  o)
defaultnoexcept

Member Function Documentation

◆ data()

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

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

Reimplemented from direct_bt::uuid_t.

Definition at line 182 of file UUID.hpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==()

bool direct_bt::uuid128_t::operator== ( uuid_t const &  o) const
inlineoverridevirtualnoexcept

Reimplemented from direct_bt::uuid_t.

Definition at line 175 of file UUID.hpp.

Here is the call graph for this function:

◆ toString()

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

Reimplemented from direct_bt::uuid_t.

Definition at line 118 of file UUID.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toUUID128String()

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

Reimplemented from direct_bt::uuid_t.

Definition at line 184 of file UUID.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ value

jau::uint128_t direct_bt::uuid128_t::value

Definition at line 154 of file UUID.hpp.


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