TAO_Objref_Out_T< T > Class Template Reference

Parametrized implementation of _out class for object references. More...

#include <Objref_VarOut_T.h>

List of all members.

Public Member Functions

 TAO_Objref_Out_T (T *&p)
 TAO_Objref_Out_T (TAO_Objref_Var_T< T > &p)
 TAO_Objref_Out_T (const TAO_Objref_Out_T< T > &p)
TAO_Objref_Out_Toperator= (T *p)
TAO_Objref_Out_Toperator= (const TAO_Objref_Out_T< T > &p)
TAO_Objref_Out_Toperator= (const TAO_Objref_Var_T< T > &p)
 operator T *& ()
T *& ptr (void)
T * operator-> (void)

Private Attributes

T *& ptr_

Detailed Description

template<typename T>
class TAO_Objref_Out_T< T >

Parametrized implementation of _out class for object references.

Definition at line 98 of file Objref_VarOut_T.h.


Constructor & Destructor Documentation

template<typename T >
TAO_Objref_Out_T< T >::TAO_Objref_Out_T ( T *&  p  )  [inline]

Definition at line 108 of file Objref_VarOut_T.inl.

00109   : ptr_ (p)
00110 {
00111   this->ptr_ = TAO::Objref_Traits<T>::nil ();
00112 }

template<typename T >
TAO_Objref_Out_T< T >::TAO_Objref_Out_T ( TAO_Objref_Var_T< T > &  p  )  [inline]

Definition at line 116 of file Objref_VarOut_T.inl.

00117   : ptr_ (p.out ())
00118 {
00119   TAO::Objref_Traits<T>::release (this->ptr_);
00120   this->ptr_ = TAO::Objref_Traits<T>::nil ();
00121 }

template<typename T >
TAO_Objref_Out_T< T >::TAO_Objref_Out_T ( const TAO_Objref_Out_T< T > &  p  )  [inline]

Definition at line 125 of file Objref_VarOut_T.inl.

00126   : ptr_ (p.ptr_)
00127 {
00128 }


Member Function Documentation

template<typename T >
TAO_Objref_Out_T< T >::operator T *& (  )  [inline]

Definition at line 167 of file Objref_VarOut_T.inl.

00168 {
00169   return this->ptr_;
00170 }

template<typename T >
T * TAO_Objref_Out_T< T >::operator-> ( void   )  [inline]

Definition at line 175 of file Objref_VarOut_T.inl.

00176 {
00177   return this->ptr_;
00178 }

template<typename T >
TAO_Objref_Out_T< T > & TAO_Objref_Out_T< T >::operator= ( const TAO_Objref_Var_T< T > &  p  )  [inline]

Definition at line 142 of file Objref_VarOut_T.inl.

00143 {
00144   this->ptr_ = TAO::Objref_Traits<T>::duplicate (p.ptr ());
00145   return *this;
00146 }

template<typename T >
TAO_Objref_Out_T< T > & TAO_Objref_Out_T< T >::operator= ( const TAO_Objref_Out_T< T > &  p  )  [inline]

Definition at line 133 of file Objref_VarOut_T.inl.

00134 {
00135   this->ptr_ = p.ptr_;
00136   return *this;
00137 }

template<typename T >
TAO_Objref_Out_T< T > & TAO_Objref_Out_T< T >::operator= ( T *  p  )  [inline]

Definition at line 151 of file Objref_VarOut_T.inl.

00152 {
00153   this->ptr_ = p;
00154   return *this;
00155 }

template<typename T >
T *& TAO_Objref_Out_T< T >::ptr ( void   )  [inline]

Definition at line 160 of file Objref_VarOut_T.inl.

00161 {
00162   return this->ptr_;
00163 }


Member Data Documentation

template<typename T>
T*& TAO_Objref_Out_T< T >::ptr_ [private]

Definition at line 116 of file Objref_VarOut_T.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Nov 22 23:26:45 2009 for TAO by  doxygen 1.6.1