Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList Class Reference

#include <DynamicC.h>

Inheritance diagram for Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList:

Inheritance graph
[legend]
Collaboration diagram for Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList:

Collaboration graph
[legend]
List of all members.

Public Methods

 _TAO_Unbounded_Sequence_Dynamic_ParameterList (void)
 _TAO_Unbounded_Sequence_Dynamic_ParameterList (CORBA::ULong maximum)
 _TAO_Unbounded_Sequence_Dynamic_ParameterList (CORBA::ULong maximum, CORBA::ULong length, Parameter *data, CORBA::Boolean release=0)
 _TAO_Unbounded_Sequence_Dynamic_ParameterList (const _TAO_Unbounded_Sequence_Dynamic_ParameterList &rhs)
_TAO_Unbounded_Sequence_Dynamic_ParameterList & operator= (const _TAO_Unbounded_Sequence_Dynamic_ParameterList &rhs)
virtual ~_TAO_Unbounded_Sequence_Dynamic_ParameterList (void)
Parameteroperator[] (CORBA::ULong i)
const Parameteroperator[] (CORBA::ULong i) const
virtual void _allocate_buffer (CORBA::ULong length)
virtual void _deallocate_buffer (void)
 Must deallocate the buffer and then set it to zero. More...

Parameterget_buffer (CORBA::Boolean orphan=0)
const Parameterget_buffer (void) const
void replace (CORBA::ULong max, CORBA::ULong length, Parameter *data, CORBA::Boolean release)

Static Public Methods

Parameterallocbuf (CORBA::ULong size)
void freebuf (Parameter *buffer)

Constructor & Destructor Documentation

Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::_TAO_Unbounded_Sequence_Dynamic_ParameterList void   
 

Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::_TAO_Unbounded_Sequence_Dynamic_ParameterList CORBA::ULong    maximum
 

Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::_TAO_Unbounded_Sequence_Dynamic_ParameterList CORBA::ULong    maximum,
CORBA::ULong    length,
Parameter   data,
CORBA::Boolean    release = 0
 

Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::_TAO_Unbounded_Sequence_Dynamic_ParameterList const _TAO_Unbounded_Sequence_Dynamic_ParameterList &    rhs
 

Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::~_TAO_Unbounded_Sequence_Dynamic_ParameterList void    [virtual]
 

Definition at line 160 of file DynamicC.cpp.

00161 {
00162   this->_deallocate_buffer ();
00163 }


Member Function Documentation

void Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::_allocate_buffer CORBA::ULong    length [virtual]
 

Ensure that the buffer contains space for at least <length> elements. The constructor must be called for any new elements, the old ones (if any) must be copied into the buffer using operator= and then their destructors must be called. Finally the old buffer must be released.

Implements TAO_Base_Sequence.

Definition at line 129 of file DynamicC.cpp.

References TAO_Base_Sequence::buffer_, TAO_Unbounded_Base_Sequence::length, TAO_Base_Sequence::length_, and TAO_Base_Sequence::release_.

00130 {
00131   Dynamic::Parameter* tmp = 0;
00132   tmp = _TAO_Unbounded_Sequence_Dynamic_ParameterList::allocbuf (length);
00133   
00134   if (this->buffer_ != 0)
00135   {
00136     Dynamic::Parameter *old = ACE_reinterpret_cast (Dynamic::Parameter *,this->buffer_);
00137     
00138     for (CORBA::ULong i = 0; i < this->length_; ++i)
00139       tmp[i] = old[i];
00140     
00141     if (this->release_)
00142       _TAO_Unbounded_Sequence_Dynamic_ParameterList::freebuf (old);
00143     
00144   }
00145   this->buffer_ = tmp;
00146 }

void Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::_deallocate_buffer void    [virtual]
 

Must deallocate the buffer and then set it to zero.

Implements TAO_Base_Sequence.

Definition at line 149 of file DynamicC.cpp.

References TAO_Base_Sequence::buffer_, and TAO_Base_Sequence::release_.

00150 {
00151   if (this->buffer_ == 0 || this->release_ == 0)
00152     return;
00153   
00154   Dynamic::Parameter *tmp = ACE_reinterpret_cast (Dynamic::Parameter *,this->buffer_);
00155   
00156   _TAO_Unbounded_Sequence_Dynamic_ParameterList::freebuf (tmp);
00157   this->buffer_ = 0;
00158 } 

Parameter* Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::allocbuf CORBA::ULong    size [static]
 

void Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::freebuf Parameter   buffer [static]
 

const Parameter* Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::get_buffer void    const
 

Parameter* Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::get_buffer CORBA::Boolean    orphan = 0
 

_TAO_Unbounded_Sequence_Dynamic_ParameterList& Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::operator= const _TAO_Unbounded_Sequence_Dynamic_ParameterList &    rhs
 

const Parameter& Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::operator[] CORBA::ULong    i const
 

Parameter& Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::operator[] CORBA::ULong    i
 

void Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::replace CORBA::ULong    max,
CORBA::ULong    length,
Parameter   data,
CORBA::Boolean    release
 


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:59:36 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002