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

#include <AddressCache.h>

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

Public Member Functions

 AddressCacheEntryProxy (RcHandle< AddressCacheEntry > rch)
 
bool operator== (const AddressCacheEntryProxy &rhs) const
 
bool operator< (const AddressCacheEntryProxy &rhs) const
 
const AddrSet & addrs () const
 

Private Attributes

RcHandle< AddressCacheEntryentry_
 

Detailed Description

Definition at line 54 of file AddressCache.h.

Constructor & Destructor Documentation

◆ AddressCacheEntryProxy()

OpenDDS::DCPS::AddressCacheEntryProxy::AddressCacheEntryProxy ( RcHandle< AddressCacheEntry rch)
inline

Definition at line 55 of file AddressCache.h.

55 : entry_(rch) {}
RcHandle< AddressCacheEntry > entry_
Definition: AddressCache.h:80

Member Function Documentation

◆ addrs()

const AddrSet& OpenDDS::DCPS::AddressCacheEntryProxy::addrs ( ) const
inline

Definition at line 73 of file AddressCache.h.

References OpenDDS::Security::SSL::hash().

73 { return entry_->addrs_; }
RcHandle< AddressCacheEntry > entry_
Definition: AddressCache.h:80

◆ operator<()

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

Definition at line 65 of file AddressCache.h.

References entry_.

65  {
66 #if defined ACE_HAS_CPP11
67  return (rhs.entry_ && (!entry_ || (entry_->addrs_hash_ < rhs.entry_->addrs_hash_ || (entry_->addrs_hash_ == rhs.entry_->addrs_hash_ && entry_->addrs_ < rhs.entry_->addrs_))));
68 #else
69  return (rhs.entry_ && (!entry_ || (entry_->addrs_ < rhs.entry_->addrs_)));
70 #endif
71  }
RcHandle< AddressCacheEntry > entry_
Definition: AddressCache.h:80

◆ operator==()

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

Definition at line 57 of file AddressCache.h.

References entry_.

57  {
58 #if defined ACE_HAS_CPP11
59  return entry_ && rhs.entry_ && entry_->addrs_hash_ == rhs.entry_->addrs_hash_ && entry_->addrs_ == rhs.entry_->addrs_;
60 #else
61  return entry_ && rhs.entry_ && entry_->addrs_ == rhs.entry_->addrs_;
62 #endif
63  }
RcHandle< AddressCacheEntry > entry_
Definition: AddressCache.h:80

Member Data Documentation

◆ entry_

RcHandle<AddressCacheEntry> OpenDDS::DCPS::AddressCacheEntryProxy::entry_
private

Definition at line 80 of file AddressCache.h.

Referenced by operator<(), and operator==().


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