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

#include <UUID.hpp>

Inheritance diagram for direct_bt::uuid32_t:
Collaboration diagram for direct_bt::uuid32_t:

Public Member Functions

 uuid32_t (uint32_t const v) noexcept
 
 uuid32_t (uint8_t const *const buffer, jau::nsize_t const byte_offset, bool const littleEndian) noexcept
 
 uuid32_t (const uuid32_t &o) noexcept=default
 
 uuid32_t (uuid32_t &&o) noexcept=default
 
uuid32_toperator= (const uuid32_t &o) noexcept=default
 
uuid32_toperator= (uuid32_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

uint32_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 125 of file UUID.hpp.

Constructor & Destructor Documentation

◆ uuid32_t() [1/4]

direct_bt::uuid32_t::uuid32_t ( uint32_t const  v)
inlinenoexcept

Definition at line 129 of file UUID.hpp.

◆ uuid32_t() [2/4]

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

Definition at line 132 of file UUID.hpp.

◆ uuid32_t() [3/4]

direct_bt::uuid32_t::uuid32_t ( const uuid32_t o)
defaultnoexcept

◆ uuid32_t() [4/4]

direct_bt::uuid32_t::uuid32_t ( uuid32_t &&  o)
defaultnoexcept

Member Function Documentation

◆ data()

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

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

Reimplemented from direct_bt::uuid_t.

Definition at line 147 of file UUID.hpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==()

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

Reimplemented from direct_bt::uuid_t.

Definition at line 140 of file UUID.hpp.

Here is the call graph for this function:

◆ toString()

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

Reimplemented from direct_bt::uuid_t.

Definition at line 99 of file UUID.cpp.

◆ toUUID128String()

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

Reimplemented from direct_bt::uuid_t.

Definition at line 112 of file UUID.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ value

uint32_t direct_bt::uuid32_t::value

Definition at line 127 of file UUID.hpp.


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