OpenDDS  Snapshot(2023/04/07-19:43)
Public Member Functions | Public Attributes | List of all members
OpenDDS::DCPS::Objref_Servant_Pair< T_impl, T, T_ptr, T_var > Struct Template Reference

This struct holds both object reference and the corresponding servant. More...

#include <Definitions.h>

Public Member Functions

 Objref_Servant_Pair ()
 
 Objref_Servant_Pair (T_impl *svt, T_ptr obj, bool dup)
 
 ~Objref_Servant_Pair ()
 
bool operator== (const Objref_Servant_Pair &pair) const
 
bool operator< (const Objref_Servant_Pair &pair) const
 

Public Attributes

T_impl * svt_
 
T_var obj_
 

Detailed Description

template<typename T_impl, typename T, typename T_ptr, typename T_var>
struct OpenDDS::DCPS::Objref_Servant_Pair< T_impl, T, T_ptr, T_var >

This struct holds both object reference and the corresponding servant.

Definition at line 87 of file Definitions.h.

Constructor & Destructor Documentation

◆ Objref_Servant_Pair() [1/2]

template<typename T_impl, typename T, typename T_ptr, typename T_var>
OpenDDS::DCPS::Objref_Servant_Pair< T_impl, T, T_ptr, T_var >::Objref_Servant_Pair ( )
inline

Definition at line 88 of file Definitions.h.

89  : svt_(0)
90  {}

◆ Objref_Servant_Pair() [2/2]

template<typename T_impl, typename T, typename T_ptr, typename T_var>
OpenDDS::DCPS::Objref_Servant_Pair< T_impl, T, T_ptr, T_var >::Objref_Servant_Pair ( T_impl *  svt,
T_ptr  obj,
bool  dup 
)
inline

Definition at line 92 of file Definitions.h.

93  : svt_(svt)
94  {
95  if (dup) {
96  obj_ = T::_duplicate(obj);
97 
98  } else {
99  obj_ = obj;
100  }
101  }

◆ ~Objref_Servant_Pair()

template<typename T_impl, typename T, typename T_ptr, typename T_var>
OpenDDS::DCPS::Objref_Servant_Pair< T_impl, T, T_ptr, T_var >::~Objref_Servant_Pair ( )
inline

Definition at line 103 of file Definitions.h.

104  {}

Member Function Documentation

◆ operator<()

template<typename T_impl, typename T, typename T_ptr, typename T_var>
bool OpenDDS::DCPS::Objref_Servant_Pair< T_impl, T, T_ptr, T_var >::operator< ( const Objref_Servant_Pair< T_impl, T, T_ptr, T_var > &  pair) const
inline

Definition at line 110 of file Definitions.h.

110  {
111  return this->svt_ < pair.svt_;
112  }

◆ operator==()

template<typename T_impl, typename T, typename T_ptr, typename T_var>
bool OpenDDS::DCPS::Objref_Servant_Pair< T_impl, T, T_ptr, T_var >::operator== ( const Objref_Servant_Pair< T_impl, T, T_ptr, T_var > &  pair) const
inline

Definition at line 106 of file Definitions.h.

106  {
107  return pair.svt_ == this->svt_;
108  }

Member Data Documentation

◆ obj_

template<typename T_impl, typename T, typename T_ptr, typename T_var>
T_var OpenDDS::DCPS::Objref_Servant_Pair< T_impl, T, T_ptr, T_var >::obj_

◆ svt_

template<typename T_impl, typename T, typename T_ptr, typename T_var>
T_impl* OpenDDS::DCPS::Objref_Servant_Pair< T_impl, T, T_ptr, T_var >::svt_

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