#include <VarOut_T.h>
Inheritance diagram for TAO_Fixed_Var_T< T >:
Public Types | |
typedef T & | _out_type |
typedef T | _retn_type |
Public Member Functions | |
TAO_Fixed_Var_T (void) | |
TAO_Fixed_Var_T (T *) | |
TAO_Fixed_Var_T (const TAO_Fixed_Var_T< T > &) | |
TAO_Fixed_Var_T (const T &) | |
TAO_Fixed_Var_T & | operator= (T *) |
TAO_Fixed_Var_T & | operator= (const TAO_Fixed_Var_T< T > &) |
TAO_Fixed_Var_T & | operator= (const T &) |
_out_type | out (void) |
_retn_type | _retn (void) |
Definition at line 72 of file VarOut_T.h.
typedef T& TAO_Fixed_Var_T< T >::_out_type |
Definition at line 88 of file VarOut_T.h.
typedef T TAO_Fixed_Var_T< T >::_retn_type |
Definition at line 89 of file VarOut_T.h.
ACE_INLINE TAO_Fixed_Var_T< T >::TAO_Fixed_Var_T | ( | void | ) |
ACE_INLINE TAO_Fixed_Var_T< T >::TAO_Fixed_Var_T | ( | T * | ) |
ACE_INLINE TAO_Fixed_Var_T< T >::TAO_Fixed_Var_T | ( | const TAO_Fixed_Var_T< T > & | ) |
ACE_INLINE TAO_Fixed_Var_T< T >::TAO_Fixed_Var_T | ( | const T & | ) |
Definition at line 108 of file VarOut_T.inl.
References ACE_NEW.
00109 { 00110 ACE_NEW (this->ptr_, 00111 T (p)); 00112 }
ACE_INLINE T TAO_Fixed_Var_T< T >::_retn | ( | void | ) |
Definition at line 142 of file VarOut_T.inl.
References TAO_Var_Base_T< T >::ptr_.
00143 { 00144 return *this->ptr_; 00145 }
TAO_Fixed_Var_T< T > & TAO_Fixed_Var_T< T >::operator= | ( | const T & | ) |
Definition at line 40 of file VarOut_T.cpp.
References TAO_Var_Base_T< T >::ptr_.
00041 { 00042 // Strongly exception safe assignment using copy and non-throwing 00043 // swap technique. 00044 TAO_Fixed_Var_T<T> tmp (p); 00045 00046 T * old_ptr = this->ptr_; 00047 this->ptr_ = tmp.ptr_; 00048 tmp.ptr_ = old_ptr; 00049 00050 return *this; 00051 }
TAO_Fixed_Var_T< T > & TAO_Fixed_Var_T< T >::operator= | ( | const TAO_Fixed_Var_T< T > & | ) |
Definition at line 24 of file VarOut_T.cpp.
References TAO_Var_Base_T< T >::ptr_.
00025 { 00026 // Strongly exception safe assignment using copy and non-throwing 00027 // swap technique. 00028 TAO_Fixed_Var_T<T> tmp (p); 00029 00030 T * old_ptr = this->ptr_; 00031 this->ptr_ = tmp.ptr_; 00032 tmp.ptr_ = old_ptr; 00033 00034 return *this; 00035 }
ACE_INLINE TAO_Fixed_Var_T< T > & TAO_Fixed_Var_T< T >::operator= | ( | T * | ) |
ACE_INLINE T & TAO_Fixed_Var_T< T >::out | ( | void | ) |
Definition at line 128 of file VarOut_T.inl.
References TAO_Var_Base_T< T >::ptr_.
00129 { 00130 // Use plain new, using the ACE_NEW macros will mean we dereference a 00131 // nil pointer and crash which is more bad then plain new which could 00132 // lead to a bad_alloc exception 00133 if (this->ptr_ == 0) 00134 this->ptr_ = new T; 00135 00136 return *this->ptr_; 00137 }