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

IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList Class Reference

#include <IIOPC.h>

Inheritance diagram for IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList:

Inheritance graph
[legend]
Collaboration diagram for IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList:

Collaboration graph
[legend]
List of all members.

Public Methods

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

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

Static Public Methods

ListenPointallocbuf (CORBA::ULong size)
void freebuf (ListenPoint *buffer)

Constructor & Destructor Documentation

IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::_TAO_Unbounded_Sequence_IIOP_ListenPointList void   
 

IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::_TAO_Unbounded_Sequence_IIOP_ListenPointList CORBA::ULong    maximum
 

IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::_TAO_Unbounded_Sequence_IIOP_ListenPointList CORBA::ULong    maximum,
CORBA::ULong    length,
ListenPoint   data,
CORBA::Boolean    release = 0
 

IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::_TAO_Unbounded_Sequence_IIOP_ListenPointList const _TAO_Unbounded_Sequence_IIOP_ListenPointList &    rhs
 

IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::~_TAO_Unbounded_Sequence_IIOP_ListenPointList void    [virtual]
 

Definition at line 93 of file IIOPC.cpp.

00094   {
00095     this->_deallocate_buffer ();
00096   }


Member Function Documentation

void IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::_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 62 of file IIOPC.cpp.

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

00063   {
00064     IIOP::ListenPoint* tmp = 0;
00065     tmp = _TAO_Unbounded_Sequence_IIOP_ListenPointList::allocbuf (length);
00066 
00067     if (this->buffer_ != 0)
00068     {
00069       IIOP::ListenPoint *old = ACE_reinterpret_cast (IIOP::ListenPoint *,this->buffer_);
00070 
00071       for (CORBA::ULong i = 0; i < this->length_; ++i)
00072         tmp[i] = old[i];
00073 
00074       if (this->release_)
00075         _TAO_Unbounded_Sequence_IIOP_ListenPointList::freebuf (old);
00076 
00077     }
00078     this->buffer_ = tmp;
00079   }

void IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::_deallocate_buffer void    [virtual]
 

Must deallocate the buffer and then set it to zero.

Implements TAO_Base_Sequence.

Definition at line 82 of file IIOPC.cpp.

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

00083   {
00084     if (this->buffer_ == 0 || this->release_ == 0)
00085       return;
00086 
00087     IIOP::ListenPoint *tmp = ACE_reinterpret_cast (IIOP::ListenPoint *,this->buffer_);
00088 
00089     _TAO_Unbounded_Sequence_IIOP_ListenPointList::freebuf (tmp);
00090     this->buffer_ = 0;
00091   }

ListenPoint* IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::allocbuf CORBA::ULong    size [static]
 

void IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::freebuf ListenPoint   buffer [static]
 

const ListenPoint* IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::get_buffer void    const
 

ListenPoint* IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::get_buffer CORBA::Boolean    orphan = 0
 

_TAO_Unbounded_Sequence_IIOP_ListenPointList& IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::operator= const _TAO_Unbounded_Sequence_IIOP_ListenPointList &    rhs
 

const ListenPoint& IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::operator[] CORBA::ULong    i const
 

ListenPoint& IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::operator[] CORBA::ULong    i
 

void IIOP::_TAO_Unbounded_Sequence_IIOP_ListenPointList::replace CORBA::ULong    max,
CORBA::ULong    length,
ListenPoint   data,
CORBA::Boolean    release
 


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