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

#include <BundlingCacheKey.h>

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

Public Member Functions

 BundlingCacheKey (const GUID_t &dst_guid, const GUID_t &src_guid)
 
 BundlingCacheKey (const BundlingCacheKey &val)
 
bool operator< (const BundlingCacheKey &rhs) const
 
bool operator== (const BundlingCacheKey &rhs) const
 
void get_contained_guids (GuidSet &set) const
 

Public Attributes

GUID_t src_guid_
 
GUID_t dst_guid_
 

Detailed Description

Definition at line 30 of file BundlingCacheKey.h.

Constructor & Destructor Documentation

◆ BundlingCacheKey() [1/2]

OpenDDS::DCPS::BundlingCacheKey::BundlingCacheKey ( const GUID_t dst_guid,
const GUID_t src_guid 
)
inline

Definition at line 31 of file BundlingCacheKey.h.

32  : src_guid_(src_guid)
33  , dst_guid_(dst_guid)
34  {
35  }

◆ BundlingCacheKey() [2/2]

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

Definition at line 37 of file BundlingCacheKey.h.

38  : src_guid_(val.src_guid_)
39  , dst_guid_(val.dst_guid_)
40  {
41  }

Member Function Documentation

◆ get_contained_guids()

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

Definition at line 53 of file BundlingCacheKey.h.

54  {
55  set.clear();
56  set.insert(src_guid_);
57  set.insert(dst_guid_);
58  }

◆ operator<()

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

Definition at line 43 of file BundlingCacheKey.h.

44  {
45  return std::memcmp(static_cast<const void*>(this), static_cast<const void*>(&rhs), sizeof (BundlingCacheKey)) < 0;
46  }
BundlingCacheKey(const GUID_t &dst_guid, const GUID_t &src_guid)

◆ operator==()

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

Definition at line 48 of file BundlingCacheKey.h.

49  {
50  return std::memcmp(static_cast<const void*>(this), static_cast<const void*>(&rhs), sizeof (BundlingCacheKey)) == 0;
51  }
BundlingCacheKey(const GUID_t &dst_guid, const GUID_t &src_guid)

Member Data Documentation

◆ dst_guid_

GUID_t OpenDDS::DCPS::BundlingCacheKey::dst_guid_

Definition at line 61 of file BundlingCacheKey.h.

◆ src_guid_

GUID_t OpenDDS::DCPS::BundlingCacheKey::src_guid_

Definition at line 60 of file BundlingCacheKey.h.


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