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 111 of file Seq_Var_T.inl.

00112 {}

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

Definition at line 116 of file Seq_Var_T.inl.

00117   : TAO_Seq_Var_Base_T<T> (p)
00118 {}

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

Definition at line 121 of file Seq_Var_T.inl.

00124   : TAO_Seq_Var_Base_T<T> (p)
00125 {
00126 }

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

Definition at line 131 of file Seq_Var_T.inl.

References ACE_NEW.

00132 {
00133   ACE_NEW (this->ptr_,
00134            T (p));
00135 }


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 44 of file Seq_Var_T.cpp.

References TAO_Seq_Var_Base_T< T >::ptr_.

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

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

Definition at line 27 of file Seq_Var_T.cpp.

References TAO_Seq_Var_Base_T< T >::ptr_.

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

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

Definition at line 140 of file Seq_Var_T.inl.

00141 {
00142   delete this->ptr_;
00143   this->ptr_ = p;
00144   return *this;
00145 }

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 158 of file Seq_Var_T.inl.

00159 {
00160   return this->ptr_->operator[] (index);
00161 }

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

Definition at line 150 of file Seq_Var_T.inl.

00151 {
00152   return this->ptr_->operator[] (index);
00153 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:13:53 2006 for TAO by doxygen 1.3.6