diff options
Diffstat (limited to 'TAO/tao/DynAnyC.i')
-rw-r--r-- | TAO/tao/DynAnyC.i | 1880 |
1 files changed, 0 insertions, 1880 deletions
diff --git a/TAO/tao/DynAnyC.i b/TAO/tao/DynAnyC.i deleted file mode 100644 index cd67300fb97..00000000000 --- a/TAO/tao/DynAnyC.i +++ /dev/null @@ -1,1880 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ -// ====================================================================== -// -// = LIBRARY -// TAO -// -// = FILENAME -// DynAnyC.i -// -// = AUTHOR -// -// ****** Code generated by the The ACE ORB (TAO) IDL Compiler ******* -// TAO ORB and the TAO IDL Compiler have been developed by Washington -// University Computer Science's Distributed Object Computing Group. -// -// Information on TAO is available at -// http://www.cs.wustl.edu/~schmidt/TAO.html -// -// -// Modified by Jeff Parsons <parsons@cs.wustl.edu> -// -// ====================================================================== - -ACE_INLINE -CORBA_DynAny::CORBA_DynAny (void) // default constructor -{} - -ACE_INLINE -CORBA_DynAny::CORBA_DynAny (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor - : CORBA_Object (objref, _tao_servant, _tao_collocated) -{} - -ACE_INLINE -CORBA_DynAny::~CORBA_DynAny (void) // destructor -{} - - -#if !defined (_CORBA_DYNANY___VAR_CI_) -#define _CORBA_DYNANY___VAR_CI_ - -// ************************************************************* -// Inline operations for class CORBA_DynAny_var -// ************************************************************* - -ACE_INLINE -CORBA_DynAny_var::CORBA_DynAny_var (void) // default constructor - : ptr_ (CORBA_DynAny::_nil ()) -{} - -ACE_INLINE -CORBA_DynAny_var::CORBA_DynAny_var (CORBA_DynAny_ptr p) - : ptr_ (p) -{} - -ACE_INLINE CORBA_DynAny_ptr -CORBA_DynAny_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_DynAny_var::CORBA_DynAny_var (const CORBA_DynAny_var &p) // copy constructor - : TAO_Base_var (), - ptr_ (CORBA_DynAny::_duplicate (p.ptr ())) -{} - -ACE_INLINE -CORBA_DynAny_var::~CORBA_DynAny_var (void) // destructor -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE CORBA_DynAny_var & -CORBA_DynAny_var::operator= (CORBA_DynAny_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE CORBA_DynAny_var & -CORBA_DynAny_var::operator= (const CORBA_DynAny_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynAny::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -CORBA_DynAny_var::operator const CORBA_DynAny_ptr &() const // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_DynAny_var::operator CORBA_DynAny_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynAny_ptr -CORBA_DynAny_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynAny_ptr -CORBA_DynAny_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynAny_ptr & -CORBA_DynAny_var::inout (void) -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynAny_ptr & -CORBA_DynAny_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynAny::_nil (); - return this->ptr_; -} - -ACE_INLINE CORBA_DynAny_ptr -CORBA_DynAny_var::_retn (void) -{ - // yield ownership of managed obj reference - CORBA_DynAny_ptr val = this->ptr_; - this->ptr_ = CORBA_DynAny::_nil (); - return val; -} - - -#endif /* end #if !defined */ - - -#if !defined (_CORBA_DYNANY___OUT_CI_) -#define _CORBA_DYNANY___OUT_CI_ - -// ************************************************************* -// Inline operations for class CORBA_DynAny_out -// ************************************************************* - -ACE_INLINE -CORBA_DynAny_out::CORBA_DynAny_out (CORBA_DynAny_ptr &p) - : ptr_ (p) -{ - this->ptr_ = CORBA_DynAny::_nil (); -} - -ACE_INLINE -CORBA_DynAny_out::CORBA_DynAny_out (CORBA_DynAny_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynAny::_nil (); -} - -ACE_INLINE -CORBA_DynAny_out::CORBA_DynAny_out (const CORBA_DynAny_out &p) // copy constructor - : ptr_ (ACE_const_cast (CORBA_DynAny_out&,p).ptr_) -{} - -ACE_INLINE CORBA_DynAny_out & -CORBA_DynAny_out::operator= (const CORBA_DynAny_out &p) -{ - this->ptr_ = ACE_const_cast (CORBA_DynAny_out&,p).ptr_; - return *this; -} - -ACE_INLINE CORBA_DynAny_out & -CORBA_DynAny_out::operator= (const CORBA_DynAny_var &p) -{ - this->ptr_ = CORBA_DynAny::_duplicate (p.ptr ()); - return *this; -} - -ACE_INLINE CORBA_DynAny_out & -CORBA_DynAny_out::operator= (CORBA_DynAny_ptr p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA_DynAny_out::operator CORBA_DynAny_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynAny_ptr & -CORBA_DynAny_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynAny_ptr -CORBA_DynAny_out::operator-> (void) -{ - return this->ptr_; -} - - -#endif /* end #if !defined */ - -// ************************************************************* -// Inline operations for exception CORBA_DynAny::Invalid -// ************************************************************* - -// ************************************************************* -// Inline operations for exception CORBA_DynAny::InvalidValue -// ************************************************************* - -// ************************************************************* -// Inline operations for exception CORBA_DynAny::TypeMismatch -// ************************************************************* - -// ************************************************************* -// Inline operations for exception CORBA_DynAny::InvalidSeq -// ************************************************************* - -ACE_INLINE -CORBA_DynEnum::CORBA_DynEnum (void) // default constructor -{} - -ACE_INLINE -CORBA_DynEnum::CORBA_DynEnum (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor - : CORBA_Object (objref, _tao_servant, _tao_collocated) -{} - -ACE_INLINE -CORBA_DynEnum::~CORBA_DynEnum (void) // destructor -{} - - -#if !defined (_CORBA_DYNENUM___VAR_CI_) -#define _CORBA_DYNENUM___VAR_CI_ - -// ************************************************************* -// Inline operations for class CORBA_DynEnum_var -// ************************************************************* - -ACE_INLINE -CORBA_DynEnum_var::CORBA_DynEnum_var (void) // default constructor - : ptr_ (CORBA_DynEnum::_nil ()) -{} - -ACE_INLINE -CORBA_DynEnum_var::CORBA_DynEnum_var (CORBA_DynEnum_ptr p) - : ptr_ (p) -{} - -ACE_INLINE CORBA_DynEnum_ptr -CORBA_DynEnum_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_DynEnum_var::CORBA_DynEnum_var (const CORBA_DynEnum_var &p) // copy constructor - : TAO_Base_var (), - ptr_ (CORBA_DynEnum::_duplicate (p.ptr ())) -{} - -ACE_INLINE -CORBA_DynEnum_var::~CORBA_DynEnum_var (void) // destructor -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE CORBA_DynEnum_var & -CORBA_DynEnum_var::operator= (CORBA_DynEnum_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE CORBA_DynEnum_var & -CORBA_DynEnum_var::operator= (const CORBA_DynEnum_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynEnum::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -CORBA_DynEnum_var::operator const CORBA_DynEnum_ptr &() const // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_DynEnum_var::operator CORBA_DynEnum_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynEnum_ptr -CORBA_DynEnum_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynEnum_ptr -CORBA_DynEnum_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynEnum_ptr & -CORBA_DynEnum_var::inout (void) -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynEnum_ptr & -CORBA_DynEnum_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynEnum::_nil (); - return this->ptr_; -} - -ACE_INLINE CORBA_DynEnum_ptr -CORBA_DynEnum_var::_retn (void) -{ - // yield ownership of managed obj reference - CORBA_DynEnum_ptr val = this->ptr_; - this->ptr_ = CORBA_DynEnum::_nil (); - return val; -} - - -#endif /* end #if !defined */ - - -#if !defined (_CORBA_DYNENUM___OUT_CI_) -#define _CORBA_DYNENUM___OUT_CI_ - -// ************************************************************* -// Inline operations for class CORBA_DynEnum_out -// ************************************************************* - -ACE_INLINE -CORBA_DynEnum_out::CORBA_DynEnum_out (CORBA_DynEnum_ptr &p) - : ptr_ (p) -{ - this->ptr_ = CORBA_DynEnum::_nil (); -} - -ACE_INLINE -CORBA_DynEnum_out::CORBA_DynEnum_out (CORBA_DynEnum_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynEnum::_nil (); -} - -ACE_INLINE -CORBA_DynEnum_out::CORBA_DynEnum_out (const CORBA_DynEnum_out &p) // copy constructor - : ptr_ (ACE_const_cast (CORBA_DynEnum_out&,p).ptr_) -{} - -ACE_INLINE CORBA_DynEnum_out & -CORBA_DynEnum_out::operator= (const CORBA_DynEnum_out &p) -{ - this->ptr_ = ACE_const_cast (CORBA_DynEnum_out&,p).ptr_; - return *this; -} - -ACE_INLINE CORBA_DynEnum_out & -CORBA_DynEnum_out::operator= (const CORBA_DynEnum_var &p) -{ - this->ptr_ = CORBA_DynEnum::_duplicate (p.ptr ()); - return *this; -} - -ACE_INLINE CORBA_DynEnum_out & -CORBA_DynEnum_out::operator= (CORBA_DynEnum_ptr p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA_DynEnum_out::operator CORBA_DynEnum_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynEnum_ptr & -CORBA_DynEnum_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynEnum_ptr -CORBA_DynEnum_out::operator-> (void) -{ - return this->ptr_; -} - - -#endif /* end #if !defined */ - -// ************************************************************* -// Inline operations for class CORBA_NameValuePair_var -// ************************************************************* - -ACE_INLINE -CORBA_NameValuePair_var::CORBA_NameValuePair_var (void) // default constructor - : ptr_ (0) -{} - -ACE_INLINE -CORBA_NameValuePair_var::CORBA_NameValuePair_var (CORBA_NameValuePair *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA_NameValuePair_var::CORBA_NameValuePair_var (const CORBA_NameValuePair_var &p) // copy constructor -{ - if (p.ptr_) - ACE_NEW (this->ptr_, CORBA_NameValuePair(*p.ptr_)); - else - this->ptr_ = 0; -} - -ACE_INLINE -CORBA_NameValuePair_var::~CORBA_NameValuePair_var (void) // destructor -{ - delete this->ptr_; -} - -ACE_INLINE CORBA_NameValuePair_var & -CORBA_NameValuePair_var::operator= (CORBA_NameValuePair *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE CORBA_NameValuePair_var & -CORBA_NameValuePair_var::operator= (const CORBA_NameValuePair_var &p) -{ - if (this != &p) - { - delete this->ptr_; - ACE_NEW_RETURN (this->ptr_, - CORBA_NameValuePair (*p.ptr_), - *this); - } - return *this; -} - -ACE_INLINE const CORBA_NameValuePair * -CORBA_NameValuePair_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_NameValuePair * -CORBA_NameValuePair_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_NameValuePair_var::operator const CORBA_NameValuePair &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA_NameValuePair_var::operator CORBA_NameValuePair &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA_NameValuePair_var::operator CORBA_NameValuePair &() const// cast -{ - return *this->ptr_; -} - -ACE_INLINE const CORBA_NameValuePair & -CORBA_NameValuePair_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE CORBA_NameValuePair & -CORBA_NameValuePair_var::inout (void) -{ - return *this->ptr_; -} - -// mapping for variable size -ACE_INLINE CORBA_NameValuePair *& -CORBA_NameValuePair_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE CORBA_NameValuePair * -CORBA_NameValuePair_var::_retn (void) -{ - CORBA_NameValuePair *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE CORBA_NameValuePair * -CORBA_NameValuePair_var::ptr (void) const -{ - return this->ptr_; -} - -// ************************************************************* -// Inline operations for class CORBA_NameValuePair_out -// ************************************************************* - -ACE_INLINE -CORBA_NameValuePair_out::CORBA_NameValuePair_out (CORBA_NameValuePair *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA_NameValuePair_out::CORBA_NameValuePair_out (CORBA_NameValuePair_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA_NameValuePair_out::CORBA_NameValuePair_out (const CORBA_NameValuePair_out &p) // copy constructor - : ptr_ (ACE_const_cast (CORBA_NameValuePair_out&,p).ptr_) -{} - -ACE_INLINE CORBA_NameValuePair_out & -CORBA_NameValuePair_out::operator= (const CORBA_NameValuePair_out &p) -{ - this->ptr_ = ACE_const_cast (CORBA_NameValuePair_out&,p).ptr_; - return *this; -} - -ACE_INLINE CORBA_NameValuePair_out & -CORBA_NameValuePair_out::operator= (CORBA_NameValuePair *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA_NameValuePair_out::operator CORBA_NameValuePair *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_NameValuePair *& -CORBA_NameValuePair_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE CORBA_NameValuePair * -CORBA_NameValuePair_out::operator-> (void) -{ - return this->ptr_; -} - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - - // = Static operations. - ACE_INLINE CORBA::NameValuePair * - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::allocbuf (CORBA::ULong size) - // Allocate storage for the sequence. - { - CORBA_NameValuePair *retval = 0; - ACE_NEW_RETURN (retval, CORBA_NameValuePair[size], 0); - return retval; - } - - ACE_INLINE void _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::freebuf (CORBA_NameValuePair *buffer) - // Free the sequence. - { - delete [] buffer; - } - - ACE_INLINE - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::_TAO_Unbounded_Sequence_CORBA_NameValuePairSeq (void) // Default constructor. - { - } - - ACE_INLINE - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::_TAO_Unbounded_Sequence_CORBA_NameValuePairSeq (CORBA::ULong maximum) // Constructor using a maximum length value. - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::allocbuf (maximum)) - { - } - - ACE_INLINE - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::_TAO_Unbounded_Sequence_CORBA_NameValuePairSeq (CORBA::ULong maximum, - CORBA::ULong length, - CORBA_NameValuePair *data, - CORBA::Boolean release) - : TAO_Unbounded_Base_Sequence (maximum, length, data, release) - { - } - - ACE_INLINE - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::_TAO_Unbounded_Sequence_CORBA_NameValuePairSeq (const _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq &rhs) - // Copy constructor. - : TAO_Unbounded_Base_Sequence (rhs) - { - if (rhs.buffer_ != 0) - { - CORBA_NameValuePair *tmp1 = _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::allocbuf (this->maximum_); - CORBA_NameValuePair * const tmp2 = ACE_reinterpret_cast (CORBA_NameValuePair * 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 _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq & - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::operator= (const _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq &rhs) - // Assignment operator. - { - if (this == &rhs) - return *this; - - if (this->release_) - { - if (this->maximum_ < rhs.maximum_) - { - // free the old buffer - CORBA_NameValuePair *tmp = ACE_reinterpret_cast (CORBA_NameValuePair *, this->buffer_); - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::freebuf (tmp); - this->buffer_ = _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::allocbuf (rhs.maximum_); - } - } - else - this->buffer_ = _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::allocbuf (rhs.maximum_); - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA_NameValuePair *tmp1 = ACE_reinterpret_cast (CORBA_NameValuePair *, this->buffer_); - CORBA_NameValuePair * const tmp2 = ACE_reinterpret_cast (CORBA_NameValuePair * ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - tmp1[i] = tmp2[i]; - - return *this; - } - - // = Accessors. - ACE_INLINE CORBA_NameValuePair & - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::operator[] (CORBA::ULong i) - // operator [] - { - ACE_ASSERT (i < this->maximum_); - CORBA_NameValuePair* tmp = ACE_reinterpret_cast(CORBA_NameValuePair*,this->buffer_); - return tmp[i]; - } - - ACE_INLINE const CORBA_NameValuePair & - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::operator[] (CORBA::ULong i) const - // operator [] - { - ACE_ASSERT (i < this->maximum_); - CORBA_NameValuePair * const tmp = ACE_reinterpret_cast (CORBA_NameValuePair* ACE_CAST_CONST, this->buffer_); - return tmp[i]; - } - - // Implement the TAO_Base_Sequence methods (see Sequence.h) - - ACE_INLINE CORBA_NameValuePair * - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::get_buffer (CORBA::Boolean orphan) - { - CORBA_NameValuePair *result = 0; - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::allocbuf (this->length_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = ACE_reinterpret_cast (CORBA_NameValuePair*, this->buffer_); - } - } - else // if (orphan == 1) - { - if (this->release_ != 0) - { - // We set the state back to default and relinquish - // ownership. - result = ACE_reinterpret_cast(CORBA_NameValuePair*,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - return result; - } - - ACE_INLINE const CORBA_NameValuePair * - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::get_buffer (void) const - { - return ACE_reinterpret_cast(const CORBA_NameValuePair * ACE_CAST_CONST, this->buffer_); - } - - ACE_INLINE void - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::replace (CORBA::ULong max, - CORBA::ULong length, - CORBA_NameValuePair *data, - CORBA::Boolean release) - { - this->maximum_ = max; - this->length_ = length; - if (this->buffer_ && this->release_ == 1) - { - CORBA_NameValuePair *tmp = ACE_reinterpret_cast(CORBA_NameValuePair*,this->buffer_); - _TAO_Unbounded_Sequence_CORBA_NameValuePairSeq::freebuf (tmp); - } - this->buffer_ = data; - this->release_ = release; - } - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_NAMEVALUEPAIRSEQ_CI_) -#define _CORBA_NAMEVALUEPAIRSEQ_CI_ - -// ************************************************************* -// Inline operations for class CORBA_NameValuePairSeq_var -// ************************************************************* - -ACE_INLINE -CORBA_NameValuePairSeq_var::CORBA_NameValuePairSeq_var (void) // default constructor - : ptr_ (0) -{} - -ACE_INLINE -CORBA_NameValuePairSeq_var::CORBA_NameValuePairSeq_var (CORBA_NameValuePairSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA_NameValuePairSeq_var::CORBA_NameValuePairSeq_var (const CORBA_NameValuePairSeq_var &p) // copy constructor -{ - if (p.ptr_) - ACE_NEW (this->ptr_, CORBA_NameValuePairSeq(*p.ptr_)); - else - this->ptr_ = 0; -} - -ACE_INLINE -CORBA_NameValuePairSeq_var::~CORBA_NameValuePairSeq_var (void) // destructor -{ - delete this->ptr_; -} - -ACE_INLINE CORBA_NameValuePairSeq_var & -CORBA_NameValuePairSeq_var::operator= (CORBA_NameValuePairSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE CORBA_NameValuePairSeq_var & -CORBA_NameValuePairSeq_var::operator= (const CORBA_NameValuePairSeq_var &p) // deep copy -{ - if (this != &p) - { - delete this->ptr_; - ACE_NEW_RETURN (this->ptr_, - CORBA_NameValuePairSeq (*p.ptr_), - *this); - } - return *this; -} - -ACE_INLINE const CORBA_NameValuePairSeq * -CORBA_NameValuePairSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_NameValuePairSeq * -CORBA_NameValuePairSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_NameValuePairSeq_var::operator const CORBA_NameValuePairSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA_NameValuePairSeq_var::operator CORBA_NameValuePairSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA_NameValuePairSeq_var::operator CORBA_NameValuePairSeq &() const// cast -{ - return *this->ptr_; -} - -ACE_INLINE CORBA_NameValuePair & -CORBA_NameValuePairSeq_var::operator[] (CORBA::ULong slot) -{ - return this->ptr_->operator[] (slot); -} - -ACE_INLINE const CORBA_NameValuePairSeq & -CORBA_NameValuePairSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE CORBA_NameValuePairSeq & -CORBA_NameValuePairSeq_var::inout (void) -{ - return *this->ptr_; -} - -// mapping for variable size -ACE_INLINE CORBA_NameValuePairSeq *& -CORBA_NameValuePairSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE CORBA_NameValuePairSeq * -CORBA_NameValuePairSeq_var::_retn (void) -{ - CORBA_NameValuePairSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE CORBA_NameValuePairSeq * -CORBA_NameValuePairSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// ************************************************************* -// Inline operations for class CORBA_NameValuePairSeq_out -// ************************************************************* - -ACE_INLINE -CORBA_NameValuePairSeq_out::CORBA_NameValuePairSeq_out (CORBA_NameValuePairSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA_NameValuePairSeq_out::CORBA_NameValuePairSeq_out (CORBA_NameValuePairSeq_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA_NameValuePairSeq_out::CORBA_NameValuePairSeq_out (const CORBA_NameValuePairSeq_out &p) // copy constructor - : ptr_ (ACE_const_cast (CORBA_NameValuePairSeq_out&,p).ptr_) -{} - -ACE_INLINE CORBA_NameValuePairSeq_out & -CORBA_NameValuePairSeq_out::operator= (const CORBA_NameValuePairSeq_out &p) -{ - this->ptr_ = ACE_const_cast (CORBA_NameValuePairSeq_out&,p).ptr_; - return *this; -} - -ACE_INLINE CORBA_NameValuePairSeq_out & -CORBA_NameValuePairSeq_out::operator= (CORBA_NameValuePairSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA_NameValuePairSeq_out::operator CORBA_NameValuePairSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_NameValuePairSeq *& -CORBA_NameValuePairSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE CORBA_NameValuePairSeq * -CORBA_NameValuePairSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE CORBA_NameValuePair & -CORBA_NameValuePairSeq_out::operator[] (CORBA::ULong slot) -{ - return this->ptr_->operator[] (slot); -} - -#endif /* end #if !defined */ - -ACE_INLINE -CORBA_DynStruct::CORBA_DynStruct (void) // default constructor -{} - -ACE_INLINE -CORBA_DynStruct::CORBA_DynStruct (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor - : CORBA_Object (objref, _tao_servant, _tao_collocated) -{} - -ACE_INLINE -CORBA_DynStruct::~CORBA_DynStruct (void) // destructor -{} - - -#if !defined (_CORBA_DYNSTRUCT___VAR_CI_) -#define _CORBA_DYNSTRUCT___VAR_CI_ - -// ************************************************************* -// Inline operations for class CORBA_DynStruct_var -// ************************************************************* - -ACE_INLINE -CORBA_DynStruct_var::CORBA_DynStruct_var (void) // default constructor - : ptr_ (CORBA_DynStruct::_nil ()) -{} - -ACE_INLINE -CORBA_DynStruct_var::CORBA_DynStruct_var (CORBA_DynStruct_ptr p) - : ptr_ (p) -{} - -ACE_INLINE CORBA_DynStruct_ptr -CORBA_DynStruct_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_DynStruct_var::CORBA_DynStruct_var (const CORBA_DynStruct_var &p) // copy constructor - : TAO_Base_var (), - ptr_ (CORBA_DynStruct::_duplicate (p.ptr ())) -{} - -ACE_INLINE -CORBA_DynStruct_var::~CORBA_DynStruct_var (void) // destructor -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE CORBA_DynStruct_var & -CORBA_DynStruct_var::operator= (CORBA_DynStruct_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE CORBA_DynStruct_var & -CORBA_DynStruct_var::operator= (const CORBA_DynStruct_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynStruct::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -CORBA_DynStruct_var::operator const CORBA_DynStruct_ptr &() const // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_DynStruct_var::operator CORBA_DynStruct_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynStruct_ptr -CORBA_DynStruct_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynStruct_ptr -CORBA_DynStruct_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynStruct_ptr & -CORBA_DynStruct_var::inout (void) -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynStruct_ptr & -CORBA_DynStruct_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynStruct::_nil (); - return this->ptr_; -} - -ACE_INLINE CORBA_DynStruct_ptr -CORBA_DynStruct_var::_retn (void) -{ - // yield ownership of managed obj reference - CORBA_DynStruct_ptr val = this->ptr_; - this->ptr_ = CORBA_DynStruct::_nil (); - return val; -} - - -#endif /* end #if !defined */ - - -#if !defined (_CORBA_DYNSTRUCT___OUT_CI_) -#define _CORBA_DYNSTRUCT___OUT_CI_ - -// ************************************************************* -// Inline operations for class CORBA_DynStruct_out -// ************************************************************* - -ACE_INLINE -CORBA_DynStruct_out::CORBA_DynStruct_out (CORBA_DynStruct_ptr &p) - : ptr_ (p) -{ - this->ptr_ = CORBA_DynStruct::_nil (); -} - -ACE_INLINE -CORBA_DynStruct_out::CORBA_DynStruct_out (CORBA_DynStruct_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynStruct::_nil (); -} - -ACE_INLINE -CORBA_DynStruct_out::CORBA_DynStruct_out (const CORBA_DynStruct_out &p) // copy constructor - : ptr_ (ACE_const_cast (CORBA_DynStruct_out&,p).ptr_) -{} - -ACE_INLINE CORBA_DynStruct_out & -CORBA_DynStruct_out::operator= (const CORBA_DynStruct_out &p) -{ - this->ptr_ = ACE_const_cast (CORBA_DynStruct_out&,p).ptr_; - return *this; -} - -ACE_INLINE CORBA_DynStruct_out & -CORBA_DynStruct_out::operator= (const CORBA_DynStruct_var &p) -{ - this->ptr_ = CORBA_DynStruct::_duplicate (p.ptr ()); - return *this; -} - -ACE_INLINE CORBA_DynStruct_out & -CORBA_DynStruct_out::operator= (CORBA_DynStruct_ptr p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA_DynStruct_out::operator CORBA_DynStruct_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynStruct_ptr & -CORBA_DynStruct_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynStruct_ptr -CORBA_DynStruct_out::operator-> (void) -{ - return this->ptr_; -} - - -#endif /* end #if !defined */ - -ACE_INLINE -CORBA_DynUnion::CORBA_DynUnion (void) // default constructor -{} - -ACE_INLINE -CORBA_DynUnion::CORBA_DynUnion (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor - : CORBA_Object (objref, _tao_servant, _tao_collocated) -{} - -ACE_INLINE -CORBA_DynUnion::~CORBA_DynUnion (void) // destructor -{} - - -#if !defined (_CORBA_DYNUNION___VAR_CI_) -#define _CORBA_DYNUNION___VAR_CI_ - -// ************************************************************* -// Inline operations for class CORBA_DynUnion_var -// ************************************************************* - -ACE_INLINE -CORBA_DynUnion_var::CORBA_DynUnion_var (void) // default constructor - : ptr_ (CORBA_DynUnion::_nil ()) -{} - -ACE_INLINE -CORBA_DynUnion_var::CORBA_DynUnion_var (CORBA_DynUnion_ptr p) - : ptr_ (p) -{} - -ACE_INLINE CORBA_DynUnion_ptr -CORBA_DynUnion_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_DynUnion_var::CORBA_DynUnion_var (const CORBA_DynUnion_var &p) // copy constructor - : TAO_Base_var (), - ptr_ (CORBA_DynUnion::_duplicate (p.ptr ())) -{} - -ACE_INLINE -CORBA_DynUnion_var::~CORBA_DynUnion_var (void) // destructor -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE CORBA_DynUnion_var & -CORBA_DynUnion_var::operator= (CORBA_DynUnion_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE CORBA_DynUnion_var & -CORBA_DynUnion_var::operator= (const CORBA_DynUnion_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynUnion::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -CORBA_DynUnion_var::operator const CORBA_DynUnion_ptr &() const // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_DynUnion_var::operator CORBA_DynUnion_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynUnion_ptr -CORBA_DynUnion_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynUnion_ptr -CORBA_DynUnion_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynUnion_ptr & -CORBA_DynUnion_var::inout (void) -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynUnion_ptr & -CORBA_DynUnion_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynUnion::_nil (); - return this->ptr_; -} - -ACE_INLINE CORBA_DynUnion_ptr -CORBA_DynUnion_var::_retn (void) -{ - // yield ownership of managed obj reference - CORBA_DynUnion_ptr val = this->ptr_; - this->ptr_ = CORBA_DynUnion::_nil (); - return val; -} - - -#endif /* end #if !defined */ - - -#if !defined (_CORBA_DYNUNION___OUT_CI_) -#define _CORBA_DYNUNION___OUT_CI_ - -// ************************************************************* -// Inline operations for class CORBA_DynUnion_out -// ************************************************************* - -ACE_INLINE -CORBA_DynUnion_out::CORBA_DynUnion_out (CORBA_DynUnion_ptr &p) - : ptr_ (p) -{ - this->ptr_ = CORBA_DynUnion::_nil (); -} - -ACE_INLINE -CORBA_DynUnion_out::CORBA_DynUnion_out (CORBA_DynUnion_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynUnion::_nil (); -} - -ACE_INLINE -CORBA_DynUnion_out::CORBA_DynUnion_out (const CORBA_DynUnion_out &p) // copy constructor - : ptr_ (ACE_const_cast (CORBA_DynUnion_out&,p).ptr_) -{} - -ACE_INLINE CORBA_DynUnion_out & -CORBA_DynUnion_out::operator= (const CORBA_DynUnion_out &p) -{ - this->ptr_ = ACE_const_cast (CORBA_DynUnion_out&,p).ptr_; - return *this; -} - -ACE_INLINE CORBA_DynUnion_out & -CORBA_DynUnion_out::operator= (const CORBA_DynUnion_var &p) -{ - this->ptr_ = CORBA_DynUnion::_duplicate (p.ptr ()); - return *this; -} - -ACE_INLINE CORBA_DynUnion_out & -CORBA_DynUnion_out::operator= (CORBA_DynUnion_ptr p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA_DynUnion_out::operator CORBA_DynUnion_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynUnion_ptr & -CORBA_DynUnion_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynUnion_ptr -CORBA_DynUnion_out::operator-> (void) -{ - return this->ptr_; -} - - -#endif /* end #if !defined */ - -// ************************************************************* -// Inline operations for class CORBA_AnySeq_var -// ************************************************************* - -ACE_INLINE -CORBA_AnySeq_var::CORBA_AnySeq_var (void) // default constructor - : ptr_ (0) -{} - -ACE_INLINE -CORBA_AnySeq_var::CORBA_AnySeq_var (CORBA_AnySeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA_AnySeq_var::CORBA_AnySeq_var (const CORBA_AnySeq_var &p) // copy constructor -{ - if (p.ptr_) - ACE_NEW (this->ptr_, CORBA_AnySeq(*p.ptr_)); - else - this->ptr_ = 0; -} - -ACE_INLINE -CORBA_AnySeq_var::~CORBA_AnySeq_var (void) // destructor -{ - delete this->ptr_; -} - -ACE_INLINE CORBA_AnySeq_var & -CORBA_AnySeq_var::operator= (CORBA_AnySeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE CORBA_AnySeq_var & -CORBA_AnySeq_var::operator= (const CORBA_AnySeq_var &p) // deep copy -{ - if (this != &p) - { - delete this->ptr_; - ACE_NEW_RETURN (this->ptr_, - CORBA_AnySeq (*p.ptr_), - *this); - } - return *this; -} - -ACE_INLINE const CORBA_AnySeq * -CORBA_AnySeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_AnySeq * -CORBA_AnySeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_AnySeq_var::operator const CORBA_AnySeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA_AnySeq_var::operator CORBA_AnySeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA_AnySeq_var::operator CORBA_AnySeq &() const// cast -{ - return *this->ptr_; -} - -ACE_INLINE CORBA::Any & -CORBA_AnySeq_var::operator[] (CORBA::ULong slot) -{ - return this->ptr_->operator[] (slot); -} - -ACE_INLINE const CORBA_AnySeq & -CORBA_AnySeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE CORBA_AnySeq & -CORBA_AnySeq_var::inout (void) -{ - return *this->ptr_; -} - -// mapping for variable size -ACE_INLINE CORBA_AnySeq *& -CORBA_AnySeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE CORBA_AnySeq * -CORBA_AnySeq_var::_retn (void) -{ - CORBA_AnySeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE CORBA_AnySeq * -CORBA_AnySeq_var::ptr (void) const -{ - return this->ptr_; -} - -// ************************************************************* -// Inline operations for class CORBA_AnySeq_out -// ************************************************************* - -ACE_INLINE -CORBA_AnySeq_out::CORBA_AnySeq_out (CORBA_AnySeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA_AnySeq_out::CORBA_AnySeq_out (CORBA_AnySeq_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA_AnySeq_out::CORBA_AnySeq_out (const CORBA_AnySeq_out &p) // copy constructor - : ptr_ (ACE_const_cast (CORBA_AnySeq_out&,p).ptr_) -{} - -ACE_INLINE CORBA_AnySeq_out & -CORBA_AnySeq_out::operator= (const CORBA_AnySeq_out &p) -{ - this->ptr_ = ACE_const_cast (CORBA_AnySeq_out&,p).ptr_; - return *this; -} - -ACE_INLINE CORBA_AnySeq_out & -CORBA_AnySeq_out::operator= (CORBA_AnySeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA_AnySeq_out::operator CORBA_AnySeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_AnySeq *& -CORBA_AnySeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE CORBA_AnySeq * -CORBA_AnySeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE CORBA::Any & -CORBA_AnySeq_out::operator[] (CORBA::ULong slot) -{ - return this->ptr_->operator[] (slot); -} - -ACE_INLINE -CORBA_DynSequence::CORBA_DynSequence (void) // default constructor -{} - -ACE_INLINE -CORBA_DynSequence::CORBA_DynSequence (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor - : CORBA_Object (objref, _tao_servant, _tao_collocated) -{} - -ACE_INLINE -CORBA_DynSequence::~CORBA_DynSequence (void) // destructor -{} - - -#if !defined (_CORBA_DYNSEQUENCE___VAR_CI_) -#define _CORBA_DYNSEQUENCE___VAR_CI_ - -// ************************************************************* -// Inline operations for class CORBA_DynSequence_var -// ************************************************************* - -ACE_INLINE -CORBA_DynSequence_var::CORBA_DynSequence_var (void) // default constructor - : ptr_ (CORBA_DynSequence::_nil ()) -{} - -ACE_INLINE -CORBA_DynSequence_var::CORBA_DynSequence_var (CORBA_DynSequence_ptr p) - : ptr_ (p) -{} - -ACE_INLINE CORBA_DynSequence_ptr -CORBA_DynSequence_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_DynSequence_var::CORBA_DynSequence_var (const CORBA_DynSequence_var &p) // copy constructor - : TAO_Base_var (), - ptr_ (CORBA_DynSequence::_duplicate (p.ptr ())) -{} - -ACE_INLINE -CORBA_DynSequence_var::~CORBA_DynSequence_var (void) // destructor -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE CORBA_DynSequence_var & -CORBA_DynSequence_var::operator= (CORBA_DynSequence_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE CORBA_DynSequence_var & -CORBA_DynSequence_var::operator= (const CORBA_DynSequence_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynSequence::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -CORBA_DynSequence_var::operator const CORBA_DynSequence_ptr &() const // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_DynSequence_var::operator CORBA_DynSequence_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynSequence_ptr -CORBA_DynSequence_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynSequence_ptr -CORBA_DynSequence_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynSequence_ptr & -CORBA_DynSequence_var::inout (void) -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynSequence_ptr & -CORBA_DynSequence_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynSequence::_nil (); - return this->ptr_; -} - -ACE_INLINE CORBA_DynSequence_ptr -CORBA_DynSequence_var::_retn (void) -{ - // yield ownership of managed obj reference - CORBA_DynSequence_ptr val = this->ptr_; - this->ptr_ = CORBA_DynSequence::_nil (); - return val; -} - - -#endif /* end #if !defined */ - - -#if !defined (_CORBA_DYNSEQUENCE___OUT_CI_) -#define _CORBA_DYNSEQUENCE___OUT_CI_ - -// ************************************************************* -// Inline operations for class CORBA_DynSequence_out -// ************************************************************* - -ACE_INLINE -CORBA_DynSequence_out::CORBA_DynSequence_out (CORBA_DynSequence_ptr &p) - : ptr_ (p) -{ - this->ptr_ = CORBA_DynSequence::_nil (); -} - -ACE_INLINE -CORBA_DynSequence_out::CORBA_DynSequence_out (CORBA_DynSequence_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynSequence::_nil (); -} - -ACE_INLINE -CORBA_DynSequence_out::CORBA_DynSequence_out (const CORBA_DynSequence_out &p) // copy constructor - : ptr_ (ACE_const_cast (CORBA_DynSequence_out&,p).ptr_) -{} - -ACE_INLINE CORBA_DynSequence_out & -CORBA_DynSequence_out::operator= (const CORBA_DynSequence_out &p) -{ - this->ptr_ = ACE_const_cast (CORBA_DynSequence_out&,p).ptr_; - return *this; -} - -ACE_INLINE CORBA_DynSequence_out & -CORBA_DynSequence_out::operator= (const CORBA_DynSequence_var &p) -{ - this->ptr_ = CORBA_DynSequence::_duplicate (p.ptr ()); - return *this; -} - -ACE_INLINE CORBA_DynSequence_out & -CORBA_DynSequence_out::operator= (CORBA_DynSequence_ptr p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA_DynSequence_out::operator CORBA_DynSequence_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynSequence_ptr & -CORBA_DynSequence_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynSequence_ptr -CORBA_DynSequence_out::operator-> (void) -{ - return this->ptr_; -} - - -#endif /* end #if !defined */ - -ACE_INLINE -CORBA_DynArray::CORBA_DynArray (void) // default constructor -{} - -ACE_INLINE -CORBA_DynArray::CORBA_DynArray (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor - : CORBA_Object (objref, _tao_servant, _tao_collocated) -{} - -ACE_INLINE -CORBA_DynArray::~CORBA_DynArray (void) // destructor -{} - - -#if !defined (_CORBA_DYNARRAY___VAR_CI_) -#define _CORBA_DYNARRAY___VAR_CI_ - -// ************************************************************* -// Inline operations for class CORBA_DynArray_var -// ************************************************************* - -ACE_INLINE -CORBA_DynArray_var::CORBA_DynArray_var (void) // default constructor - : ptr_ (CORBA_DynArray::_nil ()) -{} - -ACE_INLINE -CORBA_DynArray_var::CORBA_DynArray_var (CORBA_DynArray_ptr p) - : ptr_ (p) -{} - -ACE_INLINE CORBA_DynArray_ptr -CORBA_DynArray_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_DynArray_var::CORBA_DynArray_var (const CORBA_DynArray_var &p) // copy constructor - : TAO_Base_var (), - ptr_ (CORBA_DynArray::_duplicate (p.ptr ())) -{} - -ACE_INLINE -CORBA_DynArray_var::~CORBA_DynArray_var (void) // destructor -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE CORBA_DynArray_var & -CORBA_DynArray_var::operator= (CORBA_DynArray_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE CORBA_DynArray_var & -CORBA_DynArray_var::operator= (const CORBA_DynArray_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynArray::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -CORBA_DynArray_var::operator const CORBA_DynArray_ptr &() const // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_DynArray_var::operator CORBA_DynArray_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynArray_ptr -CORBA_DynArray_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynArray_ptr -CORBA_DynArray_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynArray_ptr & -CORBA_DynArray_var::inout (void) -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynArray_ptr & -CORBA_DynArray_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynArray::_nil (); - return this->ptr_; -} - -ACE_INLINE CORBA_DynArray_ptr -CORBA_DynArray_var::_retn (void) -{ - // yield ownership of managed obj reference - CORBA_DynArray_ptr val = this->ptr_; - this->ptr_ = CORBA_DynArray::_nil (); - return val; -} - - -#endif /* end #if !defined */ - - -#if !defined (_CORBA_DYNARRAY___OUT_CI_) -#define _CORBA_DYNARRAY___OUT_CI_ - -// ************************************************************* -// Inline operations for class CORBA_DynArray_out -// ************************************************************* - -ACE_INLINE -CORBA_DynArray_out::CORBA_DynArray_out (CORBA_DynArray_ptr &p) - : ptr_ (p) -{ - this->ptr_ = CORBA_DynArray::_nil (); -} - -ACE_INLINE -CORBA_DynArray_out::CORBA_DynArray_out (CORBA_DynArray_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA_DynArray::_nil (); -} - -ACE_INLINE -CORBA_DynArray_out::CORBA_DynArray_out (const CORBA_DynArray_out &p) // copy constructor - : ptr_ (ACE_const_cast (CORBA_DynArray_out&,p).ptr_) -{} - -ACE_INLINE CORBA_DynArray_out & -CORBA_DynArray_out::operator= (const CORBA_DynArray_out &p) -{ - this->ptr_ = ACE_const_cast (CORBA_DynArray_out&,p).ptr_; - return *this; -} - -ACE_INLINE CORBA_DynArray_out & -CORBA_DynArray_out::operator= (const CORBA_DynArray_var &p) -{ - this->ptr_ = CORBA_DynArray::_duplicate (p.ptr ()); - return *this; -} - -ACE_INLINE CORBA_DynArray_out & -CORBA_DynArray_out::operator= (CORBA_DynArray_ptr p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA_DynArray_out::operator CORBA_DynArray_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynArray_ptr & -CORBA_DynArray_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE CORBA_DynArray_ptr -CORBA_DynArray_out::operator-> (void) -{ - return this->ptr_; -} - - -#endif /* end #if !defined */ - |