OpenDDS  Snapshot(2023/04/28-20:55)
Public Member Functions | Public Attributes | List of all members
OpenDDS::RTPS::Sedp::MatchingPair Struct Reference

#include <Sedp.h>

Inheritance diagram for OpenDDS::RTPS::Sedp::MatchingPair:
Inheritance graph
[legend]
Collaboration diagram for OpenDDS::RTPS::Sedp::MatchingPair:
Collaboration graph
[legend]

Public Member Functions

 MatchingPair (const GUID_t &reader, const GUID_t writer, bool reader_is_local)
 
 MatchingPair (const GUID_t &remote, bool remote_is_reader, DCPS::TypeObjReqCond *type_obj_req_cond)
 
const GUID_treader () const
 
const GUID_twriter () const
 
bool operator< (const MatchingPair &other) const
 
- Public Member Functions inherited from OpenDDS::DCPS::GuidPair
 GuidPair (const GUID_t &local, const GUID_t &remote)
 
int cmp (const GuidPair &other) const
 
bool operator< (const GuidPair &other) const
 

Public Attributes

bool local_is_reader
 
DCPS::TypeObjReqCondtype_obj_req_cond
 
- Public Attributes inherited from OpenDDS::DCPS::GuidPair
GUID_t local
 
GUID_t remote
 

Detailed Description

Definition at line 1077 of file Sedp.h.

Constructor & Destructor Documentation

◆ MatchingPair() [1/2]

OpenDDS::RTPS::Sedp::MatchingPair::MatchingPair ( const GUID_t reader,
const GUID_t  writer,
bool  reader_is_local 
)
inline

Definition at line 1087 of file Sedp.h.

1088  : GuidPair(reader_is_local ? reader : writer, reader_is_local ? writer : reader)
1089  , local_is_reader(reader_is_local)
1090  , type_obj_req_cond(0)
1091  {
1092  }
const GUID_t & reader() const
Definition: Sedp.h:1101
const GUID_t & writer() const
Definition: Sedp.h:1106
GuidPair(const GUID_t &local, const GUID_t &remote)
Definition: GuidUtils.h:262
DCPS::TypeObjReqCond * type_obj_req_cond
Definition: Sedp.h:1085

◆ MatchingPair() [2/2]

OpenDDS::RTPS::Sedp::MatchingPair::MatchingPair ( const GUID_t remote,
bool  remote_is_reader,
DCPS::TypeObjReqCond type_obj_req_cond 
)
inline

Definition at line 1094 of file Sedp.h.

1096  , local_is_reader(!remote_is_reader)
1098  {
1099  }
const GUID_t GUID_UNKNOWN
Nil value for GUID.
Definition: GuidUtils.h:59
GuidPair(const GUID_t &local, const GUID_t &remote)
Definition: GuidUtils.h:262
DCPS::TypeObjReqCond * type_obj_req_cond
Definition: Sedp.h:1085

Member Function Documentation

◆ operator<()

bool OpenDDS::RTPS::Sedp::MatchingPair::operator< ( const MatchingPair other) const
inline

Definition at line 1111 of file Sedp.h.

References OpenDDS::RTPS::Sedp::OPENDDS_MAP(), and type_obj_req_cond.

1112  {
1113  const int pair_cmp = cmp(other);
1114  return pair_cmp < 0 || (pair_cmp == 0 && type_obj_req_cond < other.type_obj_req_cond);
1115  }
int cmp(const GuidPair &other) const
Definition: GuidUtils.h:268
DCPS::TypeObjReqCond * type_obj_req_cond
Definition: Sedp.h:1085

◆ reader()

const GUID_t& OpenDDS::RTPS::Sedp::MatchingPair::reader ( void  ) const
inline

Definition at line 1101 of file Sedp.h.

1102  {
1103  return local_is_reader ? local : remote;
1104  }

◆ writer()

const GUID_t& OpenDDS::RTPS::Sedp::MatchingPair::writer ( void  ) const
inline

Definition at line 1106 of file Sedp.h.

1107  {
1108  return local_is_reader ? remote : local;
1109  }

Member Data Documentation

◆ local_is_reader

bool OpenDDS::RTPS::Sedp::MatchingPair::local_is_reader

Definition at line 1078 of file Sedp.h.

◆ type_obj_req_cond

DCPS::TypeObjReqCond* OpenDDS::RTPS::Sedp::MatchingPair::type_obj_req_cond

This is used by get_dynamic_type on the service participant to wait for a TypeObject request to complete. This is does not take ownership because it should only be on the stack as the request should complete or fail within the call to get_dynamic_type.

Definition at line 1085 of file Sedp.h.

Referenced by operator<().


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