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

IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList Class Reference

#include <IOPC.h>

Inheritance diagram for IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList:

Inheritance graph
[legend]
Collaboration diagram for IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList:

Collaboration graph
[legend]
List of all members.

Public Methods

 _TAO_Unbounded_Sequence_IOP_TaggedComponentList (void)
 _TAO_Unbounded_Sequence_IOP_TaggedComponentList (CORBA::ULong maximum)
 _TAO_Unbounded_Sequence_IOP_TaggedComponentList (CORBA::ULong maximum, CORBA::ULong length, TaggedComponent *data, CORBA::Boolean release=0)
 _TAO_Unbounded_Sequence_IOP_TaggedComponentList (const _TAO_Unbounded_Sequence_IOP_TaggedComponentList &rhs)
_TAO_Unbounded_Sequence_IOP_TaggedComponentList & operator= (const _TAO_Unbounded_Sequence_IOP_TaggedComponentList &rhs)
virtual ~_TAO_Unbounded_Sequence_IOP_TaggedComponentList (void)
TaggedComponentoperator[] (CORBA::ULong i)
const TaggedComponentoperator[] (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...

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

Static Public Methods

TaggedComponentallocbuf (CORBA::ULong size)
void freebuf (TaggedComponent *buffer)

Constructor & Destructor Documentation

IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList void   
 

IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList CORBA::ULong    maximum
 

IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList CORBA::ULong    maximum,
CORBA::ULong    length,
TaggedComponent   data,
CORBA::Boolean    release = 0
 

IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList const _TAO_Unbounded_Sequence_IOP_TaggedComponentList &    rhs
 

IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::~_TAO_Unbounded_Sequence_IOP_TaggedComponentList void    [virtual]
 

Definition at line 787 of file IOPC.cpp.

00788 {
00789   this->_deallocate_buffer ();
00790 }


Member Function Documentation

void IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_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 756 of file IOPC.cpp.

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

00757 {
00758   IOP::TaggedComponent* tmp = 0;
00759   tmp = _TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (length);
00760 
00761   if (this->buffer_ != 0)
00762   {
00763     IOP::TaggedComponent *old = ACE_reinterpret_cast (IOP::TaggedComponent *,this->buffer_);
00764 
00765     for (CORBA::ULong i = 0; i < this->length_; ++i)
00766       tmp[i] = old[i];
00767 
00768     if (this->release_)
00769       _TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf (old);
00770 
00771   }
00772   this->buffer_ = tmp;
00773 }

void IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_deallocate_buffer void    [virtual]
 

Must deallocate the buffer and then set it to zero.

Implements TAO_Base_Sequence.

Definition at line 776 of file IOPC.cpp.

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

00777 {
00778   if (this->buffer_ == 0 || this->release_ == 0)
00779     return;
00780 
00781   IOP::TaggedComponent *tmp = ACE_reinterpret_cast (IOP::TaggedComponent *,this->buffer_);
00782 
00783   _TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf (tmp);
00784   this->buffer_ = 0;
00785 }

TaggedComponent* IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf CORBA::ULong    size [static]
 

void IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf TaggedComponent   buffer [static]
 

const TaggedComponent* IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::get_buffer void    const
 

TaggedComponent* IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::get_buffer CORBA::Boolean    orphan = 0
 

_TAO_Unbounded_Sequence_IOP_TaggedComponentList& IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::operator= const _TAO_Unbounded_Sequence_IOP_TaggedComponentList &    rhs
 

const TaggedComponent& IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::operator[] CORBA::ULong    i const
 

TaggedComponent& IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::operator[] CORBA::ULong    i
 

void IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::replace CORBA::ULong    max,
CORBA::ULong    length,
TaggedComponent   data,
CORBA::Boolean    release
 


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