OpenDDS  Snapshot(2023/04/28-20:55)
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 99 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 100 of file Definitions.h.

101  : svt_(0)
102  {}

◆ 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 104 of file Definitions.h.

105  : svt_(svt)
106  {
107  if (dup) {
108  obj_ = T::_duplicate(obj);
109 
110  } else {
111  obj_ = obj;
112  }
113  }

◆ ~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 115 of file Definitions.h.

116  {}

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 122 of file Definitions.h.

122  {
123  return this->svt_ < pair.svt_;
124  }

◆ 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 118 of file Definitions.h.

118  {
119  return pair.svt_ == this->svt_;
120  }

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: