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

Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq Class Reference

#include <Messaging_PolicyValueC.h>

Inheritance diagram for Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq:

Inheritance graph
[legend]
Collaboration diagram for Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq:

Collaboration graph
[legend]
List of all members.

Public Methods

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

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

Static Public Methods

PolicyValueallocbuf (CORBA::ULong size)
void freebuf (PolicyValue *buffer)

Constructor & Destructor Documentation

Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq void   
 

Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq CORBA::ULong    maximum
 

Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq CORBA::ULong    maximum,
CORBA::ULong    length,
PolicyValue   data,
CORBA::Boolean    release = 0
 

Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq const _TAO_Unbounded_Sequence_Messaging_PolicyValueSeq &    rhs
 

Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::~_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq void    [virtual]
 

Definition at line 202 of file Messaging_PolicyValueC.cpp.

00203 {
00204   this->_deallocate_buffer ();
00205 }


Member Function Documentation

void Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::_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 171 of file Messaging_PolicyValueC.cpp.

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

00172 {
00173   Messaging::PolicyValue* tmp = 0;
00174   tmp = _TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::allocbuf (length);
00175   
00176   if (this->buffer_ != 0)
00177   {
00178     Messaging::PolicyValue *old = ACE_reinterpret_cast (Messaging::PolicyValue *,this->buffer_);
00179     
00180     for (CORBA::ULong i = 0; i < this->length_; ++i)
00181       tmp[i] = old[i];
00182     
00183     if (this->release_)
00184       _TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::freebuf (old);
00185     
00186   }
00187   this->buffer_ = tmp;
00188 }

void Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::_deallocate_buffer void    [virtual]
 

Must deallocate the buffer and then set it to zero.

Implements TAO_Base_Sequence.

Definition at line 191 of file Messaging_PolicyValueC.cpp.

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

00192 {
00193   if (this->buffer_ == 0 || this->release_ == 0)
00194     return;
00195   
00196   Messaging::PolicyValue *tmp = ACE_reinterpret_cast (Messaging::PolicyValue *,this->buffer_);
00197   
00198   _TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::freebuf (tmp);
00199   this->buffer_ = 0;
00200 } 

PolicyValue* Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::allocbuf CORBA::ULong    size [static]
 

void Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::freebuf PolicyValue   buffer [static]
 

const PolicyValue* Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::get_buffer void    const
 

PolicyValue* Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::get_buffer CORBA::Boolean    orphan = 0
 

Referenced by TAO_Profile::policies.

_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq& Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::operator= const _TAO_Unbounded_Sequence_Messaging_PolicyValueSeq &    rhs
 

const PolicyValue& Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::operator[] CORBA::ULong    i const
 

PolicyValue& Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::operator[] CORBA::ULong    i
 

void Messaging::_TAO_Unbounded_Sequence_Messaging_PolicyValueSeq::replace CORBA::ULong    max,
CORBA::ULong    length,
PolicyValue   data,
CORBA::Boolean    release
 


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