diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2000-09-25 18:18:29 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2000-09-25 18:18:29 +0000 |
commit | c89d5da5dd8d4398598e24cf3e56ad71b8e0f6c7 (patch) | |
tree | 3e2d146a8f58c5ea761633a35a261e2f22515ec6 /TAO/tao/IOPC.i | |
parent | feb766e0ee53b5e4069b44e37db0b90b073a4cf3 (diff) | |
download | ATCD-c89d5da5dd8d4398598e24cf3e56ad71b8e0f6c7.tar.gz |
ChangeLogTag:Mon Sep 25 11:09:20 2000 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'TAO/tao/IOPC.i')
-rw-r--r-- | TAO/tao/IOPC.i | 2252 |
1 files changed, 2038 insertions, 214 deletions
diff --git a/TAO/tao/IOPC.i b/TAO/tao/IOPC.i index 970fb04cb64..138236420af 100644 --- a/TAO/tao/IOPC.i +++ b/TAO/tao/IOPC.i @@ -1,5 +1,24 @@ +// -*- C++ -*- +// // $Id$ +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-group.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + // ************************************************************* // Inline operations for class IOP::TaggedProfile_var // ************************************************************* @@ -10,16 +29,15 @@ IOP::TaggedProfile_var::TaggedProfile_var (void) // default constructor {} ACE_INLINE -IOP::TaggedProfile_var::TaggedProfile_var (IOP::TaggedProfile *p) +IOP::TaggedProfile_var::TaggedProfile_var (TaggedProfile *p) : ptr_ (p) {} ACE_INLINE -IOP::TaggedProfile_var::TaggedProfile_var (const IOP::TaggedProfile_var &p) // copy constructor +IOP::TaggedProfile_var::TaggedProfile_var (const ::IOP::TaggedProfile_var &p) // copy constructor { if (p.ptr_) - ACE_NEW (this->ptr_, - IOP::TaggedProfile(*p.ptr_)); + ACE_NEW (this->ptr_, ::IOP::TaggedProfile (*p.ptr_)); else this->ptr_ = 0; } @@ -31,70 +49,75 @@ IOP::TaggedProfile_var::~TaggedProfile_var (void) // destructor } ACE_INLINE IOP::TaggedProfile_var & -IOP::TaggedProfile_var::operator= (IOP::TaggedProfile *p) +IOP::TaggedProfile_var::operator= (TaggedProfile *p) { delete this->ptr_; this->ptr_ = p; return *this; } -ACE_INLINE IOP::TaggedProfile_var & -IOP::TaggedProfile_var::operator= (const IOP::TaggedProfile_var &p) +ACE_INLINE ::IOP::TaggedProfile_var & +IOP::TaggedProfile_var::operator= (const ::IOP::TaggedProfile_var &p) { if (this != &p) { delete this->ptr_; - ACE_NEW_RETURN (this->ptr_, - IOP::TaggedProfile (*p.ptr_), - *this); + ACE_NEW_RETURN (this->ptr_, ::IOP::TaggedProfile (*p.ptr_), *this); } return *this; } -ACE_INLINE const IOP::TaggedProfile * +ACE_INLINE const ::IOP::TaggedProfile * IOP::TaggedProfile_var::operator-> (void) const { return this->ptr_; } -ACE_INLINE IOP::TaggedProfile * +ACE_INLINE ::IOP::TaggedProfile * IOP::TaggedProfile_var::operator-> (void) { return this->ptr_; } ACE_INLINE -IOP::TaggedProfile_var::operator const IOP::TaggedProfile &() const // cast +IOP::TaggedProfile_var::operator const ::IOP::TaggedProfile &() const // cast { return *this->ptr_; } ACE_INLINE -IOP::TaggedProfile_var::operator IOP::TaggedProfile &() // cast +IOP::TaggedProfile_var::operator ::IOP::TaggedProfile &() // cast { return *this->ptr_; } ACE_INLINE -IOP::TaggedProfile_var::operator IOP::TaggedProfile &() const// cast +IOP::TaggedProfile_var::operator ::IOP::TaggedProfile &() const // cast { return *this->ptr_; } -ACE_INLINE const IOP::TaggedProfile & +// variable-size types only +ACE_INLINE +IOP::TaggedProfile_var::operator ::IOP::TaggedProfile *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE const ::IOP::TaggedProfile & IOP::TaggedProfile_var::in (void) const { return *this->ptr_; } -ACE_INLINE IOP::TaggedProfile & +ACE_INLINE ::IOP::TaggedProfile & IOP::TaggedProfile_var::inout (void) { return *this->ptr_; } -// mapping for variable size -ACE_INLINE IOP::TaggedProfile *& +// mapping for variable size +ACE_INLINE ::IOP::TaggedProfile *& IOP::TaggedProfile_var::out (void) { delete this->ptr_; @@ -102,15 +125,15 @@ IOP::TaggedProfile_var::out (void) return this->ptr_; } -ACE_INLINE IOP::TaggedProfile * +ACE_INLINE ::IOP::TaggedProfile * IOP::TaggedProfile_var::_retn (void) { - IOP::TaggedProfile *tmp = this->ptr_; + ::IOP::TaggedProfile *tmp = this->ptr_; this->ptr_ = 0; return tmp; } -ACE_INLINE IOP::TaggedProfile * +ACE_INLINE ::IOP::TaggedProfile * IOP::TaggedProfile_var::ptr (void) const { return this->ptr_; @@ -121,14 +144,14 @@ IOP::TaggedProfile_var::ptr (void) const // ************************************************************* ACE_INLINE -IOP::TaggedProfile_out::TaggedProfile_out (IOP::TaggedProfile *&p) +IOP::TaggedProfile_out::TaggedProfile_out (::IOP::TaggedProfile *&p) : ptr_ (p) { this->ptr_ = 0; } ACE_INLINE -IOP::TaggedProfile_out::TaggedProfile_out (IOP::TaggedProfile_var &p) // constructor from _var +IOP::TaggedProfile_out::TaggedProfile_out (TaggedProfile_var &p) // constructor from _var : ptr_ (p.out ()) { delete this->ptr_; @@ -136,42 +159,249 @@ IOP::TaggedProfile_out::TaggedProfile_out (IOP::TaggedProfile_var &p) // constru } ACE_INLINE -IOP::TaggedProfile_out::TaggedProfile_out (const IOP::TaggedProfile_out &p) // copy constructor - : ptr_ (ACE_const_cast (IOP::TaggedProfile_out&,p).ptr_) +IOP::TaggedProfile_out::TaggedProfile_out (const ::IOP::TaggedProfile_out &p) // copy constructor + : ptr_ (ACE_const_cast (TaggedProfile_out&, p).ptr_) {} ACE_INLINE IOP::TaggedProfile_out & -IOP::TaggedProfile_out::operator= (const IOP::TaggedProfile_out &p) +IOP::TaggedProfile_out::operator= (const ::IOP::TaggedProfile_out &p) { - this->ptr_ = ACE_const_cast (IOP::TaggedProfile_out&,p).ptr_; + this->ptr_ = ACE_const_cast (TaggedProfile_out&, p).ptr_; return *this; } ACE_INLINE IOP::TaggedProfile_out & -IOP::TaggedProfile_out::operator= (IOP::TaggedProfile *p) +IOP::TaggedProfile_out::operator= (TaggedProfile *p) { this->ptr_ = p; return *this; } -ACE_INLINE -IOP::TaggedProfile_out::operator IOP::TaggedProfile *&() // cast +ACE_INLINE +IOP::TaggedProfile_out::operator ::IOP::TaggedProfile *&() // cast { return this->ptr_; } -ACE_INLINE IOP::TaggedProfile *& +ACE_INLINE ::IOP::TaggedProfile *& IOP::TaggedProfile_out::ptr (void) // ptr { return this->ptr_; } -ACE_INLINE IOP::TaggedProfile * +ACE_INLINE ::IOP::TaggedProfile * IOP::TaggedProfile_out::operator-> (void) { return this->ptr_; } + +#if !defined (_IOP_TAGGEDPROFILE__TAO_SEQ_OCTET_CI_) +#define _IOP_TAGGEDPROFILE__TAO_SEQ_OCTET_CI_ + +// ************************************************************* +// Inline operations for class IOP::TaggedProfile::_tao_seq_Octet_var +// ************************************************************* + +ACE_INLINE +IOP::TaggedProfile::_tao_seq_Octet_var::_tao_seq_Octet_var (void) // default constructor + : ptr_ (0) +{} + +ACE_INLINE +IOP::TaggedProfile::_tao_seq_Octet_var::_tao_seq_Octet_var (_tao_seq_Octet *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::TaggedProfile::_tao_seq_Octet_var::_tao_seq_Octet_var (const ::IOP::TaggedProfile::_tao_seq_Octet_var &p) // copy constructor +{ + if (p.ptr_) + ACE_NEW (this->ptr_, ::IOP::TaggedProfile::_tao_seq_Octet (*p.ptr_)); + else + this->ptr_ = 0; +} + +// fixed-size base types only +ACE_INLINE +IOP::TaggedProfile::_tao_seq_Octet_var::_tao_seq_Octet_var (const ::IOP::TaggedProfile::_tao_seq_Octet &p) +{ + ACE_NEW (this->ptr_, ::IOP::TaggedProfile::_tao_seq_Octet (p)); +} + +ACE_INLINE +IOP::TaggedProfile::_tao_seq_Octet_var::~_tao_seq_Octet_var (void) // destructor +{ + delete this->ptr_; +} + +ACE_INLINE IOP::TaggedProfile::_tao_seq_Octet_var & +IOP::TaggedProfile::_tao_seq_Octet_var::operator= (_tao_seq_Octet *p) +{ + delete this->ptr_; + this->ptr_ = p; + return *this; +} + +ACE_INLINE IOP::TaggedProfile::_tao_seq_Octet_var & +IOP::TaggedProfile::_tao_seq_Octet_var::operator= (const ::IOP::TaggedProfile::_tao_seq_Octet_var &p) // deep copy +{ + if (this != &p) + { + delete this->ptr_; + ACE_NEW_RETURN (this->ptr_, ::IOP::TaggedProfile::_tao_seq_Octet (*p.ptr_), *this); + } + return *this; +} + +// fixed-size types only +ACE_INLINE ::IOP::TaggedProfile::_tao_seq_Octet_var & +IOP::TaggedProfile::_tao_seq_Octet_var::operator= (const ::IOP::TaggedProfile::_tao_seq_Octet &p) +{ + if (this->ptr_ != &p) + { + delete this->ptr_; + ACE_NEW_RETURN (this->ptr_, ::IOP::TaggedProfile::_tao_seq_Octet (p), *this); + } + return *this; +} + +ACE_INLINE const ::IOP::TaggedProfile::_tao_seq_Octet * +IOP::TaggedProfile::_tao_seq_Octet_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedProfile::_tao_seq_Octet * +IOP::TaggedProfile::_tao_seq_Octet_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedProfile::_tao_seq_Octet_var::operator const ::IOP::TaggedProfile::_tao_seq_Octet &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedProfile::_tao_seq_Octet_var::operator ::IOP::TaggedProfile::_tao_seq_Octet &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedProfile::_tao_seq_Octet_var::operator ::IOP::TaggedProfile::_tao_seq_Octet &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE CORBA::Octet & +IOP::TaggedProfile::_tao_seq_Octet_var::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +ACE_INLINE const ::IOP::TaggedProfile::_tao_seq_Octet & +IOP::TaggedProfile::_tao_seq_Octet_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE ::IOP::TaggedProfile::_tao_seq_Octet & +IOP::TaggedProfile::_tao_seq_Octet_var::inout (void) +{ + return *this->ptr_; +} + +// mapping for variable size +ACE_INLINE ::IOP::TaggedProfile::_tao_seq_Octet *& +IOP::TaggedProfile::_tao_seq_Octet_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedProfile::_tao_seq_Octet * +IOP::TaggedProfile::_tao_seq_Octet_var::_retn (void) +{ + ::IOP::TaggedProfile::_tao_seq_Octet *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE ::IOP::TaggedProfile::_tao_seq_Octet * +IOP::TaggedProfile::_tao_seq_Octet_var::ptr (void) const +{ + return this->ptr_; +} + +// ************************************************************* +// Inline operations for class IOP::TaggedProfile::_tao_seq_Octet_out +// ************************************************************* + +ACE_INLINE +IOP::TaggedProfile::_tao_seq_Octet_out::_tao_seq_Octet_out (_tao_seq_Octet *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedProfile::_tao_seq_Octet_out::_tao_seq_Octet_out (_tao_seq_Octet_var &p) // constructor from _var + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedProfile::_tao_seq_Octet_out::_tao_seq_Octet_out (const ::IOP::TaggedProfile::_tao_seq_Octet_out &p) // copy constructor + : ptr_ (ACE_const_cast (_tao_seq_Octet_out&, p).ptr_) +{} + +ACE_INLINE ::IOP::TaggedProfile::_tao_seq_Octet_out & +IOP::TaggedProfile::_tao_seq_Octet_out::operator= (const ::IOP::TaggedProfile::_tao_seq_Octet_out &p) +{ + this->ptr_ = ACE_const_cast (_tao_seq_Octet_out&, p).ptr_; + return *this; +} + +ACE_INLINE ::IOP::TaggedProfile::_tao_seq_Octet_out & +IOP::TaggedProfile::_tao_seq_Octet_out::operator= (_tao_seq_Octet *p) +{ + this->ptr_ = p; + return *this; +} + +ACE_INLINE +IOP::TaggedProfile::_tao_seq_Octet_out::operator ::IOP::TaggedProfile::_tao_seq_Octet *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedProfile::_tao_seq_Octet *& +IOP::TaggedProfile::_tao_seq_Octet_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedProfile::_tao_seq_Octet * +IOP::TaggedProfile::_tao_seq_Octet_out::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE CORBA::Octet & +IOP::TaggedProfile::_tao_seq_Octet_out::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + + +#endif /* end #if !defined */ + // ************************************************************* // Inline operations for class IOP::IOR_var // ************************************************************* @@ -182,16 +412,15 @@ IOP::IOR_var::IOR_var (void) // default constructor {} ACE_INLINE -IOP::IOR_var::IOR_var (IOP::IOR *p) +IOP::IOR_var::IOR_var (IOR *p) : ptr_ (p) {} ACE_INLINE -IOP::IOR_var::IOR_var (const IOP::IOR_var &p) // copy constructor +IOP::IOR_var::IOR_var (const ::IOP::IOR_var &p) // copy constructor { if (p.ptr_) - ACE_NEW (this->ptr_, - IOP::IOR(*p.ptr_)); + ACE_NEW (this->ptr_, ::IOP::IOR (*p.ptr_)); else this->ptr_ = 0; } @@ -203,70 +432,75 @@ IOP::IOR_var::~IOR_var (void) // destructor } ACE_INLINE IOP::IOR_var & -IOP::IOR_var::operator= (IOP::IOR *p) +IOP::IOR_var::operator= (IOR *p) { delete this->ptr_; this->ptr_ = p; return *this; } -ACE_INLINE IOP::IOR_var & -IOP::IOR_var::operator= (const IOP::IOR_var &p) +ACE_INLINE ::IOP::IOR_var & +IOP::IOR_var::operator= (const ::IOP::IOR_var &p) { if (this != &p) { delete this->ptr_; - ACE_NEW_RETURN (this->ptr_, - IOP::IOR (*p.ptr_), - *this); + ACE_NEW_RETURN (this->ptr_, ::IOP::IOR (*p.ptr_), *this); } return *this; } -ACE_INLINE const IOP::IOR * +ACE_INLINE const ::IOP::IOR * IOP::IOR_var::operator-> (void) const { return this->ptr_; } -ACE_INLINE IOP::IOR * +ACE_INLINE ::IOP::IOR * IOP::IOR_var::operator-> (void) { return this->ptr_; } ACE_INLINE -IOP::IOR_var::operator const IOP::IOR &() const // cast +IOP::IOR_var::operator const ::IOP::IOR &() const // cast { return *this->ptr_; } ACE_INLINE -IOP::IOR_var::operator IOP::IOR &() // cast +IOP::IOR_var::operator ::IOP::IOR &() // cast { return *this->ptr_; } ACE_INLINE -IOP::IOR_var::operator IOP::IOR &() const// cast +IOP::IOR_var::operator ::IOP::IOR &() const // cast { return *this->ptr_; } -ACE_INLINE const IOP::IOR & +// variable-size types only +ACE_INLINE +IOP::IOR_var::operator ::IOP::IOR *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE const ::IOP::IOR & IOP::IOR_var::in (void) const { return *this->ptr_; } -ACE_INLINE IOP::IOR & +ACE_INLINE ::IOP::IOR & IOP::IOR_var::inout (void) { return *this->ptr_; } -// mapping for variable size -ACE_INLINE IOP::IOR *& +// mapping for variable size +ACE_INLINE ::IOP::IOR *& IOP::IOR_var::out (void) { delete this->ptr_; @@ -274,15 +508,15 @@ IOP::IOR_var::out (void) return this->ptr_; } -ACE_INLINE IOP::IOR * +ACE_INLINE ::IOP::IOR * IOP::IOR_var::_retn (void) { - IOP::IOR *tmp = this->ptr_; + ::IOP::IOR *tmp = this->ptr_; this->ptr_ = 0; return tmp; } -ACE_INLINE IOP::IOR * +ACE_INLINE ::IOP::IOR * IOP::IOR_var::ptr (void) const { return this->ptr_; @@ -293,14 +527,14 @@ IOP::IOR_var::ptr (void) const // ************************************************************* ACE_INLINE -IOP::IOR_out::IOR_out (IOP::IOR *&p) +IOP::IOR_out::IOR_out (::IOP::IOR *&p) : ptr_ (p) { this->ptr_ = 0; } ACE_INLINE -IOP::IOR_out::IOR_out (IOP::IOR_var &p) // constructor from _var +IOP::IOR_out::IOR_out (IOR_var &p) // constructor from _var : ptr_ (p.out ()) { delete this->ptr_; @@ -308,42 +542,413 @@ IOP::IOR_out::IOR_out (IOP::IOR_var &p) // constructor from _var } ACE_INLINE -IOP::IOR_out::IOR_out (const IOP::IOR_out &p) // copy constructor - : ptr_ (ACE_const_cast (IOP::IOR_out&,p).ptr_) +IOP::IOR_out::IOR_out (const ::IOP::IOR_out &p) // copy constructor + : ptr_ (ACE_const_cast (IOR_out&, p).ptr_) {} ACE_INLINE IOP::IOR_out & -IOP::IOR_out::operator= (const IOP::IOR_out &p) +IOP::IOR_out::operator= (const ::IOP::IOR_out &p) { - this->ptr_ = ACE_const_cast (IOP::IOR_out&,p).ptr_; + this->ptr_ = ACE_const_cast (IOR_out&, p).ptr_; return *this; } ACE_INLINE IOP::IOR_out & -IOP::IOR_out::operator= (IOP::IOR *p) +IOP::IOR_out::operator= (IOR *p) { this->ptr_ = p; return *this; } -ACE_INLINE -IOP::IOR_out::operator IOP::IOR *&() // cast +ACE_INLINE +IOP::IOR_out::operator ::IOP::IOR *&() // cast { return this->ptr_; } -ACE_INLINE IOP::IOR *& +ACE_INLINE ::IOP::IOR *& IOP::IOR_out::ptr (void) // ptr { return this->ptr_; } -ACE_INLINE IOP::IOR * +ACE_INLINE ::IOP::IOR * IOP::IOR_out::operator-> (void) { return this->ptr_; } + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CI_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CI_ + + // = Static operations. + ACE_INLINE IOP::TaggedProfile * + IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (CORBA::ULong size) + // Allocate storage for the sequence. + { + IOP::TaggedProfile *retval = 0; + ACE_NEW_RETURN (retval, IOP::TaggedProfile[size], 0); + return retval; + } + + ACE_INLINE void IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::freebuf (IOP::TaggedProfile *buffer) + // Free the sequence. + { + delete [] buffer; + } + + ACE_INLINE + IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (void) // Default constructor. + { + } + + ACE_INLINE + IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (CORBA::ULong maximum) // Constructor using a maximum length value. + : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (maximum)) + { + } + + ACE_INLINE + IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (CORBA::ULong maximum, + CORBA::ULong length, + IOP::TaggedProfile *data, + CORBA::Boolean release) + : TAO_Unbounded_Base_Sequence (maximum, length, data, release) + { + } + + ACE_INLINE + IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (const _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile &rhs) + // Copy constructor. + : TAO_Unbounded_Base_Sequence (rhs) + { + if (rhs.buffer_ != 0) + { + IOP::TaggedProfile *tmp1 = _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (this->maximum_); + IOP::TaggedProfile * const tmp2 = ACE_reinterpret_cast (IOP::TaggedProfile * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + tmp1[i] = tmp2[i]; + + this->buffer_ = tmp1; + } + else + { + this->buffer_ = 0; + } + } + + ACE_INLINE IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile & + IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::operator= (const _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile &rhs) + // Assignment operator. + { + if (this == &rhs) + return *this; + + if (this->release_) + { + if (this->maximum_ < rhs.maximum_) + { + // free the old buffer + IOP::TaggedProfile *tmp = ACE_reinterpret_cast (IOP::TaggedProfile *, this->buffer_); + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::freebuf (tmp); + this->buffer_ = _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (rhs.maximum_); + } + } + else + this->buffer_ = _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (rhs.maximum_); + + TAO_Unbounded_Base_Sequence::operator= (rhs); + + IOP::TaggedProfile *tmp1 = ACE_reinterpret_cast (IOP::TaggedProfile *, this->buffer_); + IOP::TaggedProfile * const tmp2 = ACE_reinterpret_cast (IOP::TaggedProfile * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + tmp1[i] = tmp2[i]; + + return *this; + } + + // = Accessors. + ACE_INLINE IOP::TaggedProfile & + IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::operator[] (CORBA::ULong i) + // operator [] + { + ACE_ASSERT (i < this->maximum_); + IOP::TaggedProfile* tmp = ACE_reinterpret_cast(IOP::TaggedProfile*,this->buffer_); + return tmp[i]; + } + + ACE_INLINE const IOP::TaggedProfile & + IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::operator[] (CORBA::ULong i) const + // operator [] + { + ACE_ASSERT (i < this->maximum_); + IOP::TaggedProfile * const tmp = ACE_reinterpret_cast (IOP::TaggedProfile* ACE_CAST_CONST, this->buffer_); + return tmp[i]; + } + + // Implement the TAO_Base_Sequence methods (see Sequence.h) + + ACE_INLINE IOP::TaggedProfile * + IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::get_buffer (CORBA::Boolean orphan) + { + IOP::TaggedProfile *result = 0; + if (orphan == 0) + { + // We retain ownership. + if (this->buffer_ == 0) + { + result = _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (this->length_); + this->buffer_ = result; + this->release_ = 1; + } + else + { + result = ACE_reinterpret_cast (IOP::TaggedProfile*, this->buffer_); + } + } + else // if (orphan == 1) + { + if (this->release_ != 0) + { + // We set the state back to default and relinquish + // ownership. + result = ACE_reinterpret_cast(IOP::TaggedProfile*,this->buffer_); + this->maximum_ = 0; + this->length_ = 0; + this->buffer_ = 0; + this->release_ = 0; + } + } + return result; + } + + ACE_INLINE const IOP::TaggedProfile * + IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::get_buffer (void) const + { + return ACE_reinterpret_cast(const IOP::TaggedProfile * ACE_CAST_CONST, this->buffer_); + } + + ACE_INLINE void + IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::replace (CORBA::ULong max, + CORBA::ULong length, + IOP::TaggedProfile *data, + CORBA::Boolean release) + { + this->maximum_ = max; + this->length_ = length; + if (this->buffer_ && this->release_ == 1) + { + IOP::TaggedProfile *tmp = ACE_reinterpret_cast(IOP::TaggedProfile*,this->buffer_); + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::freebuf (tmp); + } + this->buffer_ = data; + this->release_ = release; + } + +#endif /* end #if !defined */ + + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CI_) +#define _IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CI_ + +// ************************************************************* +// Inline operations for class IOP::IOR::_tao_seq_TaggedProfile_var +// ************************************************************* + +ACE_INLINE +IOP::IOR::_tao_seq_TaggedProfile_var::_tao_seq_TaggedProfile_var (void) // default constructor + : ptr_ (0) +{} + +ACE_INLINE +IOP::IOR::_tao_seq_TaggedProfile_var::_tao_seq_TaggedProfile_var (_tao_seq_TaggedProfile *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::IOR::_tao_seq_TaggedProfile_var::_tao_seq_TaggedProfile_var (const ::IOP::IOR::_tao_seq_TaggedProfile_var &p) // copy constructor +{ + if (p.ptr_) + ACE_NEW (this->ptr_, ::IOP::IOR::_tao_seq_TaggedProfile (*p.ptr_)); + else + this->ptr_ = 0; +} + +ACE_INLINE +IOP::IOR::_tao_seq_TaggedProfile_var::~_tao_seq_TaggedProfile_var (void) // destructor +{ + delete this->ptr_; +} + +ACE_INLINE IOP::IOR::_tao_seq_TaggedProfile_var & +IOP::IOR::_tao_seq_TaggedProfile_var::operator= (_tao_seq_TaggedProfile *p) +{ + delete this->ptr_; + this->ptr_ = p; + return *this; +} + +ACE_INLINE IOP::IOR::_tao_seq_TaggedProfile_var & +IOP::IOR::_tao_seq_TaggedProfile_var::operator= (const ::IOP::IOR::_tao_seq_TaggedProfile_var &p) // deep copy +{ + if (this != &p) + { + delete this->ptr_; + ACE_NEW_RETURN (this->ptr_, ::IOP::IOR::_tao_seq_TaggedProfile (*p.ptr_), *this); + } + return *this; +} + +ACE_INLINE const ::IOP::IOR::_tao_seq_TaggedProfile * +IOP::IOR::_tao_seq_TaggedProfile_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::IOR::_tao_seq_TaggedProfile * +IOP::IOR::_tao_seq_TaggedProfile_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::IOR::_tao_seq_TaggedProfile_var::operator const ::IOP::IOR::_tao_seq_TaggedProfile &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::IOR::_tao_seq_TaggedProfile_var::operator ::IOP::IOR::_tao_seq_TaggedProfile &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::IOR::_tao_seq_TaggedProfile_var::operator ::IOP::IOR::_tao_seq_TaggedProfile &() const // cast +{ + return *this->ptr_; +} + +// variable-size types only +ACE_INLINE +IOP::IOR::_tao_seq_TaggedProfile_var::operator ::IOP::IOR::_tao_seq_TaggedProfile *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE IOP::TaggedProfile & +IOP::IOR::_tao_seq_TaggedProfile_var::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +ACE_INLINE const ::IOP::IOR::_tao_seq_TaggedProfile & +IOP::IOR::_tao_seq_TaggedProfile_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE ::IOP::IOR::_tao_seq_TaggedProfile & +IOP::IOR::_tao_seq_TaggedProfile_var::inout (void) +{ + return *this->ptr_; +} + +// mapping for variable size +ACE_INLINE ::IOP::IOR::_tao_seq_TaggedProfile *& +IOP::IOR::_tao_seq_TaggedProfile_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE ::IOP::IOR::_tao_seq_TaggedProfile * +IOP::IOR::_tao_seq_TaggedProfile_var::_retn (void) +{ + ::IOP::IOR::_tao_seq_TaggedProfile *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE ::IOP::IOR::_tao_seq_TaggedProfile * +IOP::IOR::_tao_seq_TaggedProfile_var::ptr (void) const +{ + return this->ptr_; +} + +// ************************************************************* +// Inline operations for class IOP::IOR::_tao_seq_TaggedProfile_out +// ************************************************************* + +ACE_INLINE +IOP::IOR::_tao_seq_TaggedProfile_out::_tao_seq_TaggedProfile_out (_tao_seq_TaggedProfile *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::IOR::_tao_seq_TaggedProfile_out::_tao_seq_TaggedProfile_out (_tao_seq_TaggedProfile_var &p) // constructor from _var + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::IOR::_tao_seq_TaggedProfile_out::_tao_seq_TaggedProfile_out (const ::IOP::IOR::_tao_seq_TaggedProfile_out &p) // copy constructor + : ptr_ (ACE_const_cast (_tao_seq_TaggedProfile_out&, p).ptr_) +{} + +ACE_INLINE ::IOP::IOR::_tao_seq_TaggedProfile_out & +IOP::IOR::_tao_seq_TaggedProfile_out::operator= (const ::IOP::IOR::_tao_seq_TaggedProfile_out &p) +{ + this->ptr_ = ACE_const_cast (_tao_seq_TaggedProfile_out&, p).ptr_; + return *this; +} + +ACE_INLINE ::IOP::IOR::_tao_seq_TaggedProfile_out & +IOP::IOR::_tao_seq_TaggedProfile_out::operator= (_tao_seq_TaggedProfile *p) +{ + this->ptr_ = p; + return *this; +} + +ACE_INLINE +IOP::IOR::_tao_seq_TaggedProfile_out::operator ::IOP::IOR::_tao_seq_TaggedProfile *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::IOR::_tao_seq_TaggedProfile *& +IOP::IOR::_tao_seq_TaggedProfile_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::IOR::_tao_seq_TaggedProfile * +IOP::IOR::_tao_seq_TaggedProfile_out::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE IOP::TaggedProfile & +IOP::IOR::_tao_seq_TaggedProfile_out::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + + +#endif /* end #if !defined */ + // ************************************************************* // Inline operations for class IOP::TaggedComponent_var // ************************************************************* @@ -354,16 +959,15 @@ IOP::TaggedComponent_var::TaggedComponent_var (void) // default constructor {} ACE_INLINE -IOP::TaggedComponent_var::TaggedComponent_var (IOP::TaggedComponent *p) +IOP::TaggedComponent_var::TaggedComponent_var (TaggedComponent *p) : ptr_ (p) {} ACE_INLINE -IOP::TaggedComponent_var::TaggedComponent_var (const IOP::TaggedComponent_var &p) // copy constructor +IOP::TaggedComponent_var::TaggedComponent_var (const ::IOP::TaggedComponent_var &p) // copy constructor { if (p.ptr_) - ACE_NEW (this->ptr_, - IOP::TaggedComponent(*p.ptr_)); + ACE_NEW (this->ptr_, ::IOP::TaggedComponent (*p.ptr_)); else this->ptr_ = 0; } @@ -375,70 +979,75 @@ IOP::TaggedComponent_var::~TaggedComponent_var (void) // destructor } ACE_INLINE IOP::TaggedComponent_var & -IOP::TaggedComponent_var::operator= (IOP::TaggedComponent *p) +IOP::TaggedComponent_var::operator= (TaggedComponent *p) { delete this->ptr_; this->ptr_ = p; return *this; } -ACE_INLINE IOP::TaggedComponent_var & -IOP::TaggedComponent_var::operator= (const IOP::TaggedComponent_var &p) +ACE_INLINE ::IOP::TaggedComponent_var & +IOP::TaggedComponent_var::operator= (const ::IOP::TaggedComponent_var &p) { if (this != &p) { delete this->ptr_; - ACE_NEW_RETURN (this->ptr_, - IOP::TaggedComponent (*p.ptr_), - *this); + ACE_NEW_RETURN (this->ptr_, ::IOP::TaggedComponent (*p.ptr_), *this); } return *this; } -ACE_INLINE const IOP::TaggedComponent * +ACE_INLINE const ::IOP::TaggedComponent * IOP::TaggedComponent_var::operator-> (void) const { return this->ptr_; } -ACE_INLINE IOP::TaggedComponent * +ACE_INLINE ::IOP::TaggedComponent * IOP::TaggedComponent_var::operator-> (void) { return this->ptr_; } ACE_INLINE -IOP::TaggedComponent_var::operator const IOP::TaggedComponent &() const // cast +IOP::TaggedComponent_var::operator const ::IOP::TaggedComponent &() const // cast { return *this->ptr_; } ACE_INLINE -IOP::TaggedComponent_var::operator IOP::TaggedComponent &() // cast +IOP::TaggedComponent_var::operator ::IOP::TaggedComponent &() // cast { return *this->ptr_; } ACE_INLINE -IOP::TaggedComponent_var::operator IOP::TaggedComponent &() const// cast +IOP::TaggedComponent_var::operator ::IOP::TaggedComponent &() const // cast { return *this->ptr_; } -ACE_INLINE const IOP::TaggedComponent & +// variable-size types only +ACE_INLINE +IOP::TaggedComponent_var::operator ::IOP::TaggedComponent *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE const ::IOP::TaggedComponent & IOP::TaggedComponent_var::in (void) const { return *this->ptr_; } -ACE_INLINE IOP::TaggedComponent & +ACE_INLINE ::IOP::TaggedComponent & IOP::TaggedComponent_var::inout (void) { return *this->ptr_; } -// mapping for variable size -ACE_INLINE IOP::TaggedComponent *& +// mapping for variable size +ACE_INLINE ::IOP::TaggedComponent *& IOP::TaggedComponent_var::out (void) { delete this->ptr_; @@ -446,15 +1055,15 @@ IOP::TaggedComponent_var::out (void) return this->ptr_; } -ACE_INLINE IOP::TaggedComponent * +ACE_INLINE ::IOP::TaggedComponent * IOP::TaggedComponent_var::_retn (void) { - IOP::TaggedComponent *tmp = this->ptr_; + ::IOP::TaggedComponent *tmp = this->ptr_; this->ptr_ = 0; return tmp; } -ACE_INLINE IOP::TaggedComponent * +ACE_INLINE ::IOP::TaggedComponent * IOP::TaggedComponent_var::ptr (void) const { return this->ptr_; @@ -465,14 +1074,14 @@ IOP::TaggedComponent_var::ptr (void) const // ************************************************************* ACE_INLINE -IOP::TaggedComponent_out::TaggedComponent_out (IOP::TaggedComponent *&p) +IOP::TaggedComponent_out::TaggedComponent_out (::IOP::TaggedComponent *&p) : ptr_ (p) { this->ptr_ = 0; } ACE_INLINE -IOP::TaggedComponent_out::TaggedComponent_out (IOP::TaggedComponent_var &p) // constructor from _var +IOP::TaggedComponent_out::TaggedComponent_out (TaggedComponent_var &p) // constructor from _var : ptr_ (p.out ()) { delete this->ptr_; @@ -480,42 +1089,429 @@ IOP::TaggedComponent_out::TaggedComponent_out (IOP::TaggedComponent_var &p) // c } ACE_INLINE -IOP::TaggedComponent_out::TaggedComponent_out (const IOP::TaggedComponent_out &p) // copy constructor - : ptr_ (ACE_const_cast (IOP::TaggedComponent_out&,p).ptr_) +IOP::TaggedComponent_out::TaggedComponent_out (const ::IOP::TaggedComponent_out &p) // copy constructor + : ptr_ (ACE_const_cast (TaggedComponent_out&, p).ptr_) {} ACE_INLINE IOP::TaggedComponent_out & -IOP::TaggedComponent_out::operator= (const IOP::TaggedComponent_out &p) +IOP::TaggedComponent_out::operator= (const ::IOP::TaggedComponent_out &p) { - this->ptr_ = ACE_const_cast (IOP::TaggedComponent_out&,p).ptr_; + this->ptr_ = ACE_const_cast (TaggedComponent_out&, p).ptr_; return *this; } ACE_INLINE IOP::TaggedComponent_out & -IOP::TaggedComponent_out::operator= (IOP::TaggedComponent *p) +IOP::TaggedComponent_out::operator= (TaggedComponent *p) { this->ptr_ = p; return *this; } -ACE_INLINE -IOP::TaggedComponent_out::operator IOP::TaggedComponent *&() // cast +ACE_INLINE +IOP::TaggedComponent_out::operator ::IOP::TaggedComponent *&() // cast { return this->ptr_; } -ACE_INLINE IOP::TaggedComponent *& +ACE_INLINE ::IOP::TaggedComponent *& IOP::TaggedComponent_out::ptr (void) // ptr { return this->ptr_; } -ACE_INLINE IOP::TaggedComponent * +ACE_INLINE ::IOP::TaggedComponent * IOP::TaggedComponent_out::operator-> (void) { return this->ptr_; } + +#if !defined (_IOP_TAGGEDCOMPONENT__TAO_SEQ_OCTET_CI_) +#define _IOP_TAGGEDCOMPONENT__TAO_SEQ_OCTET_CI_ + +// ************************************************************* +// Inline operations for class IOP::TaggedComponent::_tao_seq_Octet_var +// ************************************************************* + +ACE_INLINE +IOP::TaggedComponent::_tao_seq_Octet_var::_tao_seq_Octet_var (void) // default constructor + : ptr_ (0) +{} + +ACE_INLINE +IOP::TaggedComponent::_tao_seq_Octet_var::_tao_seq_Octet_var (_tao_seq_Octet *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::TaggedComponent::_tao_seq_Octet_var::_tao_seq_Octet_var (const ::IOP::TaggedComponent::_tao_seq_Octet_var &p) // copy constructor +{ + if (p.ptr_) + ACE_NEW (this->ptr_, ::IOP::TaggedComponent::_tao_seq_Octet (*p.ptr_)); + else + this->ptr_ = 0; +} + +// fixed-size base types only +ACE_INLINE +IOP::TaggedComponent::_tao_seq_Octet_var::_tao_seq_Octet_var (const ::IOP::TaggedComponent::_tao_seq_Octet &p) +{ + ACE_NEW (this->ptr_, ::IOP::TaggedComponent::_tao_seq_Octet (p)); +} + +ACE_INLINE +IOP::TaggedComponent::_tao_seq_Octet_var::~_tao_seq_Octet_var (void) // destructor +{ + delete this->ptr_; +} + +ACE_INLINE IOP::TaggedComponent::_tao_seq_Octet_var & +IOP::TaggedComponent::_tao_seq_Octet_var::operator= (_tao_seq_Octet *p) +{ + delete this->ptr_; + this->ptr_ = p; + return *this; +} + +ACE_INLINE IOP::TaggedComponent::_tao_seq_Octet_var & +IOP::TaggedComponent::_tao_seq_Octet_var::operator= (const ::IOP::TaggedComponent::_tao_seq_Octet_var &p) // deep copy +{ + if (this != &p) + { + delete this->ptr_; + ACE_NEW_RETURN (this->ptr_, ::IOP::TaggedComponent::_tao_seq_Octet (*p.ptr_), *this); + } + return *this; +} + +// fixed-size types only +ACE_INLINE ::IOP::TaggedComponent::_tao_seq_Octet_var & +IOP::TaggedComponent::_tao_seq_Octet_var::operator= (const ::IOP::TaggedComponent::_tao_seq_Octet &p) +{ + if (this->ptr_ != &p) + { + delete this->ptr_; + ACE_NEW_RETURN (this->ptr_, ::IOP::TaggedComponent::_tao_seq_Octet (p), *this); + } + return *this; +} + +ACE_INLINE const ::IOP::TaggedComponent::_tao_seq_Octet * +IOP::TaggedComponent::_tao_seq_Octet_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponent::_tao_seq_Octet * +IOP::TaggedComponent::_tao_seq_Octet_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent::_tao_seq_Octet_var::operator const ::IOP::TaggedComponent::_tao_seq_Octet &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent::_tao_seq_Octet_var::operator ::IOP::TaggedComponent::_tao_seq_Octet &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent::_tao_seq_Octet_var::operator ::IOP::TaggedComponent::_tao_seq_Octet &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE CORBA::Octet & +IOP::TaggedComponent::_tao_seq_Octet_var::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +ACE_INLINE const ::IOP::TaggedComponent::_tao_seq_Octet & +IOP::TaggedComponent::_tao_seq_Octet_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponent::_tao_seq_Octet & +IOP::TaggedComponent::_tao_seq_Octet_var::inout (void) +{ + return *this->ptr_; +} + +// mapping for variable size +ACE_INLINE ::IOP::TaggedComponent::_tao_seq_Octet *& +IOP::TaggedComponent::_tao_seq_Octet_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponent::_tao_seq_Octet * +IOP::TaggedComponent::_tao_seq_Octet_var::_retn (void) +{ + ::IOP::TaggedComponent::_tao_seq_Octet *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE ::IOP::TaggedComponent::_tao_seq_Octet * +IOP::TaggedComponent::_tao_seq_Octet_var::ptr (void) const +{ + return this->ptr_; +} + +// ************************************************************* +// Inline operations for class IOP::TaggedComponent::_tao_seq_Octet_out +// ************************************************************* + +ACE_INLINE +IOP::TaggedComponent::_tao_seq_Octet_out::_tao_seq_Octet_out (_tao_seq_Octet *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedComponent::_tao_seq_Octet_out::_tao_seq_Octet_out (_tao_seq_Octet_var &p) // constructor from _var + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedComponent::_tao_seq_Octet_out::_tao_seq_Octet_out (const ::IOP::TaggedComponent::_tao_seq_Octet_out &p) // copy constructor + : ptr_ (ACE_const_cast (_tao_seq_Octet_out&, p).ptr_) +{} + +ACE_INLINE ::IOP::TaggedComponent::_tao_seq_Octet_out & +IOP::TaggedComponent::_tao_seq_Octet_out::operator= (const ::IOP::TaggedComponent::_tao_seq_Octet_out &p) +{ + this->ptr_ = ACE_const_cast (_tao_seq_Octet_out&, p).ptr_; + return *this; +} + +ACE_INLINE ::IOP::TaggedComponent::_tao_seq_Octet_out & +IOP::TaggedComponent::_tao_seq_Octet_out::operator= (_tao_seq_Octet *p) +{ + this->ptr_ = p; + return *this; +} + +ACE_INLINE +IOP::TaggedComponent::_tao_seq_Octet_out::operator ::IOP::TaggedComponent::_tao_seq_Octet *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponent::_tao_seq_Octet *& +IOP::TaggedComponent::_tao_seq_Octet_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponent::_tao_seq_Octet * +IOP::TaggedComponent::_tao_seq_Octet_out::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE CORBA::Octet & +IOP::TaggedComponent::_tao_seq_Octet_out::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + + +#endif /* end #if !defined */ + + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_MULTIPLECOMPONENTPROFILE_CI_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_MULTIPLECOMPONENTPROFILE_CI_ + + // = Static operations. + ACE_INLINE IOP::TaggedComponent * + IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (CORBA::ULong size) + // Allocate storage for the sequence. + { + IOP::TaggedComponent *retval = 0; + ACE_NEW_RETURN (retval, IOP::TaggedComponent[size], 0); + return retval; + } + + ACE_INLINE void IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::freebuf (IOP::TaggedComponent *buffer) + // Free the sequence. + { + delete [] buffer; + } + + ACE_INLINE + IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (void) // Default constructor. + { + } + + ACE_INLINE + IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (CORBA::ULong maximum) // Constructor using a maximum length value. + : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (maximum)) + { + } + + ACE_INLINE + IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (CORBA::ULong maximum, + CORBA::ULong length, + IOP::TaggedComponent *data, + CORBA::Boolean release) + : TAO_Unbounded_Base_Sequence (maximum, length, data, release) + { + } + + ACE_INLINE + IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (const _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile &rhs) + // Copy constructor. + : TAO_Unbounded_Base_Sequence (rhs) + { + if (rhs.buffer_ != 0) + { + IOP::TaggedComponent *tmp1 = _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (this->maximum_); + IOP::TaggedComponent * const tmp2 = ACE_reinterpret_cast (IOP::TaggedComponent * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + tmp1[i] = tmp2[i]; + + this->buffer_ = tmp1; + } + else + { + this->buffer_ = 0; + } + } + + ACE_INLINE IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile & + IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::operator= (const _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile &rhs) + // Assignment operator. + { + if (this == &rhs) + return *this; + + if (this->release_) + { + if (this->maximum_ < rhs.maximum_) + { + // free the old buffer + IOP::TaggedComponent *tmp = ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::freebuf (tmp); + this->buffer_ = _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (rhs.maximum_); + } + } + else + this->buffer_ = _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (rhs.maximum_); + + TAO_Unbounded_Base_Sequence::operator= (rhs); + + IOP::TaggedComponent *tmp1 = ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + IOP::TaggedComponent * const tmp2 = ACE_reinterpret_cast (IOP::TaggedComponent * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + tmp1[i] = tmp2[i]; + + return *this; + } + + // = Accessors. + ACE_INLINE IOP::TaggedComponent & + IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::operator[] (CORBA::ULong i) + // operator [] + { + ACE_ASSERT (i < this->maximum_); + IOP::TaggedComponent* tmp = ACE_reinterpret_cast(IOP::TaggedComponent*,this->buffer_); + return tmp[i]; + } + + ACE_INLINE const IOP::TaggedComponent & + IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::operator[] (CORBA::ULong i) const + // operator [] + { + ACE_ASSERT (i < this->maximum_); + IOP::TaggedComponent * const tmp = ACE_reinterpret_cast (IOP::TaggedComponent* ACE_CAST_CONST, this->buffer_); + return tmp[i]; + } + + // Implement the TAO_Base_Sequence methods (see Sequence.h) + + ACE_INLINE IOP::TaggedComponent * + IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::get_buffer (CORBA::Boolean orphan) + { + IOP::TaggedComponent *result = 0; + if (orphan == 0) + { + // We retain ownership. + if (this->buffer_ == 0) + { + result = _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (this->length_); + this->buffer_ = result; + this->release_ = 1; + } + else + { + result = ACE_reinterpret_cast (IOP::TaggedComponent*, this->buffer_); + } + } + else // if (orphan == 1) + { + if (this->release_ != 0) + { + // We set the state back to default and relinquish + // ownership. + result = ACE_reinterpret_cast(IOP::TaggedComponent*,this->buffer_); + this->maximum_ = 0; + this->length_ = 0; + this->buffer_ = 0; + this->release_ = 0; + } + } + return result; + } + + ACE_INLINE const IOP::TaggedComponent * + IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::get_buffer (void) const + { + return ACE_reinterpret_cast(const IOP::TaggedComponent * ACE_CAST_CONST, this->buffer_); + } + + ACE_INLINE void + IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::replace (CORBA::ULong max, + CORBA::ULong length, + IOP::TaggedComponent *data, + CORBA::Boolean release) + { + this->maximum_ = max; + this->length_ = length; + if (this->buffer_ && this->release_ == 1) + { + IOP::TaggedComponent *tmp = ACE_reinterpret_cast(IOP::TaggedComponent*,this->buffer_); + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::freebuf (tmp); + } + this->buffer_ = data; + this->release_ = release; + } + +#endif /* end #if !defined */ + + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_MULTIPLECOMPONENTPROFILE_CI_) +#define _IOP_MULTIPLECOMPONENTPROFILE_CI_ + // ************************************************************* // Inline operations for class IOP::MultipleComponentProfile_var // ************************************************************* @@ -526,16 +1522,15 @@ IOP::MultipleComponentProfile_var::MultipleComponentProfile_var (void) // defaul {} ACE_INLINE -IOP::MultipleComponentProfile_var::MultipleComponentProfile_var (IOP::MultipleComponentProfile *p) +IOP::MultipleComponentProfile_var::MultipleComponentProfile_var (MultipleComponentProfile *p) : ptr_ (p) {} ACE_INLINE -IOP::MultipleComponentProfile_var::MultipleComponentProfile_var (const IOP::MultipleComponentProfile_var &p) // copy constructor +IOP::MultipleComponentProfile_var::MultipleComponentProfile_var (const ::IOP::MultipleComponentProfile_var &p) // copy constructor { if (p.ptr_) - ACE_NEW (this->ptr_, - IOP::MultipleComponentProfile(*p.ptr_)); + ACE_NEW (this->ptr_, ::IOP::MultipleComponentProfile (*p.ptr_)); else this->ptr_ = 0; } @@ -547,7 +1542,7 @@ IOP::MultipleComponentProfile_var::~MultipleComponentProfile_var (void) // destr } ACE_INLINE IOP::MultipleComponentProfile_var & -IOP::MultipleComponentProfile_var::operator= (IOP::MultipleComponentProfile *p) +IOP::MultipleComponentProfile_var::operator= (MultipleComponentProfile *p) { delete this->ptr_; this->ptr_ = p; @@ -555,68 +1550,73 @@ IOP::MultipleComponentProfile_var::operator= (IOP::MultipleComponentProfile *p) } ACE_INLINE IOP::MultipleComponentProfile_var & -IOP::MultipleComponentProfile_var::operator= (const IOP::MultipleComponentProfile_var &p) // deep copy +IOP::MultipleComponentProfile_var::operator= (const ::IOP::MultipleComponentProfile_var &p) // deep copy { if (this != &p) { delete this->ptr_; - ACE_NEW_RETURN (this->ptr_, - IOP::MultipleComponentProfile (*p.ptr_), - *this); + ACE_NEW_RETURN (this->ptr_, ::IOP::MultipleComponentProfile (*p.ptr_), *this); } return *this; } -ACE_INLINE const IOP::MultipleComponentProfile * +ACE_INLINE const ::IOP::MultipleComponentProfile * IOP::MultipleComponentProfile_var::operator-> (void) const { return this->ptr_; } -ACE_INLINE IOP::MultipleComponentProfile * +ACE_INLINE ::IOP::MultipleComponentProfile * IOP::MultipleComponentProfile_var::operator-> (void) { return this->ptr_; } -ACE_INLINE -IOP::MultipleComponentProfile_var::operator const IOP::MultipleComponentProfile &() const // cast +ACE_INLINE +IOP::MultipleComponentProfile_var::operator const ::IOP::MultipleComponentProfile &() const // cast { return *this->ptr_; } -ACE_INLINE -IOP::MultipleComponentProfile_var::operator IOP::MultipleComponentProfile &() // cast +ACE_INLINE +IOP::MultipleComponentProfile_var::operator ::IOP::MultipleComponentProfile &() // cast { return *this->ptr_; } -ACE_INLINE -IOP::MultipleComponentProfile_var::operator IOP::MultipleComponentProfile &() const// cast +ACE_INLINE +IOP::MultipleComponentProfile_var::operator ::IOP::MultipleComponentProfile &() const // cast { return *this->ptr_; } +// variable-size types only +ACE_INLINE +IOP::MultipleComponentProfile_var::operator ::IOP::MultipleComponentProfile *&() // cast +{ + return this->ptr_; +} + ACE_INLINE IOP::TaggedComponent & IOP::MultipleComponentProfile_var::operator[] (CORBA::ULong index) { return this->ptr_->operator[] (index); } -ACE_INLINE const IOP::MultipleComponentProfile & +ACE_INLINE const ::IOP::MultipleComponentProfile & IOP::MultipleComponentProfile_var::in (void) const { return *this->ptr_; } -ACE_INLINE IOP::MultipleComponentProfile & +ACE_INLINE ::IOP::MultipleComponentProfile & IOP::MultipleComponentProfile_var::inout (void) { return *this->ptr_; } -// mapping for variable size -ACE_INLINE IOP::MultipleComponentProfile *& +// mapping for variable size +ACE_INLINE ::IOP::MultipleComponentProfile *& IOP::MultipleComponentProfile_var::out (void) { delete this->ptr_; @@ -624,15 +1624,15 @@ IOP::MultipleComponentProfile_var::out (void) return this->ptr_; } -ACE_INLINE IOP::MultipleComponentProfile * +ACE_INLINE ::IOP::MultipleComponentProfile * IOP::MultipleComponentProfile_var::_retn (void) { - IOP::MultipleComponentProfile *tmp = this->ptr_; + ::IOP::MultipleComponentProfile *tmp = this->ptr_; this->ptr_ = 0; return tmp; } -ACE_INLINE IOP::MultipleComponentProfile * +ACE_INLINE ::IOP::MultipleComponentProfile * IOP::MultipleComponentProfile_var::ptr (void) const { return this->ptr_; @@ -643,14 +1643,14 @@ IOP::MultipleComponentProfile_var::ptr (void) const // ************************************************************* ACE_INLINE -IOP::MultipleComponentProfile_out::MultipleComponentProfile_out (IOP::MultipleComponentProfile *&p) +IOP::MultipleComponentProfile_out::MultipleComponentProfile_out (MultipleComponentProfile *&p) : ptr_ (p) { this->ptr_ = 0; } ACE_INLINE -IOP::MultipleComponentProfile_out::MultipleComponentProfile_out (IOP::MultipleComponentProfile_var &p) // constructor from _var +IOP::MultipleComponentProfile_out::MultipleComponentProfile_out (MultipleComponentProfile_var &p) // constructor from _var : ptr_ (p.out ()) { delete this->ptr_; @@ -658,37 +1658,37 @@ IOP::MultipleComponentProfile_out::MultipleComponentProfile_out (IOP::MultipleCo } ACE_INLINE -IOP::MultipleComponentProfile_out::MultipleComponentProfile_out (const IOP::MultipleComponentProfile_out &p) // copy constructor - : ptr_ (ACE_const_cast (IOP::MultipleComponentProfile_out&,p).ptr_) +IOP::MultipleComponentProfile_out::MultipleComponentProfile_out (const ::IOP::MultipleComponentProfile_out &p) // copy constructor + : ptr_ (ACE_const_cast (MultipleComponentProfile_out&, p).ptr_) {} -ACE_INLINE IOP::MultipleComponentProfile_out & -IOP::MultipleComponentProfile_out::operator= (const IOP::MultipleComponentProfile_out &p) +ACE_INLINE ::IOP::MultipleComponentProfile_out & +IOP::MultipleComponentProfile_out::operator= (const ::IOP::MultipleComponentProfile_out &p) { - this->ptr_ = ACE_const_cast (IOP::MultipleComponentProfile_out&,p).ptr_; + this->ptr_ = ACE_const_cast (MultipleComponentProfile_out&, p).ptr_; return *this; } -ACE_INLINE IOP::MultipleComponentProfile_out & -IOP::MultipleComponentProfile_out::operator= (IOP::MultipleComponentProfile *p) +ACE_INLINE ::IOP::MultipleComponentProfile_out & +IOP::MultipleComponentProfile_out::operator= (MultipleComponentProfile *p) { this->ptr_ = p; return *this; } -ACE_INLINE -IOP::MultipleComponentProfile_out::operator IOP::MultipleComponentProfile *&() // cast +ACE_INLINE +IOP::MultipleComponentProfile_out::operator ::IOP::MultipleComponentProfile *&() // cast { return this->ptr_; } -ACE_INLINE IOP::MultipleComponentProfile *& +ACE_INLINE ::IOP::MultipleComponentProfile *& IOP::MultipleComponentProfile_out::ptr (void) // ptr { return this->ptr_; } -ACE_INLINE IOP::MultipleComponentProfile * +ACE_INLINE ::IOP::MultipleComponentProfile * IOP::MultipleComponentProfile_out::operator-> (void) { return this->ptr_; @@ -700,6 +1700,380 @@ IOP::MultipleComponentProfile_out::operator[] (CORBA::ULong index) return this->ptr_->operator[] (index); } + +#endif /* end #if !defined */ + + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTLIST_CI_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTLIST_CI_ + + // = Static operations. + ACE_INLINE IOP::TaggedComponent * + IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (CORBA::ULong size) + // Allocate storage for the sequence. + { + IOP::TaggedComponent *retval = 0; + ACE_NEW_RETURN (retval, IOP::TaggedComponent[size], 0); + return retval; + } + + ACE_INLINE void IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf (IOP::TaggedComponent *buffer) + // Free the sequence. + { + delete [] buffer; + } + + ACE_INLINE + IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList (void) // Default constructor. + { + } + + ACE_INLINE + IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList (CORBA::ULong maximum) // Constructor using a maximum length value. + : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (maximum)) + { + } + + ACE_INLINE + IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList (CORBA::ULong maximum, + CORBA::ULong length, + IOP::TaggedComponent *data, + CORBA::Boolean release) + : TAO_Unbounded_Base_Sequence (maximum, length, data, release) + { + } + + ACE_INLINE + IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList (const _TAO_Unbounded_Sequence_IOP_TaggedComponentList &rhs) + // Copy constructor. + : TAO_Unbounded_Base_Sequence (rhs) + { + if (rhs.buffer_ != 0) + { + IOP::TaggedComponent *tmp1 = _TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (this->maximum_); + IOP::TaggedComponent * const tmp2 = ACE_reinterpret_cast (IOP::TaggedComponent * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + tmp1[i] = tmp2[i]; + + this->buffer_ = tmp1; + } + else + { + this->buffer_ = 0; + } + } + + ACE_INLINE IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList & + IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::operator= (const _TAO_Unbounded_Sequence_IOP_TaggedComponentList &rhs) + // Assignment operator. + { + if (this == &rhs) + return *this; + + if (this->release_) + { + if (this->maximum_ < rhs.maximum_) + { + // free the old buffer + IOP::TaggedComponent *tmp = ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + _TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf (tmp); + this->buffer_ = _TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (rhs.maximum_); + } + } + else + this->buffer_ = _TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (rhs.maximum_); + + TAO_Unbounded_Base_Sequence::operator= (rhs); + + IOP::TaggedComponent *tmp1 = ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + IOP::TaggedComponent * const tmp2 = ACE_reinterpret_cast (IOP::TaggedComponent * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + tmp1[i] = tmp2[i]; + + return *this; + } + + // = Accessors. + ACE_INLINE IOP::TaggedComponent & + IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::operator[] (CORBA::ULong i) + // operator [] + { + ACE_ASSERT (i < this->maximum_); + IOP::TaggedComponent* tmp = ACE_reinterpret_cast(IOP::TaggedComponent*,this->buffer_); + return tmp[i]; + } + + ACE_INLINE const IOP::TaggedComponent & + IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::operator[] (CORBA::ULong i) const + // operator [] + { + ACE_ASSERT (i < this->maximum_); + IOP::TaggedComponent * const tmp = ACE_reinterpret_cast (IOP::TaggedComponent* ACE_CAST_CONST, this->buffer_); + return tmp[i]; + } + + // Implement the TAO_Base_Sequence methods (see Sequence.h) + + ACE_INLINE IOP::TaggedComponent * + IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::get_buffer (CORBA::Boolean orphan) + { + IOP::TaggedComponent *result = 0; + if (orphan == 0) + { + // We retain ownership. + if (this->buffer_ == 0) + { + result = _TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (this->length_); + this->buffer_ = result; + this->release_ = 1; + } + else + { + result = ACE_reinterpret_cast (IOP::TaggedComponent*, this->buffer_); + } + } + else // if (orphan == 1) + { + if (this->release_ != 0) + { + // We set the state back to default and relinquish + // ownership. + result = ACE_reinterpret_cast(IOP::TaggedComponent*,this->buffer_); + this->maximum_ = 0; + this->length_ = 0; + this->buffer_ = 0; + this->release_ = 0; + } + } + return result; + } + + ACE_INLINE const IOP::TaggedComponent * + IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::get_buffer (void) const + { + return ACE_reinterpret_cast(const IOP::TaggedComponent * ACE_CAST_CONST, this->buffer_); + } + + ACE_INLINE void + IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::replace (CORBA::ULong max, + CORBA::ULong length, + IOP::TaggedComponent *data, + CORBA::Boolean release) + { + this->maximum_ = max; + this->length_ = length; + if (this->buffer_ && this->release_ == 1) + { + IOP::TaggedComponent *tmp = ACE_reinterpret_cast(IOP::TaggedComponent*,this->buffer_); + _TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf (tmp); + } + this->buffer_ = data; + this->release_ = release; + } + +#endif /* end #if !defined */ + + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_TAGGEDCOMPONENTLIST_CI_) +#define _IOP_TAGGEDCOMPONENTLIST_CI_ + +// ************************************************************* +// Inline operations for class IOP::TaggedComponentList_var +// ************************************************************* + +ACE_INLINE +IOP::TaggedComponentList_var::TaggedComponentList_var (void) // default constructor + : ptr_ (0) +{} + +ACE_INLINE +IOP::TaggedComponentList_var::TaggedComponentList_var (TaggedComponentList *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::TaggedComponentList_var::TaggedComponentList_var (const ::IOP::TaggedComponentList_var &p) // copy constructor +{ + if (p.ptr_) + ACE_NEW (this->ptr_, ::IOP::TaggedComponentList (*p.ptr_)); + else + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedComponentList_var::~TaggedComponentList_var (void) // destructor +{ + delete this->ptr_; +} + +ACE_INLINE IOP::TaggedComponentList_var & +IOP::TaggedComponentList_var::operator= (TaggedComponentList *p) +{ + delete this->ptr_; + this->ptr_ = p; + return *this; +} + +ACE_INLINE IOP::TaggedComponentList_var & +IOP::TaggedComponentList_var::operator= (const ::IOP::TaggedComponentList_var &p) // deep copy +{ + if (this != &p) + { + delete this->ptr_; + ACE_NEW_RETURN (this->ptr_, ::IOP::TaggedComponentList (*p.ptr_), *this); + } + return *this; +} + +ACE_INLINE const ::IOP::TaggedComponentList * +IOP::TaggedComponentList_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponentList * +IOP::TaggedComponentList_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponentList_var::operator const ::IOP::TaggedComponentList &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponentList_var::operator ::IOP::TaggedComponentList &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponentList_var::operator ::IOP::TaggedComponentList &() const // cast +{ + return *this->ptr_; +} + +// variable-size types only +ACE_INLINE +IOP::TaggedComponentList_var::operator ::IOP::TaggedComponentList *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE IOP::TaggedComponent & +IOP::TaggedComponentList_var::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +ACE_INLINE const ::IOP::TaggedComponentList & +IOP::TaggedComponentList_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponentList & +IOP::TaggedComponentList_var::inout (void) +{ + return *this->ptr_; +} + +// mapping for variable size +ACE_INLINE ::IOP::TaggedComponentList *& +IOP::TaggedComponentList_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponentList * +IOP::TaggedComponentList_var::_retn (void) +{ + ::IOP::TaggedComponentList *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE ::IOP::TaggedComponentList * +IOP::TaggedComponentList_var::ptr (void) const +{ + return this->ptr_; +} + +// ************************************************************* +// Inline operations for class IOP::TaggedComponentList_out +// ************************************************************* + +ACE_INLINE +IOP::TaggedComponentList_out::TaggedComponentList_out (TaggedComponentList *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedComponentList_out::TaggedComponentList_out (TaggedComponentList_var &p) // constructor from _var + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedComponentList_out::TaggedComponentList_out (const ::IOP::TaggedComponentList_out &p) // copy constructor + : ptr_ (ACE_const_cast (TaggedComponentList_out&, p).ptr_) +{} + +ACE_INLINE ::IOP::TaggedComponentList_out & +IOP::TaggedComponentList_out::operator= (const ::IOP::TaggedComponentList_out &p) +{ + this->ptr_ = ACE_const_cast (TaggedComponentList_out&, p).ptr_; + return *this; +} + +ACE_INLINE ::IOP::TaggedComponentList_out & +IOP::TaggedComponentList_out::operator= (TaggedComponentList *p) +{ + this->ptr_ = p; + return *this; +} + +ACE_INLINE +IOP::TaggedComponentList_out::operator ::IOP::TaggedComponentList *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponentList *& +IOP::TaggedComponentList_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponentList * +IOP::TaggedComponentList_out::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE IOP::TaggedComponent & +IOP::TaggedComponentList_out::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + + +#endif /* end #if !defined */ + // ************************************************************* // Inline operations for class IOP::ServiceContext_var // ************************************************************* @@ -710,16 +2084,15 @@ IOP::ServiceContext_var::ServiceContext_var (void) // default constructor {} ACE_INLINE -IOP::ServiceContext_var::ServiceContext_var (IOP::ServiceContext *p) +IOP::ServiceContext_var::ServiceContext_var (ServiceContext *p) : ptr_ (p) {} ACE_INLINE -IOP::ServiceContext_var::ServiceContext_var (const IOP::ServiceContext_var &p) // copy constructor +IOP::ServiceContext_var::ServiceContext_var (const ::IOP::ServiceContext_var &p) // copy constructor { if (p.ptr_) - ACE_NEW (this->ptr_, - IOP::ServiceContext(*p.ptr_)); + ACE_NEW (this->ptr_, ::IOP::ServiceContext (*p.ptr_)); else this->ptr_ = 0; } @@ -731,70 +2104,75 @@ IOP::ServiceContext_var::~ServiceContext_var (void) // destructor } ACE_INLINE IOP::ServiceContext_var & -IOP::ServiceContext_var::operator= (IOP::ServiceContext *p) +IOP::ServiceContext_var::operator= (ServiceContext *p) { delete this->ptr_; this->ptr_ = p; return *this; } -ACE_INLINE IOP::ServiceContext_var & -IOP::ServiceContext_var::operator= (const IOP::ServiceContext_var &p) +ACE_INLINE ::IOP::ServiceContext_var & +IOP::ServiceContext_var::operator= (const ::IOP::ServiceContext_var &p) { if (this != &p) { delete this->ptr_; - ACE_NEW_RETURN (this->ptr_, - IOP::ServiceContext (*p.ptr_), - *this); + ACE_NEW_RETURN (this->ptr_, ::IOP::ServiceContext (*p.ptr_), *this); } return *this; } -ACE_INLINE const IOP::ServiceContext * +ACE_INLINE const ::IOP::ServiceContext * IOP::ServiceContext_var::operator-> (void) const { return this->ptr_; } -ACE_INLINE IOP::ServiceContext * +ACE_INLINE ::IOP::ServiceContext * IOP::ServiceContext_var::operator-> (void) { return this->ptr_; } ACE_INLINE -IOP::ServiceContext_var::operator const IOP::ServiceContext &() const // cast +IOP::ServiceContext_var::operator const ::IOP::ServiceContext &() const // cast { return *this->ptr_; } ACE_INLINE -IOP::ServiceContext_var::operator IOP::ServiceContext &() // cast +IOP::ServiceContext_var::operator ::IOP::ServiceContext &() // cast { return *this->ptr_; } ACE_INLINE -IOP::ServiceContext_var::operator IOP::ServiceContext &() const// cast +IOP::ServiceContext_var::operator ::IOP::ServiceContext &() const // cast { return *this->ptr_; } -ACE_INLINE const IOP::ServiceContext & +// variable-size types only +ACE_INLINE +IOP::ServiceContext_var::operator ::IOP::ServiceContext *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE const ::IOP::ServiceContext & IOP::ServiceContext_var::in (void) const { return *this->ptr_; } -ACE_INLINE IOP::ServiceContext & +ACE_INLINE ::IOP::ServiceContext & IOP::ServiceContext_var::inout (void) { return *this->ptr_; } -// mapping for variable size -ACE_INLINE IOP::ServiceContext *& +// mapping for variable size +ACE_INLINE ::IOP::ServiceContext *& IOP::ServiceContext_var::out (void) { delete this->ptr_; @@ -802,15 +2180,15 @@ IOP::ServiceContext_var::out (void) return this->ptr_; } -ACE_INLINE IOP::ServiceContext * +ACE_INLINE ::IOP::ServiceContext * IOP::ServiceContext_var::_retn (void) { - IOP::ServiceContext *tmp = this->ptr_; + ::IOP::ServiceContext *tmp = this->ptr_; this->ptr_ = 0; return tmp; } -ACE_INLINE IOP::ServiceContext * +ACE_INLINE ::IOP::ServiceContext * IOP::ServiceContext_var::ptr (void) const { return this->ptr_; @@ -821,14 +2199,14 @@ IOP::ServiceContext_var::ptr (void) const // ************************************************************* ACE_INLINE -IOP::ServiceContext_out::ServiceContext_out (IOP::ServiceContext *&p) +IOP::ServiceContext_out::ServiceContext_out (::IOP::ServiceContext *&p) : ptr_ (p) { this->ptr_ = 0; } ACE_INLINE -IOP::ServiceContext_out::ServiceContext_out (IOP::ServiceContext_var &p) // constructor from _var +IOP::ServiceContext_out::ServiceContext_out (ServiceContext_var &p) // constructor from _var : ptr_ (p.out ()) { delete this->ptr_; @@ -836,42 +2214,429 @@ IOP::ServiceContext_out::ServiceContext_out (IOP::ServiceContext_var &p) // cons } ACE_INLINE -IOP::ServiceContext_out::ServiceContext_out (const IOP::ServiceContext_out &p) // copy constructor - : ptr_ (ACE_const_cast (IOP::ServiceContext_out&,p).ptr_) +IOP::ServiceContext_out::ServiceContext_out (const ::IOP::ServiceContext_out &p) // copy constructor + : ptr_ (ACE_const_cast (ServiceContext_out&, p).ptr_) {} ACE_INLINE IOP::ServiceContext_out & -IOP::ServiceContext_out::operator= (const IOP::ServiceContext_out &p) +IOP::ServiceContext_out::operator= (const ::IOP::ServiceContext_out &p) { - this->ptr_ = ACE_const_cast (IOP::ServiceContext_out&,p).ptr_; + this->ptr_ = ACE_const_cast (ServiceContext_out&, p).ptr_; return *this; } ACE_INLINE IOP::ServiceContext_out & -IOP::ServiceContext_out::operator= (IOP::ServiceContext *p) +IOP::ServiceContext_out::operator= (ServiceContext *p) { this->ptr_ = p; return *this; } -ACE_INLINE -IOP::ServiceContext_out::operator IOP::ServiceContext *&() // cast +ACE_INLINE +IOP::ServiceContext_out::operator ::IOP::ServiceContext *&() // cast { return this->ptr_; } -ACE_INLINE IOP::ServiceContext *& +ACE_INLINE ::IOP::ServiceContext *& IOP::ServiceContext_out::ptr (void) // ptr { return this->ptr_; } -ACE_INLINE IOP::ServiceContext * +ACE_INLINE ::IOP::ServiceContext * IOP::ServiceContext_out::operator-> (void) { return this->ptr_; } + +#if !defined (_IOP_SERVICECONTEXT__TAO_SEQ_OCTET_CI_) +#define _IOP_SERVICECONTEXT__TAO_SEQ_OCTET_CI_ + +// ************************************************************* +// Inline operations for class IOP::ServiceContext::_tao_seq_Octet_var +// ************************************************************* + +ACE_INLINE +IOP::ServiceContext::_tao_seq_Octet_var::_tao_seq_Octet_var (void) // default constructor + : ptr_ (0) +{} + +ACE_INLINE +IOP::ServiceContext::_tao_seq_Octet_var::_tao_seq_Octet_var (_tao_seq_Octet *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::ServiceContext::_tao_seq_Octet_var::_tao_seq_Octet_var (const ::IOP::ServiceContext::_tao_seq_Octet_var &p) // copy constructor +{ + if (p.ptr_) + ACE_NEW (this->ptr_, ::IOP::ServiceContext::_tao_seq_Octet (*p.ptr_)); + else + this->ptr_ = 0; +} + +// fixed-size base types only +ACE_INLINE +IOP::ServiceContext::_tao_seq_Octet_var::_tao_seq_Octet_var (const ::IOP::ServiceContext::_tao_seq_Octet &p) +{ + ACE_NEW (this->ptr_, ::IOP::ServiceContext::_tao_seq_Octet (p)); +} + +ACE_INLINE +IOP::ServiceContext::_tao_seq_Octet_var::~_tao_seq_Octet_var (void) // destructor +{ + delete this->ptr_; +} + +ACE_INLINE IOP::ServiceContext::_tao_seq_Octet_var & +IOP::ServiceContext::_tao_seq_Octet_var::operator= (_tao_seq_Octet *p) +{ + delete this->ptr_; + this->ptr_ = p; + return *this; +} + +ACE_INLINE IOP::ServiceContext::_tao_seq_Octet_var & +IOP::ServiceContext::_tao_seq_Octet_var::operator= (const ::IOP::ServiceContext::_tao_seq_Octet_var &p) // deep copy +{ + if (this != &p) + { + delete this->ptr_; + ACE_NEW_RETURN (this->ptr_, ::IOP::ServiceContext::_tao_seq_Octet (*p.ptr_), *this); + } + return *this; +} + +// fixed-size types only +ACE_INLINE ::IOP::ServiceContext::_tao_seq_Octet_var & +IOP::ServiceContext::_tao_seq_Octet_var::operator= (const ::IOP::ServiceContext::_tao_seq_Octet &p) +{ + if (this->ptr_ != &p) + { + delete this->ptr_; + ACE_NEW_RETURN (this->ptr_, ::IOP::ServiceContext::_tao_seq_Octet (p), *this); + } + return *this; +} + +ACE_INLINE const ::IOP::ServiceContext::_tao_seq_Octet * +IOP::ServiceContext::_tao_seq_Octet_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::ServiceContext::_tao_seq_Octet * +IOP::ServiceContext::_tao_seq_Octet_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::ServiceContext::_tao_seq_Octet_var::operator const ::IOP::ServiceContext::_tao_seq_Octet &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::ServiceContext::_tao_seq_Octet_var::operator ::IOP::ServiceContext::_tao_seq_Octet &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::ServiceContext::_tao_seq_Octet_var::operator ::IOP::ServiceContext::_tao_seq_Octet &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE CORBA::Octet & +IOP::ServiceContext::_tao_seq_Octet_var::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +ACE_INLINE const ::IOP::ServiceContext::_tao_seq_Octet & +IOP::ServiceContext::_tao_seq_Octet_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE ::IOP::ServiceContext::_tao_seq_Octet & +IOP::ServiceContext::_tao_seq_Octet_var::inout (void) +{ + return *this->ptr_; +} + +// mapping for variable size +ACE_INLINE ::IOP::ServiceContext::_tao_seq_Octet *& +IOP::ServiceContext::_tao_seq_Octet_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE ::IOP::ServiceContext::_tao_seq_Octet * +IOP::ServiceContext::_tao_seq_Octet_var::_retn (void) +{ + ::IOP::ServiceContext::_tao_seq_Octet *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE ::IOP::ServiceContext::_tao_seq_Octet * +IOP::ServiceContext::_tao_seq_Octet_var::ptr (void) const +{ + return this->ptr_; +} + +// ************************************************************* +// Inline operations for class IOP::ServiceContext::_tao_seq_Octet_out +// ************************************************************* + +ACE_INLINE +IOP::ServiceContext::_tao_seq_Octet_out::_tao_seq_Octet_out (_tao_seq_Octet *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::ServiceContext::_tao_seq_Octet_out::_tao_seq_Octet_out (_tao_seq_Octet_var &p) // constructor from _var + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::ServiceContext::_tao_seq_Octet_out::_tao_seq_Octet_out (const ::IOP::ServiceContext::_tao_seq_Octet_out &p) // copy constructor + : ptr_ (ACE_const_cast (_tao_seq_Octet_out&, p).ptr_) +{} + +ACE_INLINE ::IOP::ServiceContext::_tao_seq_Octet_out & +IOP::ServiceContext::_tao_seq_Octet_out::operator= (const ::IOP::ServiceContext::_tao_seq_Octet_out &p) +{ + this->ptr_ = ACE_const_cast (_tao_seq_Octet_out&, p).ptr_; + return *this; +} + +ACE_INLINE ::IOP::ServiceContext::_tao_seq_Octet_out & +IOP::ServiceContext::_tao_seq_Octet_out::operator= (_tao_seq_Octet *p) +{ + this->ptr_ = p; + return *this; +} + +ACE_INLINE +IOP::ServiceContext::_tao_seq_Octet_out::operator ::IOP::ServiceContext::_tao_seq_Octet *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::ServiceContext::_tao_seq_Octet *& +IOP::ServiceContext::_tao_seq_Octet_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::ServiceContext::_tao_seq_Octet * +IOP::ServiceContext::_tao_seq_Octet_out::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE CORBA::Octet & +IOP::ServiceContext::_tao_seq_Octet_out::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + + +#endif /* end #if !defined */ + + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_SERVICECONTEXTLIST_CI_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_SERVICECONTEXTLIST_CI_ + + // = Static operations. + ACE_INLINE IOP::ServiceContext * + IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (CORBA::ULong size) + // Allocate storage for the sequence. + { + IOP::ServiceContext *retval = 0; + ACE_NEW_RETURN (retval, IOP::ServiceContext[size], 0); + return retval; + } + + ACE_INLINE void IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::freebuf (IOP::ServiceContext *buffer) + // Free the sequence. + { + delete [] buffer; + } + + ACE_INLINE + IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_TAO_Unbounded_Sequence_IOP_ServiceContextList (void) // Default constructor. + { + } + + ACE_INLINE + IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_TAO_Unbounded_Sequence_IOP_ServiceContextList (CORBA::ULong maximum) // Constructor using a maximum length value. + : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (maximum)) + { + } + + ACE_INLINE + IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_TAO_Unbounded_Sequence_IOP_ServiceContextList (CORBA::ULong maximum, + CORBA::ULong length, + IOP::ServiceContext *data, + CORBA::Boolean release) + : TAO_Unbounded_Base_Sequence (maximum, length, data, release) + { + } + + ACE_INLINE + IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_TAO_Unbounded_Sequence_IOP_ServiceContextList (const _TAO_Unbounded_Sequence_IOP_ServiceContextList &rhs) + // Copy constructor. + : TAO_Unbounded_Base_Sequence (rhs) + { + if (rhs.buffer_ != 0) + { + IOP::ServiceContext *tmp1 = _TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (this->maximum_); + IOP::ServiceContext * const tmp2 = ACE_reinterpret_cast (IOP::ServiceContext * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + tmp1[i] = tmp2[i]; + + this->buffer_ = tmp1; + } + else + { + this->buffer_ = 0; + } + } + + ACE_INLINE IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList & + IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::operator= (const _TAO_Unbounded_Sequence_IOP_ServiceContextList &rhs) + // Assignment operator. + { + if (this == &rhs) + return *this; + + if (this->release_) + { + if (this->maximum_ < rhs.maximum_) + { + // free the old buffer + IOP::ServiceContext *tmp = ACE_reinterpret_cast (IOP::ServiceContext *, this->buffer_); + _TAO_Unbounded_Sequence_IOP_ServiceContextList::freebuf (tmp); + this->buffer_ = _TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (rhs.maximum_); + } + } + else + this->buffer_ = _TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (rhs.maximum_); + + TAO_Unbounded_Base_Sequence::operator= (rhs); + + IOP::ServiceContext *tmp1 = ACE_reinterpret_cast (IOP::ServiceContext *, this->buffer_); + IOP::ServiceContext * const tmp2 = ACE_reinterpret_cast (IOP::ServiceContext * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + tmp1[i] = tmp2[i]; + + return *this; + } + + // = Accessors. + ACE_INLINE IOP::ServiceContext & + IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::operator[] (CORBA::ULong i) + // operator [] + { + ACE_ASSERT (i < this->maximum_); + IOP::ServiceContext* tmp = ACE_reinterpret_cast(IOP::ServiceContext*,this->buffer_); + return tmp[i]; + } + + ACE_INLINE const IOP::ServiceContext & + IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::operator[] (CORBA::ULong i) const + // operator [] + { + ACE_ASSERT (i < this->maximum_); + IOP::ServiceContext * const tmp = ACE_reinterpret_cast (IOP::ServiceContext* ACE_CAST_CONST, this->buffer_); + return tmp[i]; + } + + // Implement the TAO_Base_Sequence methods (see Sequence.h) + + ACE_INLINE IOP::ServiceContext * + IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::get_buffer (CORBA::Boolean orphan) + { + IOP::ServiceContext *result = 0; + if (orphan == 0) + { + // We retain ownership. + if (this->buffer_ == 0) + { + result = _TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (this->length_); + this->buffer_ = result; + this->release_ = 1; + } + else + { + result = ACE_reinterpret_cast (IOP::ServiceContext*, this->buffer_); + } + } + else // if (orphan == 1) + { + if (this->release_ != 0) + { + // We set the state back to default and relinquish + // ownership. + result = ACE_reinterpret_cast(IOP::ServiceContext*,this->buffer_); + this->maximum_ = 0; + this->length_ = 0; + this->buffer_ = 0; + this->release_ = 0; + } + } + return result; + } + + ACE_INLINE const IOP::ServiceContext * + IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::get_buffer (void) const + { + return ACE_reinterpret_cast(const IOP::ServiceContext * ACE_CAST_CONST, this->buffer_); + } + + ACE_INLINE void + IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::replace (CORBA::ULong max, + CORBA::ULong length, + IOP::ServiceContext *data, + CORBA::Boolean release) + { + this->maximum_ = max; + this->length_ = length; + if (this->buffer_ && this->release_ == 1) + { + IOP::ServiceContext *tmp = ACE_reinterpret_cast(IOP::ServiceContext*,this->buffer_); + _TAO_Unbounded_Sequence_IOP_ServiceContextList::freebuf (tmp); + } + this->buffer_ = data; + this->release_ = release; + } + +#endif /* end #if !defined */ + + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_SERVICECONTEXTLIST_CI_) +#define _IOP_SERVICECONTEXTLIST_CI_ + // ************************************************************* // Inline operations for class IOP::ServiceContextList_var // ************************************************************* @@ -882,16 +2647,15 @@ IOP::ServiceContextList_var::ServiceContextList_var (void) // default constructo {} ACE_INLINE -IOP::ServiceContextList_var::ServiceContextList_var (IOP::ServiceContextList *p) +IOP::ServiceContextList_var::ServiceContextList_var (ServiceContextList *p) : ptr_ (p) {} ACE_INLINE -IOP::ServiceContextList_var::ServiceContextList_var (const IOP::ServiceContextList_var &p) // copy constructor +IOP::ServiceContextList_var::ServiceContextList_var (const ::IOP::ServiceContextList_var &p) // copy constructor { if (p.ptr_) - ACE_NEW (this->ptr_, - IOP::ServiceContextList(*p.ptr_)); + ACE_NEW (this->ptr_, ::IOP::ServiceContextList (*p.ptr_)); else this->ptr_ = 0; } @@ -903,7 +2667,7 @@ IOP::ServiceContextList_var::~ServiceContextList_var (void) // destructor } ACE_INLINE IOP::ServiceContextList_var & -IOP::ServiceContextList_var::operator= (IOP::ServiceContextList *p) +IOP::ServiceContextList_var::operator= (ServiceContextList *p) { delete this->ptr_; this->ptr_ = p; @@ -911,68 +2675,73 @@ IOP::ServiceContextList_var::operator= (IOP::ServiceContextList *p) } ACE_INLINE IOP::ServiceContextList_var & -IOP::ServiceContextList_var::operator= (const IOP::ServiceContextList_var &p) // deep copy +IOP::ServiceContextList_var::operator= (const ::IOP::ServiceContextList_var &p) // deep copy { if (this != &p) { delete this->ptr_; - ACE_NEW_RETURN (this->ptr_, - IOP::ServiceContextList (*p.ptr_), - *this); + ACE_NEW_RETURN (this->ptr_, ::IOP::ServiceContextList (*p.ptr_), *this); } return *this; } -ACE_INLINE const IOP::ServiceContextList * +ACE_INLINE const ::IOP::ServiceContextList * IOP::ServiceContextList_var::operator-> (void) const { return this->ptr_; } -ACE_INLINE IOP::ServiceContextList * +ACE_INLINE ::IOP::ServiceContextList * IOP::ServiceContextList_var::operator-> (void) { return this->ptr_; } -ACE_INLINE -IOP::ServiceContextList_var::operator const IOP::ServiceContextList &() const // cast +ACE_INLINE +IOP::ServiceContextList_var::operator const ::IOP::ServiceContextList &() const // cast { return *this->ptr_; } -ACE_INLINE -IOP::ServiceContextList_var::operator IOP::ServiceContextList &() // cast +ACE_INLINE +IOP::ServiceContextList_var::operator ::IOP::ServiceContextList &() // cast { return *this->ptr_; } -ACE_INLINE -IOP::ServiceContextList_var::operator IOP::ServiceContextList &() const// cast +ACE_INLINE +IOP::ServiceContextList_var::operator ::IOP::ServiceContextList &() const // cast { return *this->ptr_; } +// variable-size types only +ACE_INLINE +IOP::ServiceContextList_var::operator ::IOP::ServiceContextList *&() // cast +{ + return this->ptr_; +} + ACE_INLINE IOP::ServiceContext & IOP::ServiceContextList_var::operator[] (CORBA::ULong index) { return this->ptr_->operator[] (index); } -ACE_INLINE const IOP::ServiceContextList & +ACE_INLINE const ::IOP::ServiceContextList & IOP::ServiceContextList_var::in (void) const { return *this->ptr_; } -ACE_INLINE IOP::ServiceContextList & +ACE_INLINE ::IOP::ServiceContextList & IOP::ServiceContextList_var::inout (void) { return *this->ptr_; } -// mapping for variable size -ACE_INLINE IOP::ServiceContextList *& +// mapping for variable size +ACE_INLINE ::IOP::ServiceContextList *& IOP::ServiceContextList_var::out (void) { delete this->ptr_; @@ -980,15 +2749,15 @@ IOP::ServiceContextList_var::out (void) return this->ptr_; } -ACE_INLINE IOP::ServiceContextList * +ACE_INLINE ::IOP::ServiceContextList * IOP::ServiceContextList_var::_retn (void) { - IOP::ServiceContextList *tmp = this->ptr_; + ::IOP::ServiceContextList *tmp = this->ptr_; this->ptr_ = 0; return tmp; } -ACE_INLINE IOP::ServiceContextList * +ACE_INLINE ::IOP::ServiceContextList * IOP::ServiceContextList_var::ptr (void) const { return this->ptr_; @@ -999,14 +2768,14 @@ IOP::ServiceContextList_var::ptr (void) const // ************************************************************* ACE_INLINE -IOP::ServiceContextList_out::ServiceContextList_out (IOP::ServiceContextList *&p) +IOP::ServiceContextList_out::ServiceContextList_out (ServiceContextList *&p) : ptr_ (p) { this->ptr_ = 0; } ACE_INLINE -IOP::ServiceContextList_out::ServiceContextList_out (IOP::ServiceContextList_var &p) // constructor from _var +IOP::ServiceContextList_out::ServiceContextList_out (ServiceContextList_var &p) // constructor from _var : ptr_ (p.out ()) { delete this->ptr_; @@ -1014,37 +2783,37 @@ IOP::ServiceContextList_out::ServiceContextList_out (IOP::ServiceContextList_var } ACE_INLINE -IOP::ServiceContextList_out::ServiceContextList_out (const IOP::ServiceContextList_out &p) // copy constructor - : ptr_ (ACE_const_cast (IOP::ServiceContextList_out&,p).ptr_) +IOP::ServiceContextList_out::ServiceContextList_out (const ::IOP::ServiceContextList_out &p) // copy constructor + : ptr_ (ACE_const_cast (ServiceContextList_out&, p).ptr_) {} -ACE_INLINE IOP::ServiceContextList_out & -IOP::ServiceContextList_out::operator= (const IOP::ServiceContextList_out &p) +ACE_INLINE ::IOP::ServiceContextList_out & +IOP::ServiceContextList_out::operator= (const ::IOP::ServiceContextList_out &p) { - this->ptr_ = ACE_const_cast (IOP::ServiceContextList_out&,p).ptr_; + this->ptr_ = ACE_const_cast (ServiceContextList_out&, p).ptr_; return *this; } -ACE_INLINE IOP::ServiceContextList_out & -IOP::ServiceContextList_out::operator= (IOP::ServiceContextList *p) +ACE_INLINE ::IOP::ServiceContextList_out & +IOP::ServiceContextList_out::operator= (ServiceContextList *p) { this->ptr_ = p; return *this; } -ACE_INLINE -IOP::ServiceContextList_out::operator IOP::ServiceContextList *&() // cast +ACE_INLINE +IOP::ServiceContextList_out::operator ::IOP::ServiceContextList *&() // cast { return this->ptr_; } -ACE_INLINE IOP::ServiceContextList *& +ACE_INLINE ::IOP::ServiceContextList *& IOP::ServiceContextList_out::ptr (void) // ptr { return this->ptr_; } -ACE_INLINE IOP::ServiceContextList * +ACE_INLINE ::IOP::ServiceContextList * IOP::ServiceContextList_out::operator-> (void) { return this->ptr_; @@ -1056,6 +2825,13 @@ IOP::ServiceContextList_out::operator[] (CORBA::ULong index) return this->ptr_->operator[] (index); } + +#endif /* end #if !defined */ + + +#if !defined _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_I_ +#define _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_I_ + CORBA::Boolean TAO_Export operator<< ( TAO_OutputCDR &, const IOP::TaggedProfile::_tao_seq_Octet & @@ -1065,6 +2841,8 @@ CORBA::Boolean TAO_Export operator>> ( IOP::TaggedProfile::_tao_seq_Octet & ); +#endif /* _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_I_ */ + ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const IOP::TaggedProfile &_tao_aggregate) { if ( @@ -1074,7 +2852,7 @@ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const IOP::TaggedProf return 1; else return 0; - + } ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, IOP::TaggedProfile &_tao_aggregate) @@ -1086,9 +2864,13 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, IOP::TaggedProfile &_t return 1; else return 0; - + } + +#if !defined _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_I_ +#define _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_I_ + CORBA::Boolean TAO_Export operator<< ( TAO_OutputCDR &, const IOP::IOR::_tao_seq_TaggedProfile & @@ -1098,6 +2880,8 @@ CORBA::Boolean TAO_Export operator>> ( IOP::IOR::_tao_seq_TaggedProfile & ); +#endif /* _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_I_ */ + ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const IOP::IOR &_tao_aggregate) { if ( @@ -1107,7 +2891,7 @@ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const IOP::IOR &_tao_ return 1; else return 0; - + } ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, IOP::IOR &_tao_aggregate) @@ -1119,9 +2903,13 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, IOP::IOR &_tao_aggrega return 1; else return 0; - + } + +#if !defined _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_I_ +#define _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_I_ + CORBA::Boolean TAO_Export operator<< ( TAO_OutputCDR &, const IOP::TaggedComponent::_tao_seq_Octet & @@ -1131,6 +2919,8 @@ CORBA::Boolean TAO_Export operator>> ( IOP::TaggedComponent::_tao_seq_Octet & ); +#endif /* _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_I_ */ + ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const IOP::TaggedComponent &_tao_aggregate) { if ( @@ -1140,7 +2930,7 @@ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const IOP::TaggedComp return 1; else return 0; - + } ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, IOP::TaggedComponent &_tao_aggregate) @@ -1152,9 +2942,13 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, IOP::TaggedComponent & return 1; else return 0; - + } + +#if !defined _TAO_CDR_OP_IOP_MultipleComponentProfile_I_ +#define _TAO_CDR_OP_IOP_MultipleComponentProfile_I_ + CORBA::Boolean TAO_Export operator<< ( TAO_OutputCDR &, const IOP::MultipleComponentProfile & @@ -1164,6 +2958,27 @@ CORBA::Boolean TAO_Export operator>> ( IOP::MultipleComponentProfile & ); +#endif /* _TAO_CDR_OP_IOP_MultipleComponentProfile_I_ */ + + +#if !defined _TAO_CDR_OP_IOP_TaggedComponentList_I_ +#define _TAO_CDR_OP_IOP_TaggedComponentList_I_ + +CORBA::Boolean TAO_Export operator<< ( + TAO_OutputCDR &, + const IOP::TaggedComponentList & + ); +CORBA::Boolean TAO_Export operator>> ( + TAO_InputCDR &, + IOP::TaggedComponentList & + ); + +#endif /* _TAO_CDR_OP_IOP_TaggedComponentList_I_ */ + + +#if !defined _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_I_ +#define _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_I_ + CORBA::Boolean TAO_Export operator<< ( TAO_OutputCDR &, const IOP::ServiceContext::_tao_seq_Octet & @@ -1173,6 +2988,8 @@ CORBA::Boolean TAO_Export operator>> ( IOP::ServiceContext::_tao_seq_Octet & ); +#endif /* _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_I_ */ + ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const IOP::ServiceContext &_tao_aggregate) { if ( @@ -1182,7 +2999,7 @@ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const IOP::ServiceCon return 1; else return 0; - + } ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, IOP::ServiceContext &_tao_aggregate) @@ -1194,9 +3011,13 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, IOP::ServiceContext &_ return 1; else return 0; - + } + +#if !defined _TAO_CDR_OP_IOP_ServiceContextList_I_ +#define _TAO_CDR_OP_IOP_ServiceContextList_I_ + CORBA::Boolean TAO_Export operator<< ( TAO_OutputCDR &, const IOP::ServiceContextList & @@ -1205,3 +3026,6 @@ CORBA::Boolean TAO_Export operator>> ( TAO_InputCDR &, IOP::ServiceContextList & ); + +#endif /* _TAO_CDR_OP_IOP_ServiceContextList_I_ */ + |