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_TaggedComponentSeq Class Reference

#include <IOPC.h>

Inheritance diagram for IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (void)
 _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (CORBA::ULong maximum)
 _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (CORBA::ULong maximum, CORBA::ULong length, TaggedComponent *data, CORBA::Boolean release=0)
 _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (const _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq &rhs)
_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq & operator= (const _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq &rhs)
virtual ~_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (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_TaggedComponentSeq::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq void   
 

IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq CORBA::ULong    maximum
 

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

IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq const _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq &    rhs
 

IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::~_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq void    [virtual]
 

Definition at line 976 of file IOPC.cpp.

00977 {
00978   this->_deallocate_buffer ();
00979 }


Member Function Documentation

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

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

00946 {
00947   IOP::TaggedComponent* tmp = 0;
00948   tmp = _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::allocbuf (length);
00949 
00950   if (this->buffer_ != 0)
00951   {
00952     IOP::TaggedComponent *old = ACE_reinterpret_cast (IOP::TaggedComponent *,this->buffer_);
00953 
00954     for (CORBA::ULong i = 0; i < this->length_; ++i)
00955       tmp[i] = old[i];
00956 
00957     if (this->release_)
00958       _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::freebuf (old);
00959 
00960   }
00961   this->buffer_ = tmp;
00962 }

void IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::_deallocate_buffer void    [virtual]
 

Must deallocate the buffer and then set it to zero.

Implements TAO_Base_Sequence.

Definition at line 965 of file IOPC.cpp.

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

00966 {
00967   if (this->buffer_ == 0 || this->release_ == 0)
00968     return;
00969 
00970   IOP::TaggedComponent *tmp = ACE_reinterpret_cast (IOP::TaggedComponent *,this->buffer_);
00971 
00972   _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::freebuf (tmp);
00973   this->buffer_ = 0;
00974 }

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

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

const TaggedComponent* IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::get_buffer void    const
 

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

_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq& IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::operator= const _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq &    rhs
 

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

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

void IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::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:45 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002