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

CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail Class Reference

#include <Services.h>

Inheritance diagram for CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail:

Inheritance graph
[legend]
Collaboration diagram for CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail:

Collaboration graph
[legend]
List of all members.

Public Methods

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

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

Static Public Methods

CORBA_ServiceDetailallocbuf (CORBA::ULong size)
void freebuf (CORBA_ServiceDetail *buffer)

Constructor & Destructor Documentation

ACE_INLINE CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail void   
 

Definition at line 912 of file Services.i.

00913   {
00914   }

ACE_INLINE CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail CORBA::ULong    maximum
 

Definition at line 917 of file Services.i.

References allocbuf.

ACE_INLINE CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail CORBA::ULong    maximum,
CORBA::ULong    length,
CORBA_ServiceDetail   data,
CORBA::Boolean    release = 0
 

Definition at line 923 of file Services.i.

00927   : TAO_Unbounded_Base_Sequence (maximum, length, data, release)
00928   {
00929   }

CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail const _TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail &    rhs
 

virtual CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::~_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail void    [virtual]
 


Member Function Documentation

virtual void CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::_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.

virtual void CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::_deallocate_buffer void    [virtual]
 

Must deallocate the buffer and then set it to zero.

Implements TAO_Base_Sequence.

CORBA_ServiceDetail* CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::allocbuf CORBA::ULong    size [static]
 

Referenced by _TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail, and get_buffer.

void CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::freebuf CORBA_ServiceDetail   buffer [static]
 

Referenced by replace.

ACE_INLINE const CORBA_ServiceDetail * CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::get_buffer void    const
 

Definition at line 1032 of file Services.i.

01033   {
01034     return ACE_reinterpret_cast(const CORBA_ServiceDetail * ACE_CAST_CONST, this->buffer_);
01035   }

ACE_INLINE CORBA_ServiceDetail * CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::get_buffer CORBA::Boolean    orphan = 0
 

Definition at line 998 of file Services.i.

References allocbuf, TAO_Base_Sequence::buffer_, TAO_Base_Sequence::length_, TAO_Base_Sequence::maximum_, and TAO_Base_Sequence::release_.

00999   {
01000     CORBA_ServiceDetail *result = 0;
01001     if (orphan == 0)
01002     {
01003       // We retain ownership.
01004       if (this->buffer_ == 0)
01005       {
01006         result = CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::allocbuf (this->length_);
01007         this->buffer_ = result;
01008         this->release_ = 1;
01009       }
01010       else
01011       {
01012         result = ACE_reinterpret_cast (CORBA_ServiceDetail*, this->buffer_);
01013       }
01014     }
01015     else // if (orphan == 1)
01016     {
01017       if (this->release_ != 0)
01018       {
01019         // We set the state back to default and relinquish
01020         // ownership.
01021         result = ACE_reinterpret_cast(CORBA_ServiceDetail*,this->buffer_);
01022         this->maximum_ = 0;
01023         this->length_ = 0;
01024         this->buffer_ = 0;
01025         this->release_ = 0;
01026       }
01027     }
01028     return result;
01029   }

_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail& CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::operator= const _TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail &    rhs
 

ACE_INLINE const CORBA_ServiceDetail & CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::operator[] CORBA::ULong    i const
 

Definition at line 987 of file Services.i.

References ACE_ASSERT.

00989   {
00990     ACE_ASSERT (i < this->maximum_);
00991     CORBA_ServiceDetail * const tmp = ACE_reinterpret_cast (CORBA_ServiceDetail* ACE_CAST_CONST, this->buffer_);
00992     return tmp[i];
00993   }

ACE_INLINE CORBA_ServiceDetail & CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::operator[] CORBA::ULong    i
 

Definition at line 978 of file Services.i.

References ACE_ASSERT.

00980   {
00981     ACE_ASSERT (i < this->maximum_);
00982     CORBA_ServiceDetail* tmp = ACE_reinterpret_cast(CORBA_ServiceDetail*,this->buffer_);
00983     return tmp[i];
00984   }

ACE_INLINE void CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::replace CORBA::ULong    max,
CORBA::ULong    length,
CORBA_ServiceDetail   data,
CORBA::Boolean    release
 

Definition at line 1038 of file Services.i.

References TAO_Base_Sequence::buffer_, freebuf, TAO_Unbounded_Base_Sequence::length, TAO_Base_Sequence::length_, TAO_Base_Sequence::maximum_, TAO_Base_Sequence::release, and TAO_Base_Sequence::release_.

01042   {
01043     this->maximum_ = max;
01044     this->length_ = length;
01045     if (this->buffer_ && this->release_ == 1)
01046     {
01047       CORBA_ServiceDetail *tmp = ACE_reinterpret_cast(CORBA_ServiceDetail*,this->buffer_);
01048       CORBA_ServiceInformation::_TAO_Unbounded_Sequence_CORBA_ServiceInformation__tao_seq_ServiceDetail::freebuf (tmp);
01049     }
01050     this->buffer_ = data;
01051     this->release_ = release;
01052   }


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