Public Types | Public Member Functions

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 77 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 81 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 80 of file Seq_Var_T.h.


Constructor & Destructor Documentation

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

Definition at line 113 of file Seq_Var_T.inl.

{}

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

Definition at line 118 of file Seq_Var_T.inl.

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

Definition at line 123 of file Seq_Var_T.inl.

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

Definition at line 133 of file Seq_Var_T.inl.

{
  ACE_NEW (this->ptr_,
           T (p));
}


Member Function Documentation

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

Definition at line 142 of file Seq_Var_T.inl.

{
  delete this->ptr_;
  this->ptr_ = p;
  return *this;
}

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

Fixed-size base types only.

Definition at line 42 of file Seq_Var_T.cpp.

{
  // Strongly exception safe assignment using copy and non-throwing
  // swap technique.
  TAO_FixedSeq_Var_T<T> tmp (p);

  T * old_ptr = this->ptr_;
  this->ptr_ = tmp.ptr_;
  tmp.ptr_ = old_ptr;

  return *this;
}

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

Definition at line 25 of file Seq_Var_T.cpp.

{
  // Strongly exception safe assignment using copy and non-throwing
  // swap technique.
  TAO_FixedSeq_Var_T<T> tmp (p);

  T * old_ptr = this->ptr_;
  this->ptr_ = tmp.ptr_;
  tmp.ptr_ = old_ptr;

  return *this;
}

template<typename T >
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.

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

template<typename T >
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.

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


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