Direct-BT  2.3.1
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 (const BDAddressAndType &a, const std::string &n)
 
 DeviceID ()
 
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 91 of file BTDeviceRegistry.hpp.

Constructor & Destructor Documentation

◆ DeviceID() [1/2]

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

Definition at line 95 of file BTDeviceRegistry.hpp.

◆ DeviceID() [2/2]

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

Definition at line 96 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 105 of file BTDeviceRegistry.hpp.

Here is the call graph for this function:

◆ toString()

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

Definition at line 109 of file BTDeviceRegistry.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ addressAndType

BDAddressAndType direct_bt::BTDeviceRegistry::DeviceID::addressAndType

Definition at line 92 of file BTDeviceRegistry.hpp.

◆ name

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

Definition at line 93 of file BTDeviceRegistry.hpp.


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