diff options
Diffstat (limited to 'TAO/tao/IFR_Client/IFR_BaseC.i')
-rw-r--r-- | TAO/tao/IFR_Client/IFR_BaseC.i | 8616 |
1 files changed, 9 insertions, 8607 deletions
diff --git a/TAO/tao/IFR_Client/IFR_BaseC.i b/TAO/tao/IFR_Client/IFR_BaseC.i index 9bc28ee6169..61d3b566f21 100644 --- a/TAO/tao/IFR_Client/IFR_BaseC.i +++ b/TAO/tao/IFR_Client/IFR_BaseC.i @@ -37,227 +37,9 @@ CORBA::IRObject::IRObject ( this->CORBA_IRObject_setup_collocation (_tao_collocated); } -ACE_INLINE -CORBA::Boolean -CORBA::IRObject::marshal (TAO_OutputCDR &cdr) -{ - return (cdr << this); -} - #endif /* end #if !defined */ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 - -// ************************************************************* -// Inline operations for class CORBA::Contained::Description_var -// ************************************************************* - -ACE_INLINE -CORBA::Contained::Description_var::Description_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::Contained::Description_var::Description_var (Description *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::Contained::Description_var::Description_var (const ::CORBA::Contained::Description_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::Contained::Description (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::Contained::Description_var::~Description_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::Contained::Description_var & -CORBA::Contained::Description_var::operator= (Description *_tao_struct_var) -{ - delete this->ptr_; - this->ptr_ = _tao_struct_var; - return *this; -} - -ACE_INLINE -::CORBA::Contained::Description_var & -CORBA::Contained::Description_var::operator= (const ::CORBA::Contained::Description_var &_tao_struct_var) -{ - if (this != &_tao_struct_var) - { - if (_tao_struct_var.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - Description *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - Description (*_tao_struct_var.ptr_), - *this - ); - - if (deep_copy != 0) - { - Description *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE const ::CORBA::Contained::Description * -CORBA::Contained::Description_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::Contained::Description * -CORBA::Contained::Description_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::Contained::Description_var::operator const ::CORBA::Contained::Description &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::Contained::Description_var::operator ::CORBA::Contained::Description &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::Contained::Description_var::operator ::CORBA::Contained::Description &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::Contained::Description_var::operator ::CORBA::Contained::Description *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE const ::CORBA::Contained::Description & -CORBA::Contained::Description_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE ::CORBA::Contained::Description & -CORBA::Contained::Description_var::inout (void) -{ - return *this->ptr_; -} - -// Mapping for variable size. -ACE_INLINE ::CORBA::Contained::Description *& -CORBA::Contained::Description_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE ::CORBA::Contained::Description * -CORBA::Contained::Description_var::_retn (void) -{ - ::CORBA::Contained::Description *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE ::CORBA::Contained::Description * -CORBA::Contained::Description_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:523 - -// ************************************************************* -// Inline operations for class CORBA::Contained::Description_out -// ************************************************************* - -ACE_INLINE -CORBA::Contained::Description_out::Description_out (::CORBA::Contained::Description *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::Contained::Description_out::Description_out (Description_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::Contained::Description_out::Description_out (const ::CORBA::Contained::Description_out &p) - : ptr_ (ACE_const_cast (Description_out&, p).ptr_) -{} - -ACE_INLINE -CORBA::Contained::Description_out & -CORBA::Contained::Description_out::operator= (const ::CORBA::Contained::Description_out &p) -{ - this->ptr_ = ACE_const_cast (Description_out&, p).ptr_; - return *this; -} - -ACE_INLINE -CORBA::Contained::Description_out & -CORBA::Contained::Description_out::operator= (Description *_tao_struct_out) -{ - this->ptr_ = _tao_struct_out; - return *this; -} - -ACE_INLINE -CORBA::Contained::Description_out::operator ::CORBA::Contained::Description *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::Contained::Description *& -CORBA::Contained::Description_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::Contained::Description * -CORBA::Contained::Description_out::operator-> (void) -{ - return this->ptr_; -} - -// TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ci.cpp:68 #if !defined (_CORBA_CONTAINED___CI_) @@ -274,8153 +56,6 @@ CORBA::Contained::Contained ( this->CORBA_Contained_setup_collocation (_tao_collocated); } -ACE_INLINE -CORBA::Boolean -CORBA::Contained::marshal (TAO_OutputCDR &cdr) -{ - return (cdr << this); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_obj_sequence_ci.cpp:107 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_INTERFACEDEFSEQ_CI_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_INTERFACEDEFSEQ_CI_ - -ACE_INLINE -CORBA::InterfaceDef ** -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::allocbuf (CORBA::ULong nelems) -{ - CORBA::InterfaceDef **buf = 0; - - ACE_NEW_RETURN (buf, CORBA::InterfaceDef*[nelems], 0); - - for (CORBA::ULong i = 0; i < nelems; i++) - { - buf[i] = tao_CORBA_InterfaceDef_nil (); - } - - return buf; -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::freebuf (CORBA::InterfaceDef **buffer) -{ - if (buffer == 0) - { - return; - } - - delete[] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::InterfaceDef* *value, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, value, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq( - const _TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::InterfaceDef **tmp1 = - _TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::allocbuf (this->maximum_); - CORBA::InterfaceDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::InterfaceDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_InterfaceDef_duplicate (tmp2[i]); - } - - this->buffer_ = tmp1; - } - else - { - this->buffer_ = 0; - } -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq & -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::operator= ( - const _TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - CORBA::InterfaceDef **tmp = - ACE_reinterpret_cast (CORBA::InterfaceDef **, this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tao_CORBA_InterfaceDef_release (tmp[i]); - tmp[i] = tao_CORBA_InterfaceDef_nil (); - } - - if (this->maximum_ < rhs.maximum_) - { - _TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::freebuf (tmp); - this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::InterfaceDef **tmp1 = - ACE_reinterpret_cast (CORBA::InterfaceDef **, this->buffer_); - - CORBA::InterfaceDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::InterfaceDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_InterfaceDef_duplicate (tmp2[i]); - } - - return *this; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::InterfaceDef,CORBA::InterfaceDef_var> -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::operator[] (CORBA::ULong index) const -{ - ACE_ASSERT (index < this->maximum_); - CORBA::InterfaceDef ** const tmp = - ACE_reinterpret_cast (CORBA::InterfaceDef ** ACE_CAST_CONST, this->buffer_); - return TAO_Object_Manager<CORBA::InterfaceDef,CORBA::InterfaceDef_var> (tmp + index, this->release_); -} - -ACE_INLINE -CORBA::InterfaceDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::InterfaceDef **result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::allocbuf (this->maximum_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::InterfaceDef**, 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::InterfaceDef**,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::InterfaceDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_InterfaceDefSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::InterfaceDef ** ACE_CAST_CONST, this->buffer_); -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_INTERFACEDEFSEQ_CI_) -#define _CORBA_INTERFACEDEFSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::InterfaceDefSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::InterfaceDefSeq_var::InterfaceDefSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::InterfaceDefSeq_var::InterfaceDefSeq_var (InterfaceDefSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::InterfaceDefSeq_var::InterfaceDefSeq_var (const ::CORBA::InterfaceDefSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::InterfaceDefSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::InterfaceDefSeq_var::~InterfaceDefSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::InterfaceDefSeq_var & -CORBA::InterfaceDefSeq_var::operator= (InterfaceDefSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::InterfaceDefSeq_var & -CORBA::InterfaceDefSeq_var::operator= (const ::CORBA::InterfaceDefSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - InterfaceDefSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - InterfaceDefSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - InterfaceDefSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::InterfaceDefSeq * -CORBA::InterfaceDefSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::InterfaceDefSeq * -CORBA::InterfaceDefSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::InterfaceDefSeq_var::operator const ::CORBA::InterfaceDefSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::InterfaceDefSeq_var::operator ::CORBA::InterfaceDefSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::InterfaceDefSeq_var::operator ::CORBA::InterfaceDefSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::InterfaceDefSeq_var::operator ::CORBA::InterfaceDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::InterfaceDef, CORBA::InterfaceDef_var> -CORBA::InterfaceDefSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const ::CORBA::InterfaceDefSeq & -CORBA::InterfaceDefSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::InterfaceDefSeq & -CORBA::InterfaceDefSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::InterfaceDefSeq *& -CORBA::InterfaceDefSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::InterfaceDefSeq * -CORBA::InterfaceDefSeq_var::_retn (void) -{ - ::CORBA::InterfaceDefSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::InterfaceDefSeq * -CORBA::InterfaceDefSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::InterfaceDefSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::InterfaceDefSeq_out::InterfaceDefSeq_out (InterfaceDefSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::InterfaceDefSeq_out::InterfaceDefSeq_out (InterfaceDefSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::InterfaceDefSeq_out::InterfaceDefSeq_out (const ::CORBA::InterfaceDefSeq_out &p) - : ptr_ (ACE_const_cast (InterfaceDefSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::InterfaceDefSeq_out & -CORBA::InterfaceDefSeq_out::operator= (const ::CORBA::InterfaceDefSeq_out &p) -{ - this->ptr_ = ACE_const_cast (InterfaceDefSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::InterfaceDefSeq_out & -CORBA::InterfaceDefSeq_out::operator= (InterfaceDefSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::InterfaceDefSeq_out::operator ::CORBA::InterfaceDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::InterfaceDefSeq *& -CORBA::InterfaceDefSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::InterfaceDefSeq * -CORBA::InterfaceDefSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::InterfaceDef, CORBA::InterfaceDef_var> -CORBA::InterfaceDefSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_obj_sequence_ci.cpp:107 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_VALUEDEFSEQ_CI_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_VALUEDEFSEQ_CI_ - -ACE_INLINE -CORBA::ValueDef ** -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::allocbuf (CORBA::ULong nelems) -{ - CORBA::ValueDef **buf = 0; - - ACE_NEW_RETURN (buf, CORBA::ValueDef*[nelems], 0); - - for (CORBA::ULong i = 0; i < nelems; i++) - { - buf[i] = tao_CORBA_ValueDef_nil (); - } - - return buf; -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::freebuf (CORBA::ValueDef **buffer) -{ - if (buffer == 0) - { - return; - } - - delete[] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::ValueDef* *value, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, value, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq( - const _TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::ValueDef **tmp1 = - _TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::allocbuf (this->maximum_); - CORBA::ValueDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::ValueDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_ValueDef_duplicate (tmp2[i]); - } - - this->buffer_ = tmp1; - } - else - { - this->buffer_ = 0; - } -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq & -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::operator= ( - const _TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - CORBA::ValueDef **tmp = - ACE_reinterpret_cast (CORBA::ValueDef **, this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tao_CORBA_ValueDef_release (tmp[i]); - tmp[i] = tao_CORBA_ValueDef_nil (); - } - - if (this->maximum_ < rhs.maximum_) - { - _TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::freebuf (tmp); - this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::ValueDef **tmp1 = - ACE_reinterpret_cast (CORBA::ValueDef **, this->buffer_); - - CORBA::ValueDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::ValueDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_ValueDef_duplicate (tmp2[i]); - } - - return *this; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ValueDef,CORBA::ValueDef_var> -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::operator[] (CORBA::ULong index) const -{ - ACE_ASSERT (index < this->maximum_); - CORBA::ValueDef ** const tmp = - ACE_reinterpret_cast (CORBA::ValueDef ** ACE_CAST_CONST, this->buffer_); - return TAO_Object_Manager<CORBA::ValueDef,CORBA::ValueDef_var> (tmp + index, this->release_); -} - -ACE_INLINE -CORBA::ValueDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::ValueDef **result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::allocbuf (this->maximum_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::ValueDef**, 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::ValueDef**,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::ValueDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ValueDefSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::ValueDef ** ACE_CAST_CONST, this->buffer_); -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_VALUEDEFSEQ_CI_) -#define _CORBA_VALUEDEFSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::ValueDefSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::ValueDefSeq_var::ValueDefSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::ValueDefSeq_var::ValueDefSeq_var (ValueDefSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::ValueDefSeq_var::ValueDefSeq_var (const ::CORBA::ValueDefSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::ValueDefSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::ValueDefSeq_var::~ValueDefSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::ValueDefSeq_var & -CORBA::ValueDefSeq_var::operator= (ValueDefSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::ValueDefSeq_var & -CORBA::ValueDefSeq_var::operator= (const ::CORBA::ValueDefSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ValueDefSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - ValueDefSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - ValueDefSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::ValueDefSeq * -CORBA::ValueDefSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ValueDefSeq * -CORBA::ValueDefSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ValueDefSeq_var::operator const ::CORBA::ValueDefSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ValueDefSeq_var::operator ::CORBA::ValueDefSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ValueDefSeq_var::operator ::CORBA::ValueDefSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::ValueDefSeq_var::operator ::CORBA::ValueDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ValueDef, CORBA::ValueDef_var> -CORBA::ValueDefSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const ::CORBA::ValueDefSeq & -CORBA::ValueDefSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ValueDefSeq & -CORBA::ValueDefSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ValueDefSeq *& -CORBA::ValueDefSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::ValueDefSeq * -CORBA::ValueDefSeq_var::_retn (void) -{ - ::CORBA::ValueDefSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::ValueDefSeq * -CORBA::ValueDefSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::ValueDefSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::ValueDefSeq_out::ValueDefSeq_out (ValueDefSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ValueDefSeq_out::ValueDefSeq_out (ValueDefSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ValueDefSeq_out::ValueDefSeq_out (const ::CORBA::ValueDefSeq_out &p) - : ptr_ (ACE_const_cast (ValueDefSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::ValueDefSeq_out & -CORBA::ValueDefSeq_out::operator= (const ::CORBA::ValueDefSeq_out &p) -{ - this->ptr_ = ACE_const_cast (ValueDefSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::ValueDefSeq_out & -CORBA::ValueDefSeq_out::operator= (ValueDefSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::ValueDefSeq_out::operator ::CORBA::ValueDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ValueDefSeq *& -CORBA::ValueDefSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ValueDefSeq * -CORBA::ValueDefSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ValueDef, CORBA::ValueDef_var> -CORBA::ValueDefSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_obj_sequence_ci.cpp:107 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_ABSTRACTINTERFACEDEFSEQ_CI_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_ABSTRACTINTERFACEDEFSEQ_CI_ - -ACE_INLINE -CORBA::AbstractInterfaceDef ** -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::allocbuf (CORBA::ULong nelems) -{ - CORBA::AbstractInterfaceDef **buf = 0; - - ACE_NEW_RETURN (buf, CORBA::AbstractInterfaceDef*[nelems], 0); - - for (CORBA::ULong i = 0; i < nelems; i++) - { - buf[i] = tao_CORBA_AbstractInterfaceDef_nil (); - } - - return buf; -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::freebuf (CORBA::AbstractInterfaceDef **buffer) -{ - if (buffer == 0) - { - return; - } - - delete[] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::AbstractInterfaceDef* *value, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, value, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq( - const _TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::AbstractInterfaceDef **tmp1 = - _TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::allocbuf (this->maximum_); - CORBA::AbstractInterfaceDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::AbstractInterfaceDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_AbstractInterfaceDef_duplicate (tmp2[i]); - } - - this->buffer_ = tmp1; - } - else - { - this->buffer_ = 0; - } -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq & -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::operator= ( - const _TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - CORBA::AbstractInterfaceDef **tmp = - ACE_reinterpret_cast (CORBA::AbstractInterfaceDef **, this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tao_CORBA_AbstractInterfaceDef_release (tmp[i]); - tmp[i] = tao_CORBA_AbstractInterfaceDef_nil (); - } - - if (this->maximum_ < rhs.maximum_) - { - _TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::freebuf (tmp); - this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::AbstractInterfaceDef **tmp1 = - ACE_reinterpret_cast (CORBA::AbstractInterfaceDef **, this->buffer_); - - CORBA::AbstractInterfaceDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::AbstractInterfaceDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_AbstractInterfaceDef_duplicate (tmp2[i]); - } - - return *this; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::AbstractInterfaceDef,CORBA::AbstractInterfaceDef_var> -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::operator[] (CORBA::ULong index) const -{ - ACE_ASSERT (index < this->maximum_); - CORBA::AbstractInterfaceDef ** const tmp = - ACE_reinterpret_cast (CORBA::AbstractInterfaceDef ** ACE_CAST_CONST, this->buffer_); - return TAO_Object_Manager<CORBA::AbstractInterfaceDef,CORBA::AbstractInterfaceDef_var> (tmp + index, this->release_); -} - -ACE_INLINE -CORBA::AbstractInterfaceDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::AbstractInterfaceDef **result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::allocbuf (this->maximum_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::AbstractInterfaceDef**, 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::AbstractInterfaceDef**,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::AbstractInterfaceDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_AbstractInterfaceDefSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::AbstractInterfaceDef ** ACE_CAST_CONST, this->buffer_); -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_ABSTRACTINTERFACEDEFSEQ_CI_) -#define _CORBA_ABSTRACTINTERFACEDEFSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::AbstractInterfaceDefSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_var::AbstractInterfaceDefSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_var::AbstractInterfaceDefSeq_var (AbstractInterfaceDefSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_var::AbstractInterfaceDefSeq_var (const ::CORBA::AbstractInterfaceDefSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::AbstractInterfaceDefSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_var::~AbstractInterfaceDefSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_var & -CORBA::AbstractInterfaceDefSeq_var::operator= (AbstractInterfaceDefSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::AbstractInterfaceDefSeq_var & -CORBA::AbstractInterfaceDefSeq_var::operator= (const ::CORBA::AbstractInterfaceDefSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - AbstractInterfaceDefSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - AbstractInterfaceDefSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - AbstractInterfaceDefSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::AbstractInterfaceDefSeq * -CORBA::AbstractInterfaceDefSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::AbstractInterfaceDefSeq * -CORBA::AbstractInterfaceDefSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_var::operator const ::CORBA::AbstractInterfaceDefSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_var::operator ::CORBA::AbstractInterfaceDefSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_var::operator ::CORBA::AbstractInterfaceDefSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_var::operator ::CORBA::AbstractInterfaceDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::AbstractInterfaceDef, CORBA::AbstractInterfaceDef_var> -CORBA::AbstractInterfaceDefSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const ::CORBA::AbstractInterfaceDefSeq & -CORBA::AbstractInterfaceDefSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::AbstractInterfaceDefSeq & -CORBA::AbstractInterfaceDefSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::AbstractInterfaceDefSeq *& -CORBA::AbstractInterfaceDefSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::AbstractInterfaceDefSeq * -CORBA::AbstractInterfaceDefSeq_var::_retn (void) -{ - ::CORBA::AbstractInterfaceDefSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::AbstractInterfaceDefSeq * -CORBA::AbstractInterfaceDefSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::AbstractInterfaceDefSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_out::AbstractInterfaceDefSeq_out (AbstractInterfaceDefSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_out::AbstractInterfaceDefSeq_out (AbstractInterfaceDefSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_out::AbstractInterfaceDefSeq_out (const ::CORBA::AbstractInterfaceDefSeq_out &p) - : ptr_ (ACE_const_cast (AbstractInterfaceDefSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::AbstractInterfaceDefSeq_out & -CORBA::AbstractInterfaceDefSeq_out::operator= (const ::CORBA::AbstractInterfaceDefSeq_out &p) -{ - this->ptr_ = ACE_const_cast (AbstractInterfaceDefSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::AbstractInterfaceDefSeq_out & -CORBA::AbstractInterfaceDefSeq_out::operator= (AbstractInterfaceDefSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::AbstractInterfaceDefSeq_out::operator ::CORBA::AbstractInterfaceDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::AbstractInterfaceDefSeq *& -CORBA::AbstractInterfaceDefSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::AbstractInterfaceDefSeq * -CORBA::AbstractInterfaceDefSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::AbstractInterfaceDef, CORBA::AbstractInterfaceDef_var> -CORBA::AbstractInterfaceDefSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_obj_sequence_ci.cpp:107 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_LOCALINTERFACEDEFSEQ_CI_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_LOCALINTERFACEDEFSEQ_CI_ - -ACE_INLINE -CORBA::LocalInterfaceDef ** -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::allocbuf (CORBA::ULong nelems) -{ - CORBA::LocalInterfaceDef **buf = 0; - - ACE_NEW_RETURN (buf, CORBA::LocalInterfaceDef*[nelems], 0); - - for (CORBA::ULong i = 0; i < nelems; i++) - { - buf[i] = tao_CORBA_LocalInterfaceDef_nil (); - } - - return buf; -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::freebuf (CORBA::LocalInterfaceDef **buffer) -{ - if (buffer == 0) - { - return; - } - - delete[] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::LocalInterfaceDef* *value, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, value, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq( - const _TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::LocalInterfaceDef **tmp1 = - _TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::allocbuf (this->maximum_); - CORBA::LocalInterfaceDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::LocalInterfaceDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_LocalInterfaceDef_duplicate (tmp2[i]); - } - - this->buffer_ = tmp1; - } - else - { - this->buffer_ = 0; - } -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq & -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::operator= ( - const _TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - CORBA::LocalInterfaceDef **tmp = - ACE_reinterpret_cast (CORBA::LocalInterfaceDef **, this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tao_CORBA_LocalInterfaceDef_release (tmp[i]); - tmp[i] = tao_CORBA_LocalInterfaceDef_nil (); - } - - if (this->maximum_ < rhs.maximum_) - { - _TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::freebuf (tmp); - this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::LocalInterfaceDef **tmp1 = - ACE_reinterpret_cast (CORBA::LocalInterfaceDef **, this->buffer_); - - CORBA::LocalInterfaceDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::LocalInterfaceDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_LocalInterfaceDef_duplicate (tmp2[i]); - } - - return *this; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::LocalInterfaceDef,CORBA::LocalInterfaceDef_var> -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::operator[] (CORBA::ULong index) const -{ - ACE_ASSERT (index < this->maximum_); - CORBA::LocalInterfaceDef ** const tmp = - ACE_reinterpret_cast (CORBA::LocalInterfaceDef ** ACE_CAST_CONST, this->buffer_); - return TAO_Object_Manager<CORBA::LocalInterfaceDef,CORBA::LocalInterfaceDef_var> (tmp + index, this->release_); -} - -ACE_INLINE -CORBA::LocalInterfaceDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::LocalInterfaceDef **result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::allocbuf (this->maximum_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::LocalInterfaceDef**, 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::LocalInterfaceDef**,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::LocalInterfaceDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_LocalInterfaceDefSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::LocalInterfaceDef ** ACE_CAST_CONST, this->buffer_); -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_LOCALINTERFACEDEFSEQ_CI_) -#define _CORBA_LOCALINTERFACEDEFSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::LocalInterfaceDefSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::LocalInterfaceDefSeq_var::LocalInterfaceDefSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::LocalInterfaceDefSeq_var::LocalInterfaceDefSeq_var (LocalInterfaceDefSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::LocalInterfaceDefSeq_var::LocalInterfaceDefSeq_var (const ::CORBA::LocalInterfaceDefSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::LocalInterfaceDefSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::LocalInterfaceDefSeq_var::~LocalInterfaceDefSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::LocalInterfaceDefSeq_var & -CORBA::LocalInterfaceDefSeq_var::operator= (LocalInterfaceDefSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::LocalInterfaceDefSeq_var & -CORBA::LocalInterfaceDefSeq_var::operator= (const ::CORBA::LocalInterfaceDefSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - LocalInterfaceDefSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - LocalInterfaceDefSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - LocalInterfaceDefSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::LocalInterfaceDefSeq * -CORBA::LocalInterfaceDefSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::LocalInterfaceDefSeq * -CORBA::LocalInterfaceDefSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::LocalInterfaceDefSeq_var::operator const ::CORBA::LocalInterfaceDefSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::LocalInterfaceDefSeq_var::operator ::CORBA::LocalInterfaceDefSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::LocalInterfaceDefSeq_var::operator ::CORBA::LocalInterfaceDefSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::LocalInterfaceDefSeq_var::operator ::CORBA::LocalInterfaceDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::LocalInterfaceDef, CORBA::LocalInterfaceDef_var> -CORBA::LocalInterfaceDefSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const ::CORBA::LocalInterfaceDefSeq & -CORBA::LocalInterfaceDefSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::LocalInterfaceDefSeq & -CORBA::LocalInterfaceDefSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::LocalInterfaceDefSeq *& -CORBA::LocalInterfaceDefSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::LocalInterfaceDefSeq * -CORBA::LocalInterfaceDefSeq_var::_retn (void) -{ - ::CORBA::LocalInterfaceDefSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::LocalInterfaceDefSeq * -CORBA::LocalInterfaceDefSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::LocalInterfaceDefSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::LocalInterfaceDefSeq_out::LocalInterfaceDefSeq_out (LocalInterfaceDefSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::LocalInterfaceDefSeq_out::LocalInterfaceDefSeq_out (LocalInterfaceDefSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::LocalInterfaceDefSeq_out::LocalInterfaceDefSeq_out (const ::CORBA::LocalInterfaceDefSeq_out &p) - : ptr_ (ACE_const_cast (LocalInterfaceDefSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::LocalInterfaceDefSeq_out & -CORBA::LocalInterfaceDefSeq_out::operator= (const ::CORBA::LocalInterfaceDefSeq_out &p) -{ - this->ptr_ = ACE_const_cast (LocalInterfaceDefSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::LocalInterfaceDefSeq_out & -CORBA::LocalInterfaceDefSeq_out::operator= (LocalInterfaceDefSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::LocalInterfaceDefSeq_out::operator ::CORBA::LocalInterfaceDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::LocalInterfaceDefSeq *& -CORBA::LocalInterfaceDefSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::LocalInterfaceDefSeq * -CORBA::LocalInterfaceDefSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::LocalInterfaceDef, CORBA::LocalInterfaceDef_var> -CORBA::LocalInterfaceDefSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_obj_sequence_ci.cpp:107 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_EXTINTERFACEDEFSEQ_CI_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_EXTINTERFACEDEFSEQ_CI_ - -ACE_INLINE -CORBA::ExtInterfaceDef ** -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::allocbuf (CORBA::ULong nelems) -{ - CORBA::ExtInterfaceDef **buf = 0; - - ACE_NEW_RETURN (buf, CORBA::ExtInterfaceDef*[nelems], 0); - - for (CORBA::ULong i = 0; i < nelems; i++) - { - buf[i] = tao_CORBA_ExtInterfaceDef_nil (); - } - - return buf; -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::freebuf (CORBA::ExtInterfaceDef **buffer) -{ - if (buffer == 0) - { - return; - } - - delete[] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::ExtInterfaceDef* *value, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, value, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq( - const _TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::ExtInterfaceDef **tmp1 = - _TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::allocbuf (this->maximum_); - CORBA::ExtInterfaceDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::ExtInterfaceDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_ExtInterfaceDef_duplicate (tmp2[i]); - } - - this->buffer_ = tmp1; - } - else - { - this->buffer_ = 0; - } -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq & -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::operator= ( - const _TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - CORBA::ExtInterfaceDef **tmp = - ACE_reinterpret_cast (CORBA::ExtInterfaceDef **, this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tao_CORBA_ExtInterfaceDef_release (tmp[i]); - tmp[i] = tao_CORBA_ExtInterfaceDef_nil (); - } - - if (this->maximum_ < rhs.maximum_) - { - _TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::freebuf (tmp); - this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::ExtInterfaceDef **tmp1 = - ACE_reinterpret_cast (CORBA::ExtInterfaceDef **, this->buffer_); - - CORBA::ExtInterfaceDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::ExtInterfaceDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_ExtInterfaceDef_duplicate (tmp2[i]); - } - - return *this; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ExtInterfaceDef,CORBA::ExtInterfaceDef_var> -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::operator[] (CORBA::ULong index) const -{ - ACE_ASSERT (index < this->maximum_); - CORBA::ExtInterfaceDef ** const tmp = - ACE_reinterpret_cast (CORBA::ExtInterfaceDef ** ACE_CAST_CONST, this->buffer_); - return TAO_Object_Manager<CORBA::ExtInterfaceDef,CORBA::ExtInterfaceDef_var> (tmp + index, this->release_); -} - -ACE_INLINE -CORBA::ExtInterfaceDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::ExtInterfaceDef **result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::allocbuf (this->maximum_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::ExtInterfaceDef**, 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::ExtInterfaceDef**,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::ExtInterfaceDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtInterfaceDefSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::ExtInterfaceDef ** ACE_CAST_CONST, this->buffer_); -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_EXTINTERFACEDEFSEQ_CI_) -#define _CORBA_EXTINTERFACEDEFSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::ExtInterfaceDefSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::ExtInterfaceDefSeq_var::ExtInterfaceDefSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::ExtInterfaceDefSeq_var::ExtInterfaceDefSeq_var (ExtInterfaceDefSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::ExtInterfaceDefSeq_var::ExtInterfaceDefSeq_var (const ::CORBA::ExtInterfaceDefSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::ExtInterfaceDefSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::ExtInterfaceDefSeq_var::~ExtInterfaceDefSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::ExtInterfaceDefSeq_var & -CORBA::ExtInterfaceDefSeq_var::operator= (ExtInterfaceDefSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::ExtInterfaceDefSeq_var & -CORBA::ExtInterfaceDefSeq_var::operator= (const ::CORBA::ExtInterfaceDefSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ExtInterfaceDefSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - ExtInterfaceDefSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - ExtInterfaceDefSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::ExtInterfaceDefSeq * -CORBA::ExtInterfaceDefSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtInterfaceDefSeq * -CORBA::ExtInterfaceDefSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ExtInterfaceDefSeq_var::operator const ::CORBA::ExtInterfaceDefSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExtInterfaceDefSeq_var::operator ::CORBA::ExtInterfaceDefSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExtInterfaceDefSeq_var::operator ::CORBA::ExtInterfaceDefSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::ExtInterfaceDefSeq_var::operator ::CORBA::ExtInterfaceDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ExtInterfaceDef, CORBA::ExtInterfaceDef_var> -CORBA::ExtInterfaceDefSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const ::CORBA::ExtInterfaceDefSeq & -CORBA::ExtInterfaceDefSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ExtInterfaceDefSeq & -CORBA::ExtInterfaceDefSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ExtInterfaceDefSeq *& -CORBA::ExtInterfaceDefSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtInterfaceDefSeq * -CORBA::ExtInterfaceDefSeq_var::_retn (void) -{ - ::CORBA::ExtInterfaceDefSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::ExtInterfaceDefSeq * -CORBA::ExtInterfaceDefSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::ExtInterfaceDefSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::ExtInterfaceDefSeq_out::ExtInterfaceDefSeq_out (ExtInterfaceDefSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExtInterfaceDefSeq_out::ExtInterfaceDefSeq_out (ExtInterfaceDefSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExtInterfaceDefSeq_out::ExtInterfaceDefSeq_out (const ::CORBA::ExtInterfaceDefSeq_out &p) - : ptr_ (ACE_const_cast (ExtInterfaceDefSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::ExtInterfaceDefSeq_out & -CORBA::ExtInterfaceDefSeq_out::operator= (const ::CORBA::ExtInterfaceDefSeq_out &p) -{ - this->ptr_ = ACE_const_cast (ExtInterfaceDefSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::ExtInterfaceDefSeq_out & -CORBA::ExtInterfaceDefSeq_out::operator= (ExtInterfaceDefSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::ExtInterfaceDefSeq_out::operator ::CORBA::ExtInterfaceDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtInterfaceDefSeq *& -CORBA::ExtInterfaceDefSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtInterfaceDefSeq * -CORBA::ExtInterfaceDefSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ExtInterfaceDef, CORBA::ExtInterfaceDef_var> -CORBA::ExtInterfaceDefSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_obj_sequence_ci.cpp:107 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_EXTVALUEDEFSEQ_CI_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_EXTVALUEDEFSEQ_CI_ - -ACE_INLINE -CORBA::ExtValueDef ** -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::allocbuf (CORBA::ULong nelems) -{ - CORBA::ExtValueDef **buf = 0; - - ACE_NEW_RETURN (buf, CORBA::ExtValueDef*[nelems], 0); - - for (CORBA::ULong i = 0; i < nelems; i++) - { - buf[i] = tao_CORBA_ExtValueDef_nil (); - } - - return buf; -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::freebuf (CORBA::ExtValueDef **buffer) -{ - if (buffer == 0) - { - return; - } - - delete[] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::ExtValueDef* *value, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, value, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq( - const _TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::ExtValueDef **tmp1 = - _TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::allocbuf (this->maximum_); - CORBA::ExtValueDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::ExtValueDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_ExtValueDef_duplicate (tmp2[i]); - } - - this->buffer_ = tmp1; - } - else - { - this->buffer_ = 0; - } -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq & -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::operator= ( - const _TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - CORBA::ExtValueDef **tmp = - ACE_reinterpret_cast (CORBA::ExtValueDef **, this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tao_CORBA_ExtValueDef_release (tmp[i]); - tmp[i] = tao_CORBA_ExtValueDef_nil (); - } - - if (this->maximum_ < rhs.maximum_) - { - _TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::freebuf (tmp); - this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::ExtValueDef **tmp1 = - ACE_reinterpret_cast (CORBA::ExtValueDef **, this->buffer_); - - CORBA::ExtValueDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::ExtValueDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_ExtValueDef_duplicate (tmp2[i]); - } - - return *this; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ExtValueDef,CORBA::ExtValueDef_var> -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::operator[] (CORBA::ULong index) const -{ - ACE_ASSERT (index < this->maximum_); - CORBA::ExtValueDef ** const tmp = - ACE_reinterpret_cast (CORBA::ExtValueDef ** ACE_CAST_CONST, this->buffer_); - return TAO_Object_Manager<CORBA::ExtValueDef,CORBA::ExtValueDef_var> (tmp + index, this->release_); -} - -ACE_INLINE -CORBA::ExtValueDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::ExtValueDef **result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::allocbuf (this->maximum_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::ExtValueDef**, 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::ExtValueDef**,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::ExtValueDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtValueDefSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::ExtValueDef ** ACE_CAST_CONST, this->buffer_); -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_EXTVALUEDEFSEQ_CI_) -#define _CORBA_EXTVALUEDEFSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::ExtValueDefSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::ExtValueDefSeq_var::ExtValueDefSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::ExtValueDefSeq_var::ExtValueDefSeq_var (ExtValueDefSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::ExtValueDefSeq_var::ExtValueDefSeq_var (const ::CORBA::ExtValueDefSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::ExtValueDefSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::ExtValueDefSeq_var::~ExtValueDefSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::ExtValueDefSeq_var & -CORBA::ExtValueDefSeq_var::operator= (ExtValueDefSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::ExtValueDefSeq_var & -CORBA::ExtValueDefSeq_var::operator= (const ::CORBA::ExtValueDefSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ExtValueDefSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - ExtValueDefSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - ExtValueDefSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::ExtValueDefSeq * -CORBA::ExtValueDefSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtValueDefSeq * -CORBA::ExtValueDefSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ExtValueDefSeq_var::operator const ::CORBA::ExtValueDefSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExtValueDefSeq_var::operator ::CORBA::ExtValueDefSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExtValueDefSeq_var::operator ::CORBA::ExtValueDefSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::ExtValueDefSeq_var::operator ::CORBA::ExtValueDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ExtValueDef, CORBA::ExtValueDef_var> -CORBA::ExtValueDefSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const ::CORBA::ExtValueDefSeq & -CORBA::ExtValueDefSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ExtValueDefSeq & -CORBA::ExtValueDefSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ExtValueDefSeq *& -CORBA::ExtValueDefSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtValueDefSeq * -CORBA::ExtValueDefSeq_var::_retn (void) -{ - ::CORBA::ExtValueDefSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::ExtValueDefSeq * -CORBA::ExtValueDefSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::ExtValueDefSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::ExtValueDefSeq_out::ExtValueDefSeq_out (ExtValueDefSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExtValueDefSeq_out::ExtValueDefSeq_out (ExtValueDefSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExtValueDefSeq_out::ExtValueDefSeq_out (const ::CORBA::ExtValueDefSeq_out &p) - : ptr_ (ACE_const_cast (ExtValueDefSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::ExtValueDefSeq_out & -CORBA::ExtValueDefSeq_out::operator= (const ::CORBA::ExtValueDefSeq_out &p) -{ - this->ptr_ = ACE_const_cast (ExtValueDefSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::ExtValueDefSeq_out & -CORBA::ExtValueDefSeq_out::operator= (ExtValueDefSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::ExtValueDefSeq_out::operator ::CORBA::ExtValueDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtValueDefSeq *& -CORBA::ExtValueDefSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtValueDefSeq * -CORBA::ExtValueDefSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ExtValueDef, CORBA::ExtValueDef_var> -CORBA::ExtValueDefSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_obj_sequence_ci.cpp:107 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_EXTABSTRACTINTERFACEDEFSEQ_CI_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_EXTABSTRACTINTERFACEDEFSEQ_CI_ - -ACE_INLINE -CORBA::ExtAbstractInterfaceDef ** -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::allocbuf (CORBA::ULong nelems) -{ - CORBA::ExtAbstractInterfaceDef **buf = 0; - - ACE_NEW_RETURN (buf, CORBA::ExtAbstractInterfaceDef*[nelems], 0); - - for (CORBA::ULong i = 0; i < nelems; i++) - { - buf[i] = tao_CORBA_ExtAbstractInterfaceDef_nil (); - } - - return buf; -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::freebuf (CORBA::ExtAbstractInterfaceDef **buffer) -{ - if (buffer == 0) - { - return; - } - - delete[] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::ExtAbstractInterfaceDef* *value, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, value, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq( - const _TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::ExtAbstractInterfaceDef **tmp1 = - _TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::allocbuf (this->maximum_); - CORBA::ExtAbstractInterfaceDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::ExtAbstractInterfaceDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_ExtAbstractInterfaceDef_duplicate (tmp2[i]); - } - - this->buffer_ = tmp1; - } - else - { - this->buffer_ = 0; - } -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq & -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::operator= ( - const _TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - CORBA::ExtAbstractInterfaceDef **tmp = - ACE_reinterpret_cast (CORBA::ExtAbstractInterfaceDef **, this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tao_CORBA_ExtAbstractInterfaceDef_release (tmp[i]); - tmp[i] = tao_CORBA_ExtAbstractInterfaceDef_nil (); - } - - if (this->maximum_ < rhs.maximum_) - { - _TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::freebuf (tmp); - this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::ExtAbstractInterfaceDef **tmp1 = - ACE_reinterpret_cast (CORBA::ExtAbstractInterfaceDef **, this->buffer_); - - CORBA::ExtAbstractInterfaceDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::ExtAbstractInterfaceDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_ExtAbstractInterfaceDef_duplicate (tmp2[i]); - } - - return *this; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ExtAbstractInterfaceDef,CORBA::ExtAbstractInterfaceDef_var> -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::operator[] (CORBA::ULong index) const -{ - ACE_ASSERT (index < this->maximum_); - CORBA::ExtAbstractInterfaceDef ** const tmp = - ACE_reinterpret_cast (CORBA::ExtAbstractInterfaceDef ** ACE_CAST_CONST, this->buffer_); - return TAO_Object_Manager<CORBA::ExtAbstractInterfaceDef,CORBA::ExtAbstractInterfaceDef_var> (tmp + index, this->release_); -} - -ACE_INLINE -CORBA::ExtAbstractInterfaceDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::ExtAbstractInterfaceDef **result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::allocbuf (this->maximum_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::ExtAbstractInterfaceDef**, 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::ExtAbstractInterfaceDef**,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::ExtAbstractInterfaceDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtAbstractInterfaceDefSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::ExtAbstractInterfaceDef ** ACE_CAST_CONST, this->buffer_); -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_EXTABSTRACTINTERFACEDEFSEQ_CI_) -#define _CORBA_EXTABSTRACTINTERFACEDEFSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::ExtAbstractInterfaceDefSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_var::ExtAbstractInterfaceDefSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_var::ExtAbstractInterfaceDefSeq_var (ExtAbstractInterfaceDefSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_var::ExtAbstractInterfaceDefSeq_var (const ::CORBA::ExtAbstractInterfaceDefSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::ExtAbstractInterfaceDefSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_var::~ExtAbstractInterfaceDefSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_var & -CORBA::ExtAbstractInterfaceDefSeq_var::operator= (ExtAbstractInterfaceDefSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::ExtAbstractInterfaceDefSeq_var & -CORBA::ExtAbstractInterfaceDefSeq_var::operator= (const ::CORBA::ExtAbstractInterfaceDefSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ExtAbstractInterfaceDefSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - ExtAbstractInterfaceDefSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - ExtAbstractInterfaceDefSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::ExtAbstractInterfaceDefSeq * -CORBA::ExtAbstractInterfaceDefSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtAbstractInterfaceDefSeq * -CORBA::ExtAbstractInterfaceDefSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_var::operator const ::CORBA::ExtAbstractInterfaceDefSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_var::operator ::CORBA::ExtAbstractInterfaceDefSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_var::operator ::CORBA::ExtAbstractInterfaceDefSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_var::operator ::CORBA::ExtAbstractInterfaceDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ExtAbstractInterfaceDef, CORBA::ExtAbstractInterfaceDef_var> -CORBA::ExtAbstractInterfaceDefSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const ::CORBA::ExtAbstractInterfaceDefSeq & -CORBA::ExtAbstractInterfaceDefSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ExtAbstractInterfaceDefSeq & -CORBA::ExtAbstractInterfaceDefSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ExtAbstractInterfaceDefSeq *& -CORBA::ExtAbstractInterfaceDefSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtAbstractInterfaceDefSeq * -CORBA::ExtAbstractInterfaceDefSeq_var::_retn (void) -{ - ::CORBA::ExtAbstractInterfaceDefSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::ExtAbstractInterfaceDefSeq * -CORBA::ExtAbstractInterfaceDefSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::ExtAbstractInterfaceDefSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_out::ExtAbstractInterfaceDefSeq_out (ExtAbstractInterfaceDefSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_out::ExtAbstractInterfaceDefSeq_out (ExtAbstractInterfaceDefSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_out::ExtAbstractInterfaceDefSeq_out (const ::CORBA::ExtAbstractInterfaceDefSeq_out &p) - : ptr_ (ACE_const_cast (ExtAbstractInterfaceDefSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::ExtAbstractInterfaceDefSeq_out & -CORBA::ExtAbstractInterfaceDefSeq_out::operator= (const ::CORBA::ExtAbstractInterfaceDefSeq_out &p) -{ - this->ptr_ = ACE_const_cast (ExtAbstractInterfaceDefSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::ExtAbstractInterfaceDefSeq_out & -CORBA::ExtAbstractInterfaceDefSeq_out::operator= (ExtAbstractInterfaceDefSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::ExtAbstractInterfaceDefSeq_out::operator ::CORBA::ExtAbstractInterfaceDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtAbstractInterfaceDefSeq *& -CORBA::ExtAbstractInterfaceDefSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtAbstractInterfaceDefSeq * -CORBA::ExtAbstractInterfaceDefSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ExtAbstractInterfaceDef, CORBA::ExtAbstractInterfaceDef_var> -CORBA::ExtAbstractInterfaceDefSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_obj_sequence_ci.cpp:107 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_EXTLOCALINTERFACEDEFSEQ_CI_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_EXTLOCALINTERFACEDEFSEQ_CI_ - -ACE_INLINE -CORBA::ExtLocalInterfaceDef ** -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::allocbuf (CORBA::ULong nelems) -{ - CORBA::ExtLocalInterfaceDef **buf = 0; - - ACE_NEW_RETURN (buf, CORBA::ExtLocalInterfaceDef*[nelems], 0); - - for (CORBA::ULong i = 0; i < nelems; i++) - { - buf[i] = tao_CORBA_ExtLocalInterfaceDef_nil (); - } - - return buf; -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::freebuf (CORBA::ExtLocalInterfaceDef **buffer) -{ - if (buffer == 0) - { - return; - } - - delete[] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::ExtLocalInterfaceDef* *value, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, value, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq( - const _TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::ExtLocalInterfaceDef **tmp1 = - _TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::allocbuf (this->maximum_); - CORBA::ExtLocalInterfaceDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::ExtLocalInterfaceDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_ExtLocalInterfaceDef_duplicate (tmp2[i]); - } - - this->buffer_ = tmp1; - } - else - { - this->buffer_ = 0; - } -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq & -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::operator= ( - const _TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - CORBA::ExtLocalInterfaceDef **tmp = - ACE_reinterpret_cast (CORBA::ExtLocalInterfaceDef **, this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tao_CORBA_ExtLocalInterfaceDef_release (tmp[i]); - tmp[i] = tao_CORBA_ExtLocalInterfaceDef_nil (); - } - - if (this->maximum_ < rhs.maximum_) - { - _TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::freebuf (tmp); - this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::ExtLocalInterfaceDef **tmp1 = - ACE_reinterpret_cast (CORBA::ExtLocalInterfaceDef **, this->buffer_); - - CORBA::ExtLocalInterfaceDef ** const tmp2 = - ACE_reinterpret_cast (CORBA::ExtLocalInterfaceDef ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = tao_CORBA_ExtLocalInterfaceDef_duplicate (tmp2[i]); - } - - return *this; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ExtLocalInterfaceDef,CORBA::ExtLocalInterfaceDef_var> -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::operator[] (CORBA::ULong index) const -{ - ACE_ASSERT (index < this->maximum_); - CORBA::ExtLocalInterfaceDef ** const tmp = - ACE_reinterpret_cast (CORBA::ExtLocalInterfaceDef ** ACE_CAST_CONST, this->buffer_); - return TAO_Object_Manager<CORBA::ExtLocalInterfaceDef,CORBA::ExtLocalInterfaceDef_var> (tmp + index, this->release_); -} - -ACE_INLINE -CORBA::ExtLocalInterfaceDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::ExtLocalInterfaceDef **result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::allocbuf (this->maximum_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::ExtLocalInterfaceDef**, 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::ExtLocalInterfaceDef**,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::ExtLocalInterfaceDef* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ExtLocalInterfaceDefSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::ExtLocalInterfaceDef ** ACE_CAST_CONST, this->buffer_); -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_EXTLOCALINTERFACEDEFSEQ_CI_) -#define _CORBA_EXTLOCALINTERFACEDEFSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::ExtLocalInterfaceDefSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_var::ExtLocalInterfaceDefSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_var::ExtLocalInterfaceDefSeq_var (ExtLocalInterfaceDefSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_var::ExtLocalInterfaceDefSeq_var (const ::CORBA::ExtLocalInterfaceDefSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::ExtLocalInterfaceDefSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_var::~ExtLocalInterfaceDefSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_var & -CORBA::ExtLocalInterfaceDefSeq_var::operator= (ExtLocalInterfaceDefSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::ExtLocalInterfaceDefSeq_var & -CORBA::ExtLocalInterfaceDefSeq_var::operator= (const ::CORBA::ExtLocalInterfaceDefSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ExtLocalInterfaceDefSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - ExtLocalInterfaceDefSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - ExtLocalInterfaceDefSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::ExtLocalInterfaceDefSeq * -CORBA::ExtLocalInterfaceDefSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtLocalInterfaceDefSeq * -CORBA::ExtLocalInterfaceDefSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_var::operator const ::CORBA::ExtLocalInterfaceDefSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_var::operator ::CORBA::ExtLocalInterfaceDefSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_var::operator ::CORBA::ExtLocalInterfaceDefSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_var::operator ::CORBA::ExtLocalInterfaceDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ExtLocalInterfaceDef, CORBA::ExtLocalInterfaceDef_var> -CORBA::ExtLocalInterfaceDefSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const ::CORBA::ExtLocalInterfaceDefSeq & -CORBA::ExtLocalInterfaceDefSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ExtLocalInterfaceDefSeq & -CORBA::ExtLocalInterfaceDefSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ExtLocalInterfaceDefSeq *& -CORBA::ExtLocalInterfaceDefSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtLocalInterfaceDefSeq * -CORBA::ExtLocalInterfaceDefSeq_var::_retn (void) -{ - ::CORBA::ExtLocalInterfaceDefSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::ExtLocalInterfaceDefSeq * -CORBA::ExtLocalInterfaceDefSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::ExtLocalInterfaceDefSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_out::ExtLocalInterfaceDefSeq_out (ExtLocalInterfaceDefSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_out::ExtLocalInterfaceDefSeq_out (ExtLocalInterfaceDefSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_out::ExtLocalInterfaceDefSeq_out (const ::CORBA::ExtLocalInterfaceDefSeq_out &p) - : ptr_ (ACE_const_cast (ExtLocalInterfaceDefSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::ExtLocalInterfaceDefSeq_out & -CORBA::ExtLocalInterfaceDefSeq_out::operator= (const ::CORBA::ExtLocalInterfaceDefSeq_out &p) -{ - this->ptr_ = ACE_const_cast (ExtLocalInterfaceDefSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::ExtLocalInterfaceDefSeq_out & -CORBA::ExtLocalInterfaceDefSeq_out::operator= (ExtLocalInterfaceDefSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::ExtLocalInterfaceDefSeq_out::operator ::CORBA::ExtLocalInterfaceDefSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtLocalInterfaceDefSeq *& -CORBA::ExtLocalInterfaceDefSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtLocalInterfaceDefSeq * -CORBA::ExtLocalInterfaceDefSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::ExtLocalInterfaceDef, CORBA::ExtLocalInterfaceDef_var> -CORBA::ExtLocalInterfaceDefSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_obj_sequence_ci.cpp:107 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_CONTAINEDSEQ_CI_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_CONTAINEDSEQ_CI_ - -ACE_INLINE -CORBA::Contained ** -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::allocbuf (CORBA::ULong nelems) -{ - CORBA::Contained **buf = 0; - - ACE_NEW_RETURN (buf, CORBA::Contained*[nelems], 0); - - for (CORBA::ULong i = 0; i < nelems; i++) - { - buf[i] = CORBA::Contained::_nil (); - } - - return buf; -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::freebuf (CORBA::Contained **buffer) -{ - if (buffer == 0) - { - return; - } - - delete[] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::Contained* *value, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, value, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq( - const _TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::Contained **tmp1 = - _TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::allocbuf (this->maximum_); - CORBA::Contained ** const tmp2 = - ACE_reinterpret_cast (CORBA::Contained ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = CORBA::Contained::_duplicate (tmp2[i]); - } - - this->buffer_ = tmp1; - } - else - { - this->buffer_ = 0; - } -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq & -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::operator= ( - const _TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - CORBA::Contained **tmp = - ACE_reinterpret_cast (CORBA::Contained **, this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - CORBA::release (tmp[i]); - tmp[i] = CORBA::Contained::_nil (); - } - - if (this->maximum_ < rhs.maximum_) - { - _TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::freebuf (tmp); - this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::Contained **tmp1 = - ACE_reinterpret_cast (CORBA::Contained **, this->buffer_); - - CORBA::Contained ** const tmp2 = - ACE_reinterpret_cast (CORBA::Contained ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = CORBA::Contained::_duplicate (tmp2[i]); - } - - return *this; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::Contained,CORBA::Contained_var> -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::operator[] (CORBA::ULong index) const -{ - ACE_ASSERT (index < this->maximum_); - CORBA::Contained ** const tmp = - ACE_reinterpret_cast (CORBA::Contained ** ACE_CAST_CONST, this->buffer_); - return TAO_Object_Manager<CORBA::Contained,CORBA::Contained_var> (tmp + index, this->release_); -} - -ACE_INLINE -CORBA::Contained* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::Contained **result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::allocbuf (this->maximum_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::Contained**, 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::Contained**,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::Contained* * -CORBA::_TAO_Unbounded_Object_Sequence_CORBA_ContainedSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::Contained ** ACE_CAST_CONST, this->buffer_); -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_CONTAINEDSEQ_CI_) -#define _CORBA_CONTAINEDSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::ContainedSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::ContainedSeq_var::ContainedSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::ContainedSeq_var::ContainedSeq_var (ContainedSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::ContainedSeq_var::ContainedSeq_var (const ::CORBA::ContainedSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::ContainedSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::ContainedSeq_var::~ContainedSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::ContainedSeq_var & -CORBA::ContainedSeq_var::operator= (ContainedSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::ContainedSeq_var & -CORBA::ContainedSeq_var::operator= (const ::CORBA::ContainedSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ContainedSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - ContainedSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - ContainedSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::ContainedSeq * -CORBA::ContainedSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ContainedSeq * -CORBA::ContainedSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ContainedSeq_var::operator const ::CORBA::ContainedSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ContainedSeq_var::operator ::CORBA::ContainedSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ContainedSeq_var::operator ::CORBA::ContainedSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::ContainedSeq_var::operator ::CORBA::ContainedSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::Contained, CORBA::Contained_var> -CORBA::ContainedSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const ::CORBA::ContainedSeq & -CORBA::ContainedSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ContainedSeq & -CORBA::ContainedSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ContainedSeq *& -CORBA::ContainedSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::ContainedSeq * -CORBA::ContainedSeq_var::_retn (void) -{ - ::CORBA::ContainedSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::ContainedSeq * -CORBA::ContainedSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::ContainedSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::ContainedSeq_out::ContainedSeq_out (ContainedSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ContainedSeq_out::ContainedSeq_out (ContainedSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ContainedSeq_out::ContainedSeq_out (const ::CORBA::ContainedSeq_out &p) - : ptr_ (ACE_const_cast (ContainedSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::ContainedSeq_out & -CORBA::ContainedSeq_out::operator= (const ::CORBA::ContainedSeq_out &p) -{ - this->ptr_ = ACE_const_cast (ContainedSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::ContainedSeq_out & -CORBA::ContainedSeq_out::operator= (ContainedSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::ContainedSeq_out::operator ::CORBA::ContainedSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ContainedSeq *& -CORBA::ContainedSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ContainedSeq * -CORBA::ContainedSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::Contained, CORBA::Contained_var> -CORBA::ContainedSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 - -// ************************************************************* -// Inline operations for class CORBA::StructMember_var -// ************************************************************* - -ACE_INLINE -CORBA::StructMember_var::StructMember_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::StructMember_var::StructMember_var (StructMember *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::StructMember_var::StructMember_var (const ::CORBA::StructMember_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::StructMember (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::StructMember_var::~StructMember_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::StructMember_var & -CORBA::StructMember_var::operator= (StructMember *_tao_struct_var) -{ - delete this->ptr_; - this->ptr_ = _tao_struct_var; - return *this; -} - -ACE_INLINE -::CORBA::StructMember_var & -CORBA::StructMember_var::operator= (const ::CORBA::StructMember_var &_tao_struct_var) -{ - if (this != &_tao_struct_var) - { - if (_tao_struct_var.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - StructMember *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - StructMember (*_tao_struct_var.ptr_), - *this - ); - - if (deep_copy != 0) - { - StructMember *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE const ::CORBA::StructMember * -CORBA::StructMember_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::StructMember * -CORBA::StructMember_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::StructMember_var::operator const ::CORBA::StructMember &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::StructMember_var::operator ::CORBA::StructMember &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::StructMember_var::operator ::CORBA::StructMember &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::StructMember_var::operator ::CORBA::StructMember *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE const ::CORBA::StructMember & -CORBA::StructMember_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE ::CORBA::StructMember & -CORBA::StructMember_var::inout (void) -{ - return *this->ptr_; -} - -// Mapping for variable size. -ACE_INLINE ::CORBA::StructMember *& -CORBA::StructMember_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE ::CORBA::StructMember * -CORBA::StructMember_var::_retn (void) -{ - ::CORBA::StructMember *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE ::CORBA::StructMember * -CORBA::StructMember_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:523 - -// ************************************************************* -// Inline operations for class CORBA::StructMember_out -// ************************************************************* - -ACE_INLINE -CORBA::StructMember_out::StructMember_out (::CORBA::StructMember *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::StructMember_out::StructMember_out (StructMember_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::StructMember_out::StructMember_out (const ::CORBA::StructMember_out &p) - : ptr_ (ACE_const_cast (StructMember_out&, p).ptr_) -{} - -ACE_INLINE -CORBA::StructMember_out & -CORBA::StructMember_out::operator= (const ::CORBA::StructMember_out &p) -{ - this->ptr_ = ACE_const_cast (StructMember_out&, p).ptr_; - return *this; -} - -ACE_INLINE -CORBA::StructMember_out & -CORBA::StructMember_out::operator= (StructMember *_tao_struct_out) -{ - this->ptr_ = _tao_struct_out; - return *this; -} - -ACE_INLINE -CORBA::StructMember_out::operator ::CORBA::StructMember *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::StructMember *& -CORBA::StructMember_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::StructMember * -CORBA::StructMember_out::operator-> (void) -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ci.cpp:98 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_STRUCTMEMBERSEQ_CI_) -#define __TAO_UNBOUNDED_SEQUENCE_CORBA_STRUCTMEMBERSEQ_CI_ - -ACE_INLINE -CORBA::StructMember * -CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq::allocbuf (CORBA::ULong size) -{ - CORBA::StructMember *retval = 0; - ACE_NEW_RETURN (retval, CORBA::StructMember[size], 0); - return retval; -} - -ACE_INLINE -void CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq::freebuf (CORBA::StructMember *buffer) -{ - delete [] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_CORBA_StructMemberSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::StructMember *data, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, data, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq ( - const _TAO_Unbounded_Sequence_CORBA_StructMemberSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::StructMember *tmp1 = - _TAO_Unbounded_Sequence_CORBA_StructMemberSeq::allocbuf (this->maximum_); - CORBA::StructMember * const tmp2 = - ACE_reinterpret_cast (CORBA::StructMember * 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 -CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq & -CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq::operator= ( - const _TAO_Unbounded_Sequence_CORBA_StructMemberSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - if (this->maximum_ < rhs.maximum_) - { - // Free the old buffer. - CORBA::StructMember *tmp = - ACE_reinterpret_cast (CORBA::StructMember *, this->buffer_); - - _TAO_Unbounded_Sequence_CORBA_StructMemberSeq::freebuf (tmp); - - this->buffer_ = - _TAO_Unbounded_Sequence_CORBA_StructMemberSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Sequence_CORBA_StructMemberSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::StructMember *tmp1 = - ACE_reinterpret_cast (CORBA::StructMember *, this->buffer_); - CORBA::StructMember * const tmp2 = - ACE_reinterpret_cast (CORBA::StructMember * ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tmp1[i] = tmp2[i]; - } - - return *this; -} - -// = Accessors. -ACE_INLINE -CORBA::StructMember & -CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq::operator[] (CORBA::ULong i) -{ - ACE_ASSERT (i < this->maximum_); - CORBA::StructMember* tmp = - ACE_reinterpret_cast (CORBA::StructMember*, this->buffer_); - return tmp[i]; -} - -ACE_INLINE -const CORBA::StructMember & -CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq::operator[] (CORBA::ULong i) const -{ - ACE_ASSERT (i < this->maximum_); - CORBA::StructMember * const tmp = - ACE_reinterpret_cast (CORBA::StructMember* ACE_CAST_CONST, this->buffer_); - return tmp[i]; -} - -// Implement the TAO_Base_Sequence methods (see Sequence.h) - -ACE_INLINE -CORBA::StructMember * -CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::StructMember *result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Sequence_CORBA_StructMemberSeq::allocbuf (this->length_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::StructMember*, 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::StructMember*,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::StructMember * -CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::StructMember * ACE_CAST_CONST, this->buffer_); -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Sequence_CORBA_StructMemberSeq::replace ( - CORBA::ULong max, - CORBA::ULong length, - CORBA::StructMember *data, - CORBA::Boolean release - ) -{ - this->maximum_ = max; - this->length_ = length; - - if (this->buffer_ && this->release_ == 1) - { - CORBA::StructMember *tmp = - ACE_reinterpret_cast (CORBA::StructMember*, this->buffer_); - _TAO_Unbounded_Sequence_CORBA_StructMemberSeq::freebuf (tmp); - } - - this->buffer_ = data; - this->release_ = release; -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_STRUCTMEMBERSEQ_CI_) -#define _CORBA_STRUCTMEMBERSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::StructMemberSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::StructMemberSeq_var::StructMemberSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::StructMemberSeq_var::StructMemberSeq_var (StructMemberSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::StructMemberSeq_var::StructMemberSeq_var (const ::CORBA::StructMemberSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::StructMemberSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::StructMemberSeq_var::~StructMemberSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::StructMemberSeq_var & -CORBA::StructMemberSeq_var::operator= (StructMemberSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::StructMemberSeq_var & -CORBA::StructMemberSeq_var::operator= (const ::CORBA::StructMemberSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - StructMemberSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - StructMemberSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - StructMemberSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::StructMemberSeq * -CORBA::StructMemberSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::StructMemberSeq * -CORBA::StructMemberSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::StructMemberSeq_var::operator const ::CORBA::StructMemberSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::StructMemberSeq_var::operator ::CORBA::StructMemberSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::StructMemberSeq_var::operator ::CORBA::StructMemberSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::StructMemberSeq_var::operator ::CORBA::StructMemberSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::StructMember & -CORBA::StructMemberSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const CORBA::StructMember & -CORBA::StructMemberSeq_var::operator[] (CORBA::ULong index) const -{ - return ACE_const_cast (const CORBA::StructMember &, this->ptr_->operator[] (index)); -} - -ACE_INLINE -const ::CORBA::StructMemberSeq & -CORBA::StructMemberSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::StructMemberSeq & -CORBA::StructMemberSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::StructMemberSeq *& -CORBA::StructMemberSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::StructMemberSeq * -CORBA::StructMemberSeq_var::_retn (void) -{ - ::CORBA::StructMemberSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::StructMemberSeq * -CORBA::StructMemberSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::StructMemberSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::StructMemberSeq_out::StructMemberSeq_out (StructMemberSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::StructMemberSeq_out::StructMemberSeq_out (StructMemberSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::StructMemberSeq_out::StructMemberSeq_out (const ::CORBA::StructMemberSeq_out &p) - : ptr_ (ACE_const_cast (StructMemberSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::StructMemberSeq_out & -CORBA::StructMemberSeq_out::operator= (const ::CORBA::StructMemberSeq_out &p) -{ - this->ptr_ = ACE_const_cast (StructMemberSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::StructMemberSeq_out & -CORBA::StructMemberSeq_out::operator= (StructMemberSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::StructMemberSeq_out::operator ::CORBA::StructMemberSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::StructMemberSeq *& -CORBA::StructMemberSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::StructMemberSeq * -CORBA::StructMemberSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::StructMember & -CORBA::StructMemberSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 - -// ************************************************************* -// Inline operations for class CORBA::Initializer_var -// ************************************************************* - -ACE_INLINE -CORBA::Initializer_var::Initializer_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::Initializer_var::Initializer_var (Initializer *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::Initializer_var::Initializer_var (const ::CORBA::Initializer_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::Initializer (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::Initializer_var::~Initializer_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::Initializer_var & -CORBA::Initializer_var::operator= (Initializer *_tao_struct_var) -{ - delete this->ptr_; - this->ptr_ = _tao_struct_var; - return *this; -} - -ACE_INLINE -::CORBA::Initializer_var & -CORBA::Initializer_var::operator= (const ::CORBA::Initializer_var &_tao_struct_var) -{ - if (this != &_tao_struct_var) - { - if (_tao_struct_var.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - Initializer *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - Initializer (*_tao_struct_var.ptr_), - *this - ); - - if (deep_copy != 0) - { - Initializer *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE const ::CORBA::Initializer * -CORBA::Initializer_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::Initializer * -CORBA::Initializer_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::Initializer_var::operator const ::CORBA::Initializer &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::Initializer_var::operator ::CORBA::Initializer &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::Initializer_var::operator ::CORBA::Initializer &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::Initializer_var::operator ::CORBA::Initializer *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE const ::CORBA::Initializer & -CORBA::Initializer_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE ::CORBA::Initializer & -CORBA::Initializer_var::inout (void) -{ - return *this->ptr_; -} - -// Mapping for variable size. -ACE_INLINE ::CORBA::Initializer *& -CORBA::Initializer_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE ::CORBA::Initializer * -CORBA::Initializer_var::_retn (void) -{ - ::CORBA::Initializer *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE ::CORBA::Initializer * -CORBA::Initializer_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:523 - -// ************************************************************* -// Inline operations for class CORBA::Initializer_out -// ************************************************************* - -ACE_INLINE -CORBA::Initializer_out::Initializer_out (::CORBA::Initializer *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::Initializer_out::Initializer_out (Initializer_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::Initializer_out::Initializer_out (const ::CORBA::Initializer_out &p) - : ptr_ (ACE_const_cast (Initializer_out&, p).ptr_) -{} - -ACE_INLINE -CORBA::Initializer_out & -CORBA::Initializer_out::operator= (const ::CORBA::Initializer_out &p) -{ - this->ptr_ = ACE_const_cast (Initializer_out&, p).ptr_; - return *this; -} - -ACE_INLINE -CORBA::Initializer_out & -CORBA::Initializer_out::operator= (Initializer *_tao_struct_out) -{ - this->ptr_ = _tao_struct_out; - return *this; -} - -ACE_INLINE -CORBA::Initializer_out::operator ::CORBA::Initializer *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::Initializer *& -CORBA::Initializer_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::Initializer * -CORBA::Initializer_out::operator-> (void) -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ci.cpp:98 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_INITIALIZERSEQ_CI_) -#define __TAO_UNBOUNDED_SEQUENCE_CORBA_INITIALIZERSEQ_CI_ - -ACE_INLINE -CORBA::Initializer * -CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq::allocbuf (CORBA::ULong size) -{ - CORBA::Initializer *retval = 0; - ACE_NEW_RETURN (retval, CORBA::Initializer[size], 0); - return retval; -} - -ACE_INLINE -void CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq::freebuf (CORBA::Initializer *buffer) -{ - delete [] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq::_TAO_Unbounded_Sequence_CORBA_InitializerSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq::_TAO_Unbounded_Sequence_CORBA_InitializerSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_CORBA_InitializerSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq::_TAO_Unbounded_Sequence_CORBA_InitializerSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::Initializer *data, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, data, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq::_TAO_Unbounded_Sequence_CORBA_InitializerSeq ( - const _TAO_Unbounded_Sequence_CORBA_InitializerSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::Initializer *tmp1 = - _TAO_Unbounded_Sequence_CORBA_InitializerSeq::allocbuf (this->maximum_); - CORBA::Initializer * const tmp2 = - ACE_reinterpret_cast (CORBA::Initializer * 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 -CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq & -CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq::operator= ( - const _TAO_Unbounded_Sequence_CORBA_InitializerSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - if (this->maximum_ < rhs.maximum_) - { - // Free the old buffer. - CORBA::Initializer *tmp = - ACE_reinterpret_cast (CORBA::Initializer *, this->buffer_); - - _TAO_Unbounded_Sequence_CORBA_InitializerSeq::freebuf (tmp); - - this->buffer_ = - _TAO_Unbounded_Sequence_CORBA_InitializerSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Sequence_CORBA_InitializerSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::Initializer *tmp1 = - ACE_reinterpret_cast (CORBA::Initializer *, this->buffer_); - CORBA::Initializer * const tmp2 = - ACE_reinterpret_cast (CORBA::Initializer * ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tmp1[i] = tmp2[i]; - } - - return *this; -} - -// = Accessors. -ACE_INLINE -CORBA::Initializer & -CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq::operator[] (CORBA::ULong i) -{ - ACE_ASSERT (i < this->maximum_); - CORBA::Initializer* tmp = - ACE_reinterpret_cast (CORBA::Initializer*, this->buffer_); - return tmp[i]; -} - -ACE_INLINE -const CORBA::Initializer & -CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq::operator[] (CORBA::ULong i) const -{ - ACE_ASSERT (i < this->maximum_); - CORBA::Initializer * const tmp = - ACE_reinterpret_cast (CORBA::Initializer* ACE_CAST_CONST, this->buffer_); - return tmp[i]; -} - -// Implement the TAO_Base_Sequence methods (see Sequence.h) - -ACE_INLINE -CORBA::Initializer * -CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::Initializer *result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Sequence_CORBA_InitializerSeq::allocbuf (this->length_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::Initializer*, 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::Initializer*,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::Initializer * -CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::Initializer * ACE_CAST_CONST, this->buffer_); -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Sequence_CORBA_InitializerSeq::replace ( - CORBA::ULong max, - CORBA::ULong length, - CORBA::Initializer *data, - CORBA::Boolean release - ) -{ - this->maximum_ = max; - this->length_ = length; - - if (this->buffer_ && this->release_ == 1) - { - CORBA::Initializer *tmp = - ACE_reinterpret_cast (CORBA::Initializer*, this->buffer_); - _TAO_Unbounded_Sequence_CORBA_InitializerSeq::freebuf (tmp); - } - - this->buffer_ = data; - this->release_ = release; -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_INITIALIZERSEQ_CI_) -#define _CORBA_INITIALIZERSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::InitializerSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::InitializerSeq_var::InitializerSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::InitializerSeq_var::InitializerSeq_var (InitializerSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::InitializerSeq_var::InitializerSeq_var (const ::CORBA::InitializerSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::InitializerSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::InitializerSeq_var::~InitializerSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::InitializerSeq_var & -CORBA::InitializerSeq_var::operator= (InitializerSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::InitializerSeq_var & -CORBA::InitializerSeq_var::operator= (const ::CORBA::InitializerSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - InitializerSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - InitializerSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - InitializerSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::InitializerSeq * -CORBA::InitializerSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::InitializerSeq * -CORBA::InitializerSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::InitializerSeq_var::operator const ::CORBA::InitializerSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::InitializerSeq_var::operator ::CORBA::InitializerSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::InitializerSeq_var::operator ::CORBA::InitializerSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::InitializerSeq_var::operator ::CORBA::InitializerSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::Initializer & -CORBA::InitializerSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const CORBA::Initializer & -CORBA::InitializerSeq_var::operator[] (CORBA::ULong index) const -{ - return ACE_const_cast (const CORBA::Initializer &, this->ptr_->operator[] (index)); -} - -ACE_INLINE -const ::CORBA::InitializerSeq & -CORBA::InitializerSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::InitializerSeq & -CORBA::InitializerSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::InitializerSeq *& -CORBA::InitializerSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::InitializerSeq * -CORBA::InitializerSeq_var::_retn (void) -{ - ::CORBA::InitializerSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::InitializerSeq * -CORBA::InitializerSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::InitializerSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::InitializerSeq_out::InitializerSeq_out (InitializerSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::InitializerSeq_out::InitializerSeq_out (InitializerSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::InitializerSeq_out::InitializerSeq_out (const ::CORBA::InitializerSeq_out &p) - : ptr_ (ACE_const_cast (InitializerSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::InitializerSeq_out & -CORBA::InitializerSeq_out::operator= (const ::CORBA::InitializerSeq_out &p) -{ - this->ptr_ = ACE_const_cast (InitializerSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::InitializerSeq_out & -CORBA::InitializerSeq_out::operator= (InitializerSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::InitializerSeq_out::operator ::CORBA::InitializerSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::InitializerSeq *& -CORBA::InitializerSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::InitializerSeq * -CORBA::InitializerSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::Initializer & -CORBA::InitializerSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 - -// ************************************************************* -// Inline operations for class CORBA::ExceptionDescription_var -// ************************************************************* - -ACE_INLINE -CORBA::ExceptionDescription_var::ExceptionDescription_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::ExceptionDescription_var::ExceptionDescription_var (ExceptionDescription *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::ExceptionDescription_var::ExceptionDescription_var (const ::CORBA::ExceptionDescription_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::ExceptionDescription (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::ExceptionDescription_var::~ExceptionDescription_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::ExceptionDescription_var & -CORBA::ExceptionDescription_var::operator= (ExceptionDescription *_tao_struct_var) -{ - delete this->ptr_; - this->ptr_ = _tao_struct_var; - return *this; -} - -ACE_INLINE -::CORBA::ExceptionDescription_var & -CORBA::ExceptionDescription_var::operator= (const ::CORBA::ExceptionDescription_var &_tao_struct_var) -{ - if (this != &_tao_struct_var) - { - if (_tao_struct_var.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ExceptionDescription *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - ExceptionDescription (*_tao_struct_var.ptr_), - *this - ); - - if (deep_copy != 0) - { - ExceptionDescription *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE const ::CORBA::ExceptionDescription * -CORBA::ExceptionDescription_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::ExceptionDescription * -CORBA::ExceptionDescription_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ExceptionDescription_var::operator const ::CORBA::ExceptionDescription &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExceptionDescription_var::operator ::CORBA::ExceptionDescription &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExceptionDescription_var::operator ::CORBA::ExceptionDescription &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::ExceptionDescription_var::operator ::CORBA::ExceptionDescription *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE const ::CORBA::ExceptionDescription & -CORBA::ExceptionDescription_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE ::CORBA::ExceptionDescription & -CORBA::ExceptionDescription_var::inout (void) -{ - return *this->ptr_; -} - -// Mapping for variable size. -ACE_INLINE ::CORBA::ExceptionDescription *& -CORBA::ExceptionDescription_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE ::CORBA::ExceptionDescription * -CORBA::ExceptionDescription_var::_retn (void) -{ - ::CORBA::ExceptionDescription *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE ::CORBA::ExceptionDescription * -CORBA::ExceptionDescription_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:523 - -// ************************************************************* -// Inline operations for class CORBA::ExceptionDescription_out -// ************************************************************* - -ACE_INLINE -CORBA::ExceptionDescription_out::ExceptionDescription_out (::CORBA::ExceptionDescription *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExceptionDescription_out::ExceptionDescription_out (ExceptionDescription_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExceptionDescription_out::ExceptionDescription_out (const ::CORBA::ExceptionDescription_out &p) - : ptr_ (ACE_const_cast (ExceptionDescription_out&, p).ptr_) -{} - -ACE_INLINE -CORBA::ExceptionDescription_out & -CORBA::ExceptionDescription_out::operator= (const ::CORBA::ExceptionDescription_out &p) -{ - this->ptr_ = ACE_const_cast (ExceptionDescription_out&, p).ptr_; - return *this; -} - -ACE_INLINE -CORBA::ExceptionDescription_out & -CORBA::ExceptionDescription_out::operator= (ExceptionDescription *_tao_struct_out) -{ - this->ptr_ = _tao_struct_out; - return *this; -} - -ACE_INLINE -CORBA::ExceptionDescription_out::operator ::CORBA::ExceptionDescription *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::ExceptionDescription *& -CORBA::ExceptionDescription_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::ExceptionDescription * -CORBA::ExceptionDescription_out::operator-> (void) -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ci.cpp:98 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_EXCDESCRIPTIONSEQ_CI_) -#define __TAO_UNBOUNDED_SEQUENCE_CORBA_EXCDESCRIPTIONSEQ_CI_ - -ACE_INLINE -CORBA::ExceptionDescription * -CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::allocbuf (CORBA::ULong size) -{ - CORBA::ExceptionDescription *retval = 0; - ACE_NEW_RETURN (retval, CORBA::ExceptionDescription[size], 0); - return retval; -} - -ACE_INLINE -void CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::freebuf (CORBA::ExceptionDescription *buffer) -{ - delete [] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::ExceptionDescription *data, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, data, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq ( - const _TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::ExceptionDescription *tmp1 = - _TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::allocbuf (this->maximum_); - CORBA::ExceptionDescription * const tmp2 = - ACE_reinterpret_cast (CORBA::ExceptionDescription * 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 -CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq & -CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::operator= ( - const _TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - if (this->maximum_ < rhs.maximum_) - { - // Free the old buffer. - CORBA::ExceptionDescription *tmp = - ACE_reinterpret_cast (CORBA::ExceptionDescription *, this->buffer_); - - _TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::freebuf (tmp); - - this->buffer_ = - _TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::ExceptionDescription *tmp1 = - ACE_reinterpret_cast (CORBA::ExceptionDescription *, this->buffer_); - CORBA::ExceptionDescription * const tmp2 = - ACE_reinterpret_cast (CORBA::ExceptionDescription * ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tmp1[i] = tmp2[i]; - } - - return *this; -} - -// = Accessors. -ACE_INLINE -CORBA::ExceptionDescription & -CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::operator[] (CORBA::ULong i) -{ - ACE_ASSERT (i < this->maximum_); - CORBA::ExceptionDescription* tmp = - ACE_reinterpret_cast (CORBA::ExceptionDescription*, this->buffer_); - return tmp[i]; -} - -ACE_INLINE -const CORBA::ExceptionDescription & -CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::operator[] (CORBA::ULong i) const -{ - ACE_ASSERT (i < this->maximum_); - CORBA::ExceptionDescription * const tmp = - ACE_reinterpret_cast (CORBA::ExceptionDescription* ACE_CAST_CONST, this->buffer_); - return tmp[i]; -} - -// Implement the TAO_Base_Sequence methods (see Sequence.h) - -ACE_INLINE -CORBA::ExceptionDescription * -CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::ExceptionDescription *result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::allocbuf (this->length_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::ExceptionDescription*, 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::ExceptionDescription*,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::ExceptionDescription * -CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::ExceptionDescription * ACE_CAST_CONST, this->buffer_); -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::replace ( - CORBA::ULong max, - CORBA::ULong length, - CORBA::ExceptionDescription *data, - CORBA::Boolean release - ) -{ - this->maximum_ = max; - this->length_ = length; - - if (this->buffer_ && this->release_ == 1) - { - CORBA::ExceptionDescription *tmp = - ACE_reinterpret_cast (CORBA::ExceptionDescription*, this->buffer_); - _TAO_Unbounded_Sequence_CORBA_ExcDescriptionSeq::freebuf (tmp); - } - - this->buffer_ = data; - this->release_ = release; -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_EXCDESCRIPTIONSEQ_CI_) -#define _CORBA_EXCDESCRIPTIONSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::ExcDescriptionSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::ExcDescriptionSeq_var::ExcDescriptionSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::ExcDescriptionSeq_var::ExcDescriptionSeq_var (ExcDescriptionSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::ExcDescriptionSeq_var::ExcDescriptionSeq_var (const ::CORBA::ExcDescriptionSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::ExcDescriptionSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::ExcDescriptionSeq_var::~ExcDescriptionSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::ExcDescriptionSeq_var & -CORBA::ExcDescriptionSeq_var::operator= (ExcDescriptionSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::ExcDescriptionSeq_var & -CORBA::ExcDescriptionSeq_var::operator= (const ::CORBA::ExcDescriptionSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ExcDescriptionSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - ExcDescriptionSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - ExcDescriptionSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::ExcDescriptionSeq * -CORBA::ExcDescriptionSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExcDescriptionSeq * -CORBA::ExcDescriptionSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ExcDescriptionSeq_var::operator const ::CORBA::ExcDescriptionSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExcDescriptionSeq_var::operator ::CORBA::ExcDescriptionSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExcDescriptionSeq_var::operator ::CORBA::ExcDescriptionSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::ExcDescriptionSeq_var::operator ::CORBA::ExcDescriptionSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ExceptionDescription & -CORBA::ExcDescriptionSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const CORBA::ExceptionDescription & -CORBA::ExcDescriptionSeq_var::operator[] (CORBA::ULong index) const -{ - return ACE_const_cast (const CORBA::ExceptionDescription &, this->ptr_->operator[] (index)); -} - -ACE_INLINE -const ::CORBA::ExcDescriptionSeq & -CORBA::ExcDescriptionSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ExcDescriptionSeq & -CORBA::ExcDescriptionSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ExcDescriptionSeq *& -CORBA::ExcDescriptionSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExcDescriptionSeq * -CORBA::ExcDescriptionSeq_var::_retn (void) -{ - ::CORBA::ExcDescriptionSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::ExcDescriptionSeq * -CORBA::ExcDescriptionSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::ExcDescriptionSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::ExcDescriptionSeq_out::ExcDescriptionSeq_out (ExcDescriptionSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExcDescriptionSeq_out::ExcDescriptionSeq_out (ExcDescriptionSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExcDescriptionSeq_out::ExcDescriptionSeq_out (const ::CORBA::ExcDescriptionSeq_out &p) - : ptr_ (ACE_const_cast (ExcDescriptionSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::ExcDescriptionSeq_out & -CORBA::ExcDescriptionSeq_out::operator= (const ::CORBA::ExcDescriptionSeq_out &p) -{ - this->ptr_ = ACE_const_cast (ExcDescriptionSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::ExcDescriptionSeq_out & -CORBA::ExcDescriptionSeq_out::operator= (ExcDescriptionSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::ExcDescriptionSeq_out::operator ::CORBA::ExcDescriptionSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExcDescriptionSeq *& -CORBA::ExcDescriptionSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExcDescriptionSeq * -CORBA::ExcDescriptionSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ExceptionDescription & -CORBA::ExcDescriptionSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 - -// ************************************************************* -// Inline operations for class CORBA::ExtInitializer_var -// ************************************************************* - -ACE_INLINE -CORBA::ExtInitializer_var::ExtInitializer_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::ExtInitializer_var::ExtInitializer_var (ExtInitializer *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::ExtInitializer_var::ExtInitializer_var (const ::CORBA::ExtInitializer_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::ExtInitializer (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::ExtInitializer_var::~ExtInitializer_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::ExtInitializer_var & -CORBA::ExtInitializer_var::operator= (ExtInitializer *_tao_struct_var) -{ - delete this->ptr_; - this->ptr_ = _tao_struct_var; - return *this; -} - -ACE_INLINE -::CORBA::ExtInitializer_var & -CORBA::ExtInitializer_var::operator= (const ::CORBA::ExtInitializer_var &_tao_struct_var) -{ - if (this != &_tao_struct_var) - { - if (_tao_struct_var.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ExtInitializer *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - ExtInitializer (*_tao_struct_var.ptr_), - *this - ); - - if (deep_copy != 0) - { - ExtInitializer *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE const ::CORBA::ExtInitializer * -CORBA::ExtInitializer_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::ExtInitializer * -CORBA::ExtInitializer_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ExtInitializer_var::operator const ::CORBA::ExtInitializer &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExtInitializer_var::operator ::CORBA::ExtInitializer &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExtInitializer_var::operator ::CORBA::ExtInitializer &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::ExtInitializer_var::operator ::CORBA::ExtInitializer *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE const ::CORBA::ExtInitializer & -CORBA::ExtInitializer_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE ::CORBA::ExtInitializer & -CORBA::ExtInitializer_var::inout (void) -{ - return *this->ptr_; -} - -// Mapping for variable size. -ACE_INLINE ::CORBA::ExtInitializer *& -CORBA::ExtInitializer_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE ::CORBA::ExtInitializer * -CORBA::ExtInitializer_var::_retn (void) -{ - ::CORBA::ExtInitializer *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE ::CORBA::ExtInitializer * -CORBA::ExtInitializer_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:523 - -// ************************************************************* -// Inline operations for class CORBA::ExtInitializer_out -// ************************************************************* - -ACE_INLINE -CORBA::ExtInitializer_out::ExtInitializer_out (::CORBA::ExtInitializer *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExtInitializer_out::ExtInitializer_out (ExtInitializer_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExtInitializer_out::ExtInitializer_out (const ::CORBA::ExtInitializer_out &p) - : ptr_ (ACE_const_cast (ExtInitializer_out&, p).ptr_) -{} - -ACE_INLINE -CORBA::ExtInitializer_out & -CORBA::ExtInitializer_out::operator= (const ::CORBA::ExtInitializer_out &p) -{ - this->ptr_ = ACE_const_cast (ExtInitializer_out&, p).ptr_; - return *this; -} - -ACE_INLINE -CORBA::ExtInitializer_out & -CORBA::ExtInitializer_out::operator= (ExtInitializer *_tao_struct_out) -{ - this->ptr_ = _tao_struct_out; - return *this; -} - -ACE_INLINE -CORBA::ExtInitializer_out::operator ::CORBA::ExtInitializer *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::ExtInitializer *& -CORBA::ExtInitializer_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::ExtInitializer * -CORBA::ExtInitializer_out::operator-> (void) -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ci.cpp:98 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_EXTINITIALIZERSEQ_CI_) -#define __TAO_UNBOUNDED_SEQUENCE_CORBA_EXTINITIALIZERSEQ_CI_ - -ACE_INLINE -CORBA::ExtInitializer * -CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::allocbuf (CORBA::ULong size) -{ - CORBA::ExtInitializer *retval = 0; - ACE_NEW_RETURN (retval, CORBA::ExtInitializer[size], 0); - return retval; -} - -ACE_INLINE -void CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::freebuf (CORBA::ExtInitializer *buffer) -{ - delete [] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::ExtInitializer *data, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, data, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq ( - const _TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::ExtInitializer *tmp1 = - _TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::allocbuf (this->maximum_); - CORBA::ExtInitializer * const tmp2 = - ACE_reinterpret_cast (CORBA::ExtInitializer * 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 -CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq & -CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::operator= ( - const _TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - if (this->maximum_ < rhs.maximum_) - { - // Free the old buffer. - CORBA::ExtInitializer *tmp = - ACE_reinterpret_cast (CORBA::ExtInitializer *, this->buffer_); - - _TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::freebuf (tmp); - - this->buffer_ = - _TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::ExtInitializer *tmp1 = - ACE_reinterpret_cast (CORBA::ExtInitializer *, this->buffer_); - CORBA::ExtInitializer * const tmp2 = - ACE_reinterpret_cast (CORBA::ExtInitializer * ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tmp1[i] = tmp2[i]; - } - - return *this; -} - -// = Accessors. -ACE_INLINE -CORBA::ExtInitializer & -CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::operator[] (CORBA::ULong i) -{ - ACE_ASSERT (i < this->maximum_); - CORBA::ExtInitializer* tmp = - ACE_reinterpret_cast (CORBA::ExtInitializer*, this->buffer_); - return tmp[i]; -} - -ACE_INLINE -const CORBA::ExtInitializer & -CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::operator[] (CORBA::ULong i) const -{ - ACE_ASSERT (i < this->maximum_); - CORBA::ExtInitializer * const tmp = - ACE_reinterpret_cast (CORBA::ExtInitializer* ACE_CAST_CONST, this->buffer_); - return tmp[i]; -} - -// Implement the TAO_Base_Sequence methods (see Sequence.h) - -ACE_INLINE -CORBA::ExtInitializer * -CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::ExtInitializer *result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::allocbuf (this->length_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::ExtInitializer*, 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::ExtInitializer*,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::ExtInitializer * -CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::ExtInitializer * ACE_CAST_CONST, this->buffer_); -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::replace ( - CORBA::ULong max, - CORBA::ULong length, - CORBA::ExtInitializer *data, - CORBA::Boolean release - ) -{ - this->maximum_ = max; - this->length_ = length; - - if (this->buffer_ && this->release_ == 1) - { - CORBA::ExtInitializer *tmp = - ACE_reinterpret_cast (CORBA::ExtInitializer*, this->buffer_); - _TAO_Unbounded_Sequence_CORBA_ExtInitializerSeq::freebuf (tmp); - } - - this->buffer_ = data; - this->release_ = release; -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_EXTINITIALIZERSEQ_CI_) -#define _CORBA_EXTINITIALIZERSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::ExtInitializerSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::ExtInitializerSeq_var::ExtInitializerSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::ExtInitializerSeq_var::ExtInitializerSeq_var (ExtInitializerSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::ExtInitializerSeq_var::ExtInitializerSeq_var (const ::CORBA::ExtInitializerSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::ExtInitializerSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::ExtInitializerSeq_var::~ExtInitializerSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::ExtInitializerSeq_var & -CORBA::ExtInitializerSeq_var::operator= (ExtInitializerSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::ExtInitializerSeq_var & -CORBA::ExtInitializerSeq_var::operator= (const ::CORBA::ExtInitializerSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ExtInitializerSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - ExtInitializerSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - ExtInitializerSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::ExtInitializerSeq * -CORBA::ExtInitializerSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtInitializerSeq * -CORBA::ExtInitializerSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ExtInitializerSeq_var::operator const ::CORBA::ExtInitializerSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExtInitializerSeq_var::operator ::CORBA::ExtInitializerSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::ExtInitializerSeq_var::operator ::CORBA::ExtInitializerSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::ExtInitializerSeq_var::operator ::CORBA::ExtInitializerSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ExtInitializer & -CORBA::ExtInitializerSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const CORBA::ExtInitializer & -CORBA::ExtInitializerSeq_var::operator[] (CORBA::ULong index) const -{ - return ACE_const_cast (const CORBA::ExtInitializer &, this->ptr_->operator[] (index)); -} - -ACE_INLINE -const ::CORBA::ExtInitializerSeq & -CORBA::ExtInitializerSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ExtInitializerSeq & -CORBA::ExtInitializerSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::ExtInitializerSeq *& -CORBA::ExtInitializerSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtInitializerSeq * -CORBA::ExtInitializerSeq_var::_retn (void) -{ - ::CORBA::ExtInitializerSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::ExtInitializerSeq * -CORBA::ExtInitializerSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::ExtInitializerSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::ExtInitializerSeq_out::ExtInitializerSeq_out (ExtInitializerSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExtInitializerSeq_out::ExtInitializerSeq_out (ExtInitializerSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::ExtInitializerSeq_out::ExtInitializerSeq_out (const ::CORBA::ExtInitializerSeq_out &p) - : ptr_ (ACE_const_cast (ExtInitializerSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::ExtInitializerSeq_out & -CORBA::ExtInitializerSeq_out::operator= (const ::CORBA::ExtInitializerSeq_out &p) -{ - this->ptr_ = ACE_const_cast (ExtInitializerSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::ExtInitializerSeq_out & -CORBA::ExtInitializerSeq_out::operator= (ExtInitializerSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::ExtInitializerSeq_out::operator ::CORBA::ExtInitializerSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtInitializerSeq *& -CORBA::ExtInitializerSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::ExtInitializerSeq * -CORBA::ExtInitializerSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::ExtInitializer & -CORBA::ExtInitializerSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 - -// ************************************************************* -// Inline operations for class CORBA::UnionMember_var -// ************************************************************* - -ACE_INLINE -CORBA::UnionMember_var::UnionMember_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::UnionMember_var::UnionMember_var (UnionMember *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::UnionMember_var::UnionMember_var (const ::CORBA::UnionMember_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::UnionMember (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::UnionMember_var::~UnionMember_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::UnionMember_var & -CORBA::UnionMember_var::operator= (UnionMember *_tao_struct_var) -{ - delete this->ptr_; - this->ptr_ = _tao_struct_var; - return *this; -} - -ACE_INLINE -::CORBA::UnionMember_var & -CORBA::UnionMember_var::operator= (const ::CORBA::UnionMember_var &_tao_struct_var) -{ - if (this != &_tao_struct_var) - { - if (_tao_struct_var.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - UnionMember *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - UnionMember (*_tao_struct_var.ptr_), - *this - ); - - if (deep_copy != 0) - { - UnionMember *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE const ::CORBA::UnionMember * -CORBA::UnionMember_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::UnionMember * -CORBA::UnionMember_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::UnionMember_var::operator const ::CORBA::UnionMember &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::UnionMember_var::operator ::CORBA::UnionMember &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::UnionMember_var::operator ::CORBA::UnionMember &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::UnionMember_var::operator ::CORBA::UnionMember *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE const ::CORBA::UnionMember & -CORBA::UnionMember_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE ::CORBA::UnionMember & -CORBA::UnionMember_var::inout (void) -{ - return *this->ptr_; -} - -// Mapping for variable size. -ACE_INLINE ::CORBA::UnionMember *& -CORBA::UnionMember_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE ::CORBA::UnionMember * -CORBA::UnionMember_var::_retn (void) -{ - ::CORBA::UnionMember *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE ::CORBA::UnionMember * -CORBA::UnionMember_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:523 - -// ************************************************************* -// Inline operations for class CORBA::UnionMember_out -// ************************************************************* - -ACE_INLINE -CORBA::UnionMember_out::UnionMember_out (::CORBA::UnionMember *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::UnionMember_out::UnionMember_out (UnionMember_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::UnionMember_out::UnionMember_out (const ::CORBA::UnionMember_out &p) - : ptr_ (ACE_const_cast (UnionMember_out&, p).ptr_) -{} - -ACE_INLINE -CORBA::UnionMember_out & -CORBA::UnionMember_out::operator= (const ::CORBA::UnionMember_out &p) -{ - this->ptr_ = ACE_const_cast (UnionMember_out&, p).ptr_; - return *this; -} - -ACE_INLINE -CORBA::UnionMember_out & -CORBA::UnionMember_out::operator= (UnionMember *_tao_struct_out) -{ - this->ptr_ = _tao_struct_out; - return *this; -} - -ACE_INLINE -CORBA::UnionMember_out::operator ::CORBA::UnionMember *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::UnionMember *& -CORBA::UnionMember_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::UnionMember * -CORBA::UnionMember_out::operator-> (void) -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ci.cpp:98 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_UNIONMEMBERSEQ_CI_) -#define __TAO_UNBOUNDED_SEQUENCE_CORBA_UNIONMEMBERSEQ_CI_ - -ACE_INLINE -CORBA::UnionMember * -CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::allocbuf (CORBA::ULong size) -{ - CORBA::UnionMember *retval = 0; - ACE_NEW_RETURN (retval, CORBA::UnionMember[size], 0); - return retval; -} - -ACE_INLINE -void CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::freebuf (CORBA::UnionMember *buffer) -{ - delete [] buffer; -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq (void) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::UnionMember *data, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, data, release) -{ -} - -ACE_INLINE -CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq ( - const _TAO_Unbounded_Sequence_CORBA_UnionMemberSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::UnionMember *tmp1 = - _TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::allocbuf (this->maximum_); - CORBA::UnionMember * const tmp2 = - ACE_reinterpret_cast (CORBA::UnionMember * 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 -CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq & -CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::operator= ( - const _TAO_Unbounded_Sequence_CORBA_UnionMemberSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - if (this->maximum_ < rhs.maximum_) - { - // Free the old buffer. - CORBA::UnionMember *tmp = - ACE_reinterpret_cast (CORBA::UnionMember *, this->buffer_); - - _TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::freebuf (tmp); - - this->buffer_ = - _TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::UnionMember *tmp1 = - ACE_reinterpret_cast (CORBA::UnionMember *, this->buffer_); - CORBA::UnionMember * const tmp2 = - ACE_reinterpret_cast (CORBA::UnionMember * ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tmp1[i] = tmp2[i]; - } - - return *this; -} - -// = Accessors. -ACE_INLINE -CORBA::UnionMember & -CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::operator[] (CORBA::ULong i) -{ - ACE_ASSERT (i < this->maximum_); - CORBA::UnionMember* tmp = - ACE_reinterpret_cast (CORBA::UnionMember*, this->buffer_); - return tmp[i]; -} - -ACE_INLINE -const CORBA::UnionMember & -CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::operator[] (CORBA::ULong i) const -{ - ACE_ASSERT (i < this->maximum_); - CORBA::UnionMember * const tmp = - ACE_reinterpret_cast (CORBA::UnionMember* ACE_CAST_CONST, this->buffer_); - return tmp[i]; -} - -// Implement the TAO_Base_Sequence methods (see Sequence.h) - -ACE_INLINE -CORBA::UnionMember * -CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::UnionMember *result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::allocbuf (this->length_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::UnionMember*, 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::UnionMember*,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::UnionMember * -CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::UnionMember * ACE_CAST_CONST, this->buffer_); -} - -ACE_INLINE -void -CORBA::_TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::replace ( - CORBA::ULong max, - CORBA::ULong length, - CORBA::UnionMember *data, - CORBA::Boolean release - ) -{ - this->maximum_ = max; - this->length_ = length; - - if (this->buffer_ && this->release_ == 1) - { - CORBA::UnionMember *tmp = - ACE_reinterpret_cast (CORBA::UnionMember*, this->buffer_); - _TAO_Unbounded_Sequence_CORBA_UnionMemberSeq::freebuf (tmp); - } - - this->buffer_ = data; - this->release_ = release; -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_UNIONMEMBERSEQ_CI_) -#define _CORBA_UNIONMEMBERSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::UnionMemberSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::UnionMemberSeq_var::UnionMemberSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::UnionMemberSeq_var::UnionMemberSeq_var (UnionMemberSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::UnionMemberSeq_var::UnionMemberSeq_var (const ::CORBA::UnionMemberSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::UnionMemberSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::UnionMemberSeq_var::~UnionMemberSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::UnionMemberSeq_var & -CORBA::UnionMemberSeq_var::operator= (UnionMemberSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::UnionMemberSeq_var & -CORBA::UnionMemberSeq_var::operator= (const ::CORBA::UnionMemberSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - UnionMemberSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - UnionMemberSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - UnionMemberSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::UnionMemberSeq * -CORBA::UnionMemberSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::UnionMemberSeq * -CORBA::UnionMemberSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::UnionMemberSeq_var::operator const ::CORBA::UnionMemberSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::UnionMemberSeq_var::operator ::CORBA::UnionMemberSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::UnionMemberSeq_var::operator ::CORBA::UnionMemberSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::UnionMemberSeq_var::operator ::CORBA::UnionMemberSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::UnionMember & -CORBA::UnionMemberSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const CORBA::UnionMember & -CORBA::UnionMemberSeq_var::operator[] (CORBA::ULong index) const -{ - return ACE_const_cast (const CORBA::UnionMember &, this->ptr_->operator[] (index)); -} - -ACE_INLINE -const ::CORBA::UnionMemberSeq & -CORBA::UnionMemberSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::UnionMemberSeq & -CORBA::UnionMemberSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::UnionMemberSeq *& -CORBA::UnionMemberSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::UnionMemberSeq * -CORBA::UnionMemberSeq_var::_retn (void) -{ - ::CORBA::UnionMemberSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::UnionMemberSeq * -CORBA::UnionMemberSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::UnionMemberSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::UnionMemberSeq_out::UnionMemberSeq_out (UnionMemberSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::UnionMemberSeq_out::UnionMemberSeq_out (UnionMemberSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::UnionMemberSeq_out::UnionMemberSeq_out (const ::CORBA::UnionMemberSeq_out &p) - : ptr_ (ACE_const_cast (UnionMemberSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::UnionMemberSeq_out & -CORBA::UnionMemberSeq_out::operator= (const ::CORBA::UnionMemberSeq_out &p) -{ - this->ptr_ = ACE_const_cast (UnionMemberSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::UnionMemberSeq_out & -CORBA::UnionMemberSeq_out::operator= (UnionMemberSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::UnionMemberSeq_out::operator ::CORBA::UnionMemberSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::UnionMemberSeq *& -CORBA::UnionMemberSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::UnionMemberSeq * -CORBA::UnionMemberSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::UnionMember & -CORBA::UnionMemberSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -#if !defined (_CORBA_ENUMMEMBERSEQ_CI_) -#define _CORBA_ENUMMEMBERSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::EnumMemberSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::EnumMemberSeq_var::EnumMemberSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::EnumMemberSeq_var::EnumMemberSeq_var (EnumMemberSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::EnumMemberSeq_var::EnumMemberSeq_var (const ::CORBA::EnumMemberSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::EnumMemberSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::EnumMemberSeq_var::~EnumMemberSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::EnumMemberSeq_var & -CORBA::EnumMemberSeq_var::operator= (EnumMemberSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::EnumMemberSeq_var & -CORBA::EnumMemberSeq_var::operator= (const ::CORBA::EnumMemberSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - EnumMemberSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - EnumMemberSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - EnumMemberSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::EnumMemberSeq * -CORBA::EnumMemberSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::EnumMemberSeq * -CORBA::EnumMemberSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::EnumMemberSeq_var::operator const ::CORBA::EnumMemberSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::EnumMemberSeq_var::operator ::CORBA::EnumMemberSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::EnumMemberSeq_var::operator ::CORBA::EnumMemberSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::EnumMemberSeq_var::operator ::CORBA::EnumMemberSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -TAO_SeqElem_String_Manager -CORBA::EnumMemberSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const ::CORBA::EnumMemberSeq & -CORBA::EnumMemberSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::EnumMemberSeq & -CORBA::EnumMemberSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::EnumMemberSeq *& -CORBA::EnumMemberSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::EnumMemberSeq * -CORBA::EnumMemberSeq_var::_retn (void) -{ - ::CORBA::EnumMemberSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::EnumMemberSeq * -CORBA::EnumMemberSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::EnumMemberSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::EnumMemberSeq_out::EnumMemberSeq_out (EnumMemberSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::EnumMemberSeq_out::EnumMemberSeq_out (EnumMemberSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::EnumMemberSeq_out::EnumMemberSeq_out (const ::CORBA::EnumMemberSeq_out &p) - : ptr_ (ACE_const_cast (EnumMemberSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::EnumMemberSeq_out & -CORBA::EnumMemberSeq_out::operator= (const ::CORBA::EnumMemberSeq_out &p) -{ - this->ptr_ = ACE_const_cast (EnumMemberSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::EnumMemberSeq_out & -CORBA::EnumMemberSeq_out::operator= (EnumMemberSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::EnumMemberSeq_out::operator ::CORBA::EnumMemberSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::EnumMemberSeq *& -CORBA::EnumMemberSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::EnumMemberSeq * -CORBA::EnumMemberSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -TAO_SeqElem_String_Manager -CORBA::EnumMemberSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 - -// ************************************************************* -// Inline operations for class CORBA::Container::Description_var -// ************************************************************* - -ACE_INLINE -CORBA::Container::Description_var::Description_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::Container::Description_var::Description_var (Description *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::Container::Description_var::Description_var (const ::CORBA::Container::Description_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::Container::Description (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::Container::Description_var::~Description_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::Container::Description_var & -CORBA::Container::Description_var::operator= (Description *_tao_struct_var) -{ - delete this->ptr_; - this->ptr_ = _tao_struct_var; - return *this; -} - -ACE_INLINE -::CORBA::Container::Description_var & -CORBA::Container::Description_var::operator= (const ::CORBA::Container::Description_var &_tao_struct_var) -{ - if (this != &_tao_struct_var) - { - if (_tao_struct_var.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - Description *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - Description (*_tao_struct_var.ptr_), - *this - ); - - if (deep_copy != 0) - { - Description *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE const ::CORBA::Container::Description * -CORBA::Container::Description_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::Container::Description * -CORBA::Container::Description_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::Container::Description_var::operator const ::CORBA::Container::Description &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::Container::Description_var::operator ::CORBA::Container::Description &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::Container::Description_var::operator ::CORBA::Container::Description &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::Container::Description_var::operator ::CORBA::Container::Description *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE const ::CORBA::Container::Description & -CORBA::Container::Description_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE ::CORBA::Container::Description & -CORBA::Container::Description_var::inout (void) -{ - return *this->ptr_; -} - -// Mapping for variable size. -ACE_INLINE ::CORBA::Container::Description *& -CORBA::Container::Description_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE ::CORBA::Container::Description * -CORBA::Container::Description_var::_retn (void) -{ - ::CORBA::Container::Description *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE ::CORBA::Container::Description * -CORBA::Container::Description_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:523 - -// ************************************************************* -// Inline operations for class CORBA::Container::Description_out -// ************************************************************* - -ACE_INLINE -CORBA::Container::Description_out::Description_out (::CORBA::Container::Description *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::Container::Description_out::Description_out (Description_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::Container::Description_out::Description_out (const ::CORBA::Container::Description_out &p) - : ptr_ (ACE_const_cast (Description_out&, p).ptr_) -{} - -ACE_INLINE -CORBA::Container::Description_out & -CORBA::Container::Description_out::operator= (const ::CORBA::Container::Description_out &p) -{ - this->ptr_ = ACE_const_cast (Description_out&, p).ptr_; - return *this; -} - -ACE_INLINE -CORBA::Container::Description_out & -CORBA::Container::Description_out::operator= (Description *_tao_struct_out) -{ - this->ptr_ = _tao_struct_out; - return *this; -} - -ACE_INLINE -CORBA::Container::Description_out::operator ::CORBA::Container::Description *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::Container::Description *& -CORBA::Container::Description_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::Container::Description * -CORBA::Container::Description_out::operator-> (void) -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ci.cpp:98 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_CONTAINER_DESCRIPTIONSEQ_CI_) -#define __TAO_UNBOUNDED_SEQUENCE_CORBA_CONTAINER_DESCRIPTIONSEQ_CI_ - -ACE_INLINE -CORBA::Container::Description * -CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::allocbuf (CORBA::ULong size) -{ - CORBA::Container::Description *retval = 0; - ACE_NEW_RETURN (retval, CORBA::Container::Description[size], 0); - return retval; -} - -ACE_INLINE -void CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::freebuf (CORBA::Container::Description *buffer) -{ - delete [] buffer; -} - -ACE_INLINE -CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq (void) -{ -} - -ACE_INLINE -CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::allocbuf (maximum)) -{ -} - -ACE_INLINE -CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::Container::Description *data, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, data, release) -{ -} - -ACE_INLINE -CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq ( - const _TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::Container::Description *tmp1 = - _TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::allocbuf (this->maximum_); - CORBA::Container::Description * const tmp2 = - ACE_reinterpret_cast (CORBA::Container::Description * 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 -CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq & -CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::operator= ( - const _TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - if (this->maximum_ < rhs.maximum_) - { - // Free the old buffer. - CORBA::Container::Description *tmp = - ACE_reinterpret_cast (CORBA::Container::Description *, this->buffer_); - - _TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::freebuf (tmp); - - this->buffer_ = - _TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::Container::Description *tmp1 = - ACE_reinterpret_cast (CORBA::Container::Description *, this->buffer_); - CORBA::Container::Description * const tmp2 = - ACE_reinterpret_cast (CORBA::Container::Description * ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tmp1[i] = tmp2[i]; - } - - return *this; -} - -// = Accessors. -ACE_INLINE -CORBA::Container::Description & -CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::operator[] (CORBA::ULong i) -{ - ACE_ASSERT (i < this->maximum_); - CORBA::Container::Description* tmp = - ACE_reinterpret_cast (CORBA::Container::Description*, this->buffer_); - return tmp[i]; -} - -ACE_INLINE -const CORBA::Container::Description & -CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::operator[] (CORBA::ULong i) const -{ - ACE_ASSERT (i < this->maximum_); - CORBA::Container::Description * const tmp = - ACE_reinterpret_cast (CORBA::Container::Description* ACE_CAST_CONST, this->buffer_); - return tmp[i]; -} - -// Implement the TAO_Base_Sequence methods (see Sequence.h) - -ACE_INLINE -CORBA::Container::Description * -CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::get_buffer (CORBA::Boolean orphan) -{ - CORBA::Container::Description *result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::allocbuf (this->length_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::Container::Description*, 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::Container::Description*,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::Container::Description * -CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::Container::Description * ACE_CAST_CONST, this->buffer_); -} - -ACE_INLINE -void -CORBA::Container::_TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::replace ( - CORBA::ULong max, - CORBA::ULong length, - CORBA::Container::Description *data, - CORBA::Boolean release - ) -{ - this->maximum_ = max; - this->length_ = length; - - if (this->buffer_ && this->release_ == 1) - { - CORBA::Container::Description *tmp = - ACE_reinterpret_cast (CORBA::Container::Description*, this->buffer_); - _TAO_Unbounded_Sequence_CORBA_Container_DescriptionSeq::freebuf (tmp); - } - - this->buffer_ = data; - this->release_ = release; -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_CONTAINER_DESCRIPTIONSEQ_CI_) -#define _CORBA_CONTAINER_DESCRIPTIONSEQ_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::Container::DescriptionSeq_var -// ************************************************************* - -ACE_INLINE -CORBA::Container::DescriptionSeq_var::DescriptionSeq_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::Container::DescriptionSeq_var::DescriptionSeq_var (DescriptionSeq *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::Container::DescriptionSeq_var::DescriptionSeq_var (const ::CORBA::Container::DescriptionSeq_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::Container::DescriptionSeq (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::Container::DescriptionSeq_var::~DescriptionSeq_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::Container::DescriptionSeq_var & -CORBA::Container::DescriptionSeq_var::operator= (DescriptionSeq *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::Container::DescriptionSeq_var & -CORBA::Container::DescriptionSeq_var::operator= (const ::CORBA::Container::DescriptionSeq_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - DescriptionSeq *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - DescriptionSeq (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - DescriptionSeq *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::Container::DescriptionSeq * -CORBA::Container::DescriptionSeq_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::Container::DescriptionSeq * -CORBA::Container::DescriptionSeq_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::Container::DescriptionSeq_var::operator const ::CORBA::Container::DescriptionSeq &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::Container::DescriptionSeq_var::operator ::CORBA::Container::DescriptionSeq &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::Container::DescriptionSeq_var::operator ::CORBA::Container::DescriptionSeq &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::Container::DescriptionSeq_var::operator ::CORBA::Container::DescriptionSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::Container::Description & -CORBA::Container::DescriptionSeq_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const CORBA::Container::Description & -CORBA::Container::DescriptionSeq_var::operator[] (CORBA::ULong index) const -{ - return ACE_const_cast (const CORBA::Container::Description &, this->ptr_->operator[] (index)); -} - -ACE_INLINE -const ::CORBA::Container::DescriptionSeq & -CORBA::Container::DescriptionSeq_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::Container::DescriptionSeq & -CORBA::Container::DescriptionSeq_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::Container::DescriptionSeq *& -CORBA::Container::DescriptionSeq_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::Container::DescriptionSeq * -CORBA::Container::DescriptionSeq_var::_retn (void) -{ - ::CORBA::Container::DescriptionSeq *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::Container::DescriptionSeq * -CORBA::Container::DescriptionSeq_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:566 - -// ************************************************************* -// Inline operations for class CORBA::Container::DescriptionSeq_out -// ************************************************************* - -ACE_INLINE -CORBA::Container::DescriptionSeq_out::DescriptionSeq_out (DescriptionSeq *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::Container::DescriptionSeq_out::DescriptionSeq_out (DescriptionSeq_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::Container::DescriptionSeq_out::DescriptionSeq_out (const ::CORBA::Container::DescriptionSeq_out &p) - : ptr_ (ACE_const_cast (DescriptionSeq_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::Container::DescriptionSeq_out & -CORBA::Container::DescriptionSeq_out::operator= (const ::CORBA::Container::DescriptionSeq_out &p) -{ - this->ptr_ = ACE_const_cast (DescriptionSeq_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::Container::DescriptionSeq_out & -CORBA::Container::DescriptionSeq_out::operator= (DescriptionSeq *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::Container::DescriptionSeq_out::operator ::CORBA::Container::DescriptionSeq *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::Container::DescriptionSeq *& -CORBA::Container::DescriptionSeq_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::Container::DescriptionSeq * -CORBA::Container::DescriptionSeq_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::Container::Description & -CORBA::Container::DescriptionSeq_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - #endif /* end #if !defined */ // TAO_IDL - Generated from @@ -8440,13 +75,6 @@ CORBA::Container::Container ( this->CORBA_Container_setup_collocation (_tao_collocated); } -ACE_INLINE -CORBA::Boolean -CORBA::Container::marshal (TAO_OutputCDR &cdr) -{ - return (cdr << this); -} - #endif /* end #if !defined */ // TAO_IDL - Generated from @@ -8461,18 +89,11 @@ CORBA::IDLType::IDLType ( CORBA::Boolean _tao_collocated, TAO_Abstract_ServantBase *servant ) - : ACE_NESTED_CLASS (CORBA, Object)(objref, _tao_collocated, servant) + : ACE_NESTED_CLASS (CORBA, Object) (objref, _tao_collocated, servant) { this->CORBA_IDLType_setup_collocation (_tao_collocated); } -ACE_INLINE -CORBA::Boolean -CORBA::IDLType::marshal (TAO_OutputCDR &cdr) -{ - return (cdr << this); -} - #endif /* end #if !defined */ // TAO_IDL - Generated from @@ -8492,227 +113,9 @@ CORBA::TypedefDef::TypedefDef ( this->CORBA_TypedefDef_setup_collocation (_tao_collocated); } -ACE_INLINE -CORBA::Boolean -CORBA::TypedefDef::marshal (TAO_OutputCDR &cdr) -{ - return (cdr << this); -} - #endif /* end #if !defined */ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 - -// ************************************************************* -// Inline operations for class CORBA::TypeDescription_var -// ************************************************************* - -ACE_INLINE -CORBA::TypeDescription_var::TypeDescription_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::TypeDescription_var::TypeDescription_var (TypeDescription *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::TypeDescription_var::TypeDescription_var (const ::CORBA::TypeDescription_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::TypeDescription (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::TypeDescription_var::~TypeDescription_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::TypeDescription_var & -CORBA::TypeDescription_var::operator= (TypeDescription *_tao_struct_var) -{ - delete this->ptr_; - this->ptr_ = _tao_struct_var; - return *this; -} - -ACE_INLINE -::CORBA::TypeDescription_var & -CORBA::TypeDescription_var::operator= (const ::CORBA::TypeDescription_var &_tao_struct_var) -{ - if (this != &_tao_struct_var) - { - if (_tao_struct_var.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - TypeDescription *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - TypeDescription (*_tao_struct_var.ptr_), - *this - ); - - if (deep_copy != 0) - { - TypeDescription *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE const ::CORBA::TypeDescription * -CORBA::TypeDescription_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::TypeDescription * -CORBA::TypeDescription_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::TypeDescription_var::operator const ::CORBA::TypeDescription &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::TypeDescription_var::operator ::CORBA::TypeDescription &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::TypeDescription_var::operator ::CORBA::TypeDescription &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::TypeDescription_var::operator ::CORBA::TypeDescription *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE const ::CORBA::TypeDescription & -CORBA::TypeDescription_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE ::CORBA::TypeDescription & -CORBA::TypeDescription_var::inout (void) -{ - return *this->ptr_; -} - -// Mapping for variable size. -ACE_INLINE ::CORBA::TypeDescription *& -CORBA::TypeDescription_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE ::CORBA::TypeDescription * -CORBA::TypeDescription_var::_retn (void) -{ - ::CORBA::TypeDescription *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE ::CORBA::TypeDescription * -CORBA::TypeDescription_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:523 - -// ************************************************************* -// Inline operations for class CORBA::TypeDescription_out -// ************************************************************* - -ACE_INLINE -CORBA::TypeDescription_out::TypeDescription_out (::CORBA::TypeDescription *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::TypeDescription_out::TypeDescription_out (TypeDescription_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::TypeDescription_out::TypeDescription_out (const ::CORBA::TypeDescription_out &p) - : ptr_ (ACE_const_cast (TypeDescription_out&, p).ptr_) -{} - -ACE_INLINE -CORBA::TypeDescription_out & -CORBA::TypeDescription_out::operator= (const ::CORBA::TypeDescription_out &p) -{ - this->ptr_ = ACE_const_cast (TypeDescription_out&, p).ptr_; - return *this; -} - -ACE_INLINE -CORBA::TypeDescription_out & -CORBA::TypeDescription_out::operator= (TypeDescription *_tao_struct_out) -{ - this->ptr_ = _tao_struct_out; - return *this; -} - -ACE_INLINE -CORBA::TypeDescription_out::operator ::CORBA::TypeDescription *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::TypeDescription *& -CORBA::TypeDescription_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA::TypeDescription * -CORBA::TypeDescription_out::operator-> (void) -{ - return this->ptr_; -} - -// TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_enum/cdr_op_ci.cpp:51 ACE_INLINE @@ -8789,7 +192,7 @@ TAO_IFR_Client_Export CORBA::Boolean operator>> ( ); // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:103 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 ACE_INLINE CORBA::Boolean operator<< ( @@ -9226,7 +629,7 @@ CORBA::Boolean TAO_IFR_Client_Export operator>> ( #endif /* _TAO_CDR_OP_CORBA_ContainedSeq_I_ */ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:103 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 ACE_INLINE CORBA::Boolean operator<< ( @@ -9287,7 +690,7 @@ CORBA::Boolean TAO_IFR_Client_Export operator>> ( #endif /* _TAO_CDR_OP_CORBA_StructMemberSeq_I_ */ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:103 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 ACE_INLINE CORBA::Boolean operator<< ( @@ -9346,7 +749,7 @@ CORBA::Boolean TAO_IFR_Client_Export operator>> ( #endif /* _TAO_CDR_OP_CORBA_InitializerSeq_I_ */ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:103 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 ACE_INLINE CORBA::Boolean operator<< ( @@ -9411,7 +814,7 @@ CORBA::Boolean TAO_IFR_Client_Export operator>> ( #endif /* _TAO_CDR_OP_CORBA_ExcDescriptionSeq_I_ */ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:103 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 ACE_INLINE CORBA::Boolean operator<< ( @@ -9472,7 +875,7 @@ CORBA::Boolean TAO_IFR_Client_Export operator>> ( #endif /* _TAO_CDR_OP_CORBA_ExtInitializerSeq_I_ */ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:103 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 ACE_INLINE CORBA::Boolean operator<< ( @@ -9553,7 +956,7 @@ CORBA::Boolean TAO_IFR_Client_Export operator>> ( #endif /* _TAO_CDR_OP_CORBA_EnumMemberSeq_I_ */ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:103 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 ACE_INLINE CORBA::Boolean operator<< ( @@ -9627,7 +1030,7 @@ TAO_IFR_Client_Export CORBA::Boolean operator>> ( ); // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:103 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 ACE_INLINE CORBA::Boolean operator<< ( @@ -9673,4 +1076,3 @@ CORBA::Boolean operator>> ( } } - |