OpenDDS  Snapshot(2023/04/07-19:43)
Public Member Functions | Public Attributes | List of all members
OpenDDS::DCPS::LocatorCacheKey Struct Reference

#include <LocatorCacheKey.h>

Collaboration diagram for OpenDDS::DCPS::LocatorCacheKey:
Collaboration graph
[legend]

Public Member Functions

 LocatorCacheKey (const GUID_t &remote, const GUID_t &local, bool prefer_unicast)
 
 LocatorCacheKey (const LocatorCacheKey &val)
 
bool operator< (const LocatorCacheKey &rhs) const
 
bool operator== (const LocatorCacheKey &rhs) const
 
void get_contained_guids (GuidSet &set) const
 

Public Attributes

GUID_t remote_
 
GUID_t local_
 
bool prefer_unicast_
 

Detailed Description

Definition at line 29 of file LocatorCacheKey.h.

Constructor & Destructor Documentation

◆ LocatorCacheKey() [1/2]

OpenDDS::DCPS::LocatorCacheKey::LocatorCacheKey ( const GUID_t remote,
const GUID_t local,
bool  prefer_unicast 
)
inline

Definition at line 30 of file LocatorCacheKey.h.

31  : remote_(remote)
32  , local_(local)
33  , prefer_unicast_(prefer_unicast)
34  {
35  }

◆ LocatorCacheKey() [2/2]

OpenDDS::DCPS::LocatorCacheKey::LocatorCacheKey ( const LocatorCacheKey val)
inline

Definition at line 37 of file LocatorCacheKey.h.

38  : remote_(val.remote_)
39  , local_(val.local_)
40  , prefer_unicast_(val.prefer_unicast_)
41  {
42  }

Member Function Documentation

◆ get_contained_guids()

void OpenDDS::DCPS::LocatorCacheKey::get_contained_guids ( GuidSet &  set) const
inline

Definition at line 54 of file LocatorCacheKey.h.

55  {
56  set.clear();
57  set.insert(remote_);
58  set.insert(local_);
59  }

◆ operator<()

bool OpenDDS::DCPS::LocatorCacheKey::operator< ( const LocatorCacheKey rhs) const
inline

Definition at line 44 of file LocatorCacheKey.h.

45  {
46  return std::memcmp(static_cast<const void*>(this), static_cast<const void*>(&rhs), sizeof (LocatorCacheKey)) < 0;
47  }
LocatorCacheKey(const GUID_t &remote, const GUID_t &local, bool prefer_unicast)

◆ operator==()

bool OpenDDS::DCPS::LocatorCacheKey::operator== ( const LocatorCacheKey rhs) const
inline

Definition at line 49 of file LocatorCacheKey.h.

50  {
51  return std::memcmp(static_cast<const void*>(this), static_cast<const void*>(&rhs), sizeof (LocatorCacheKey)) == 0;
52  }
LocatorCacheKey(const GUID_t &remote, const GUID_t &local, bool prefer_unicast)

Member Data Documentation

◆ local_

GUID_t OpenDDS::DCPS::LocatorCacheKey::local_

Definition at line 62 of file LocatorCacheKey.h.

◆ prefer_unicast_

bool OpenDDS::DCPS::LocatorCacheKey::prefer_unicast_

Definition at line 63 of file LocatorCacheKey.h.

◆ remote_

GUID_t OpenDDS::DCPS::LocatorCacheKey::remote_

Definition at line 61 of file LocatorCacheKey.h.


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