Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Public Attributes | List of all members
direct_bt::BTDeviceRegistry::DeviceID Struct Reference

Specifies unique device identities, using BDAddressAndType as key. More...

#include <BTDeviceRegistry.hpp>

Collaboration diagram for direct_bt::BTDeviceRegistry::DeviceID:

Public Member Functions

 DeviceID ()
 
 DeviceID (BDAddressAndType a, std::string n)
 
std::size_t hash_code () const noexcept
 
std::string toString () const
 

Public Attributes

BDAddressAndType addressAndType
 
std::string name
 

Detailed Description

Specifies unique device identities, using BDAddressAndType as key.

Definition at line 96 of file BTDeviceRegistry.hpp.

Constructor & Destructor Documentation

◆ DeviceID() [1/2]

direct_bt::BTDeviceRegistry::DeviceID::DeviceID ( BDAddressAndType  a,
std::string  n 
)
inline

Definition at line 100 of file BTDeviceRegistry.hpp.

◆ DeviceID() [2/2]

direct_bt::BTDeviceRegistry::DeviceID::DeviceID ( )
inline

Definition at line 101 of file BTDeviceRegistry.hpp.

Member Function Documentation

◆ hash_code()

std::size_t direct_bt::BTDeviceRegistry::DeviceID::hash_code ( ) const
inlinenoexcept

Implementation simply returns the BDAddressAndType hash code, name is ignored.

Definition at line 110 of file BTDeviceRegistry.hpp.

◆ toString()

std::string direct_bt::BTDeviceRegistry::DeviceID::toString ( ) const
inline

Definition at line 114 of file BTDeviceRegistry.hpp.

Member Data Documentation

◆ addressAndType

BDAddressAndType direct_bt::BTDeviceRegistry::DeviceID::addressAndType

Definition at line 97 of file BTDeviceRegistry.hpp.

◆ name

std::string direct_bt::BTDeviceRegistry::DeviceID::name

Definition at line 98 of file BTDeviceRegistry.hpp.


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