TAO_FixedSeq_Var_T< T > Class Template Reference

Parametrized implementation of _var class for sequences whose element is of fixed size.. More...

#include <Seq_Var_T.h>

Inheritance diagram for TAO_FixedSeq_Var_T< T >:

Inheritance graph
[legend]
Collaboration diagram for TAO_FixedSeq_Var_T< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T::subscript_type T_elem
typedef T::const_subscript_type T_const_elem

Public Member Functions

 TAO_FixedSeq_Var_T (void)
 TAO_FixedSeq_Var_T (T *)
 TAO_FixedSeq_Var_T (const TAO_FixedSeq_Var_T< T > &)
 TAO_FixedSeq_Var_T (const T &)
TAO_FixedSeq_Var_Toperator= (T *)
TAO_FixedSeq_Var_Toperator= (const TAO_FixedSeq_Var_T< T > &)
T_elem operator[] (CORBA::ULong index)
T_const_elem operator[] (CORBA::ULong index) const
TAO_FixedSeq_Var_Toperator= (const T &)
 Fixed-size base types only.

Detailed Description

template<typename T>
class TAO_FixedSeq_Var_T< T >

Parametrized implementation of _var class for sequences whose element is of fixed size..

Definition at line 75 of file Seq_Var_T.h.


Member Typedef Documentation

template<typename T>
typedef T::const_subscript_type TAO_FixedSeq_Var_T< T >::T_const_elem

Definition at line 79 of file Seq_Var_T.h.

template<typename T>
typedef T::subscript_type TAO_FixedSeq_Var_T< T >::T_elem

Reimplemented from TAO_Seq_Var_Base_T< T >.

Definition at line 78 of file Seq_Var_T.h.


Constructor & Destructor Documentation

template<typename T>
ACE_INLINE TAO_FixedSeq_Var_T< T >::TAO_FixedSeq_Var_T ( void   ) 

Definition at line 113 of file Seq_Var_T.inl.

00114 {}

template<typename T>
ACE_INLINE TAO_FixedSeq_Var_T< T >::TAO_FixedSeq_Var_T ( T *   ) 

Definition at line 118 of file Seq_Var_T.inl.

00119   : TAO_Seq_Var_Base_T<T> (p)
00120 {}

template<typename T>
TAO_FixedSeq_Var_T< T >::TAO_FixedSeq_Var_T ( const TAO_FixedSeq_Var_T< T > &   ) 

Definition at line 123 of file Seq_Var_T.inl.

00126   : TAO_Seq_Var_Base_T<T> (p)
00127 {
00128 }

template<typename T>
ACE_INLINE TAO_FixedSeq_Var_T< T >::TAO_FixedSeq_Var_T ( const T &   ) 

Definition at line 133 of file Seq_Var_T.inl.

References ACE_NEW.

00134 {
00135   ACE_NEW (this->ptr_,
00136            T (p));
00137 }


Member Function Documentation

template<typename T>
TAO_FixedSeq_Var_T< T > & TAO_FixedSeq_Var_T< T >::operator= ( const T &   ) 

Fixed-size base types only.

Definition at line 42 of file Seq_Var_T.cpp.

References TAO_Seq_Var_Base_T< T >::ptr_.

00043 {
00044   // Strongly exception safe assignment using copy and non-throwing
00045   // swap technique.
00046   TAO_FixedSeq_Var_T<T> tmp (p);
00047 
00048   T * old_ptr = this->ptr_;
00049   this->ptr_ = tmp.ptr_;
00050   tmp.ptr_ = old_ptr;
00051 
00052   return *this;
00053 }

template<typename T>
TAO_FixedSeq_Var_T< T > & TAO_FixedSeq_Var_T< T >::operator= ( const TAO_FixedSeq_Var_T< T > &   ) 

Definition at line 25 of file Seq_Var_T.cpp.

References TAO_Seq_Var_Base_T< T >::ptr_.

00027 {
00028   // Strongly exception safe assignment using copy and non-throwing
00029   // swap technique.
00030   TAO_FixedSeq_Var_T<T> tmp (p);
00031 
00032   T * old_ptr = this->ptr_;
00033   this->ptr_ = tmp.ptr_;
00034   tmp.ptr_ = old_ptr;
00035 
00036   return *this;
00037 }

template<typename T>
ACE_INLINE TAO_FixedSeq_Var_T< T > & TAO_FixedSeq_Var_T< T >::operator= ( T *   ) 

Definition at line 142 of file Seq_Var_T.inl.

References TAO_Seq_Var_Base_T< T >::ptr_.

00143 {
00144   delete this->ptr_;
00145   this->ptr_ = p;
00146   return *this;
00147 }

template<typename T>
ACE_INLINE TAO_FixedSeq_Var_T< T >::T_const_elem TAO_FixedSeq_Var_T< T >::operator[] ( CORBA::ULong  index  )  const

Definition at line 160 of file Seq_Var_T.inl.

References TAO_Seq_Var_Base_T< T >::ptr_.

00161 {
00162   return this->ptr_->operator[] (index);
00163 }

template<typename T>
ACE_INLINE TAO_FixedSeq_Var_T< T >::T_elem TAO_FixedSeq_Var_T< T >::operator[] ( CORBA::ULong  index  ) 

Definition at line 152 of file Seq_Var_T.inl.

References TAO_Seq_Var_Base_T< T >::ptr_.

00153 {
00154   return this->ptr_->operator[] (index);
00155 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:39:29 2010 for TAO by  doxygen 1.4.7