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

#include <GuidUtils.h>

Inheritance diagram for OpenDDS::DCPS::GuidPair:
Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::GuidPair:
Collaboration graph
[legend]

Public Member Functions

 GuidPair (const GUID_t &local, const GUID_t &remote)
 
int cmp (const GuidPair &other) const
 
bool operator< (const GuidPair &other) const
 

Public Attributes

GUID_t local
 
GUID_t remote
 

Detailed Description

Definition at line 258 of file GuidUtils.h.

Constructor & Destructor Documentation

◆ GuidPair()

OpenDDS::DCPS::GuidPair::GuidPair ( const GUID_t local,
const GUID_t remote 
)
inline

Definition at line 262 of file GuidUtils.h.

263  : local(local)
264  , remote(remote)
265  {
266  }

Member Function Documentation

◆ cmp()

int OpenDDS::DCPS::GuidPair::cmp ( const GuidPair other) const
inline

Definition at line 268 of file GuidUtils.h.

References local, OpenDDS::DCPS::mem_cmp(), and remote.

269  {
270  const int local_cmp = mem_cmp(local, other.local);
271  return local_cmp == 0 ? mem_cmp(remote, other.remote) : local_cmp;
272  }
int mem_cmp(const T &a, const T &b)
Definition: Util.h:227

◆ operator<()

bool OpenDDS::DCPS::GuidPair::operator< ( const GuidPair other) const
inline

Definition at line 274 of file GuidUtils.h.

References OpenDDS_Dcps_Export, and OPENDDS_END_VERSIONED_NAMESPACE_DECL.

275  {
276  return cmp(other) < 0;
277  }
int cmp(const GuidPair &other) const
Definition: GuidUtils.h:268

Member Data Documentation

◆ local

GUID_t OpenDDS::DCPS::GuidPair::local

Definition at line 259 of file GuidUtils.h.

Referenced by cmp(), and OpenDDS::ICE::operator<<().

◆ remote

GUID_t OpenDDS::DCPS::GuidPair::remote

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