diff options
Diffstat (limited to 'TAO/tao/DynamicC.i')
-rw-r--r-- | TAO/tao/DynamicC.i | 1103 |
1 files changed, 1 insertions, 1102 deletions
diff --git a/TAO/tao/DynamicC.i b/TAO/tao/DynamicC.i index 323bbc4e31d..768188d6cad 100644 --- a/TAO/tao/DynamicC.i +++ b/TAO/tao/DynamicC.i @@ -21,1108 +21,7 @@ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 - -// ************************************************************* -// Inline operations for class Dynamic::Parameter_var -// ************************************************************* - -ACE_INLINE -Dynamic::Parameter_var::Parameter_var (void) - : ptr_ (0) -{} - -ACE_INLINE -Dynamic::Parameter_var::Parameter_var (Parameter *p) - : ptr_ (p) -{} - -ACE_INLINE -Dynamic::Parameter_var::Parameter_var (const ::Dynamic::Parameter_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::Dynamic::Parameter (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -Dynamic::Parameter_var::~Parameter_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -Dynamic::Parameter_var & -Dynamic::Parameter_var::operator= (Parameter *_tao_struct_var) -{ - delete this->ptr_; - this->ptr_ = _tao_struct_var; - return *this; -} - -ACE_INLINE -::Dynamic::Parameter_var & -Dynamic::Parameter_var::operator= (const ::Dynamic::Parameter_var &_tao_struct_var) -{ - if (this != &_tao_struct_var) - { - if (_tao_struct_var.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - Parameter *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - Parameter (*_tao_struct_var.ptr_), - *this - ); - - if (deep_copy != 0) - { - Parameter *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE const ::Dynamic::Parameter * -Dynamic::Parameter_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::Dynamic::Parameter * -Dynamic::Parameter_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -Dynamic::Parameter_var::operator const ::Dynamic::Parameter &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -Dynamic::Parameter_var::operator ::Dynamic::Parameter &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -Dynamic::Parameter_var::operator ::Dynamic::Parameter &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -Dynamic::Parameter_var::operator ::Dynamic::Parameter *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE const ::Dynamic::Parameter & -Dynamic::Parameter_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE ::Dynamic::Parameter & -Dynamic::Parameter_var::inout (void) -{ - return *this->ptr_; -} - -// Mapping for variable size. -ACE_INLINE ::Dynamic::Parameter *& -Dynamic::Parameter_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE ::Dynamic::Parameter * -Dynamic::Parameter_var::_retn (void) -{ - ::Dynamic::Parameter *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE ::Dynamic::Parameter * -Dynamic::Parameter_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 Dynamic::Parameter_out -// ************************************************************* - -ACE_INLINE -Dynamic::Parameter_out::Parameter_out (::Dynamic::Parameter *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -Dynamic::Parameter_out::Parameter_out (Parameter_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -Dynamic::Parameter_out::Parameter_out (const ::Dynamic::Parameter_out &p) - : ptr_ (ACE_const_cast (Parameter_out&, p).ptr_) -{} - -ACE_INLINE -Dynamic::Parameter_out & -Dynamic::Parameter_out::operator= (const ::Dynamic::Parameter_out &p) -{ - this->ptr_ = ACE_const_cast (Parameter_out&, p).ptr_; - return *this; -} - -ACE_INLINE -Dynamic::Parameter_out & -Dynamic::Parameter_out::operator= (Parameter *_tao_struct_out) -{ - this->ptr_ = _tao_struct_out; - return *this; -} - -ACE_INLINE -Dynamic::Parameter_out::operator ::Dynamic::Parameter *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::Dynamic::Parameter *& -Dynamic::Parameter_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::Dynamic::Parameter * -Dynamic::Parameter_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:99 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_DYNAMIC_PARAMETERLIST_CI_) -#define __TAO_UNBOUNDED_SEQUENCE_DYNAMIC_PARAMETERLIST_CI_ - -ACE_INLINE -Dynamic::Parameter * -Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::allocbuf (CORBA::ULong size) -{ - Dynamic::Parameter *retval = 0; - ACE_NEW_RETURN (retval, Dynamic::Parameter[size], 0); - return retval; -} - -ACE_INLINE -void Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::freebuf (Dynamic::Parameter *buffer) -{ - delete [] buffer; -} - -ACE_INLINE -Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::_TAO_Unbounded_Sequence_Dynamic_ParameterList (void) -{ -} - -ACE_INLINE -Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::_TAO_Unbounded_Sequence_Dynamic_ParameterList (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_Dynamic_ParameterList::allocbuf (maximum)) -{ -} - -ACE_INLINE -Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::_TAO_Unbounded_Sequence_Dynamic_ParameterList ( - CORBA::ULong maximum, - CORBA::ULong length, - Dynamic::Parameter *data, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, data, release) -{ -} - -ACE_INLINE -Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::_TAO_Unbounded_Sequence_Dynamic_ParameterList ( - const _TAO_Unbounded_Sequence_Dynamic_ParameterList &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - Dynamic::Parameter *tmp1 = - _TAO_Unbounded_Sequence_Dynamic_ParameterList::allocbuf (this->maximum_); - Dynamic::Parameter * const tmp2 = - ACE_reinterpret_cast (Dynamic::Parameter * 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 -Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList & -Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::operator= ( - const _TAO_Unbounded_Sequence_Dynamic_ParameterList &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - if (this->maximum_ < rhs.maximum_) - { - // Free the old buffer. - Dynamic::Parameter *tmp = - ACE_reinterpret_cast (Dynamic::Parameter *, this->buffer_); - - _TAO_Unbounded_Sequence_Dynamic_ParameterList::freebuf (tmp); - - this->buffer_ = - _TAO_Unbounded_Sequence_Dynamic_ParameterList::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Sequence_Dynamic_ParameterList::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - Dynamic::Parameter *tmp1 = - ACE_reinterpret_cast (Dynamic::Parameter *, this->buffer_); - Dynamic::Parameter * const tmp2 = - ACE_reinterpret_cast (Dynamic::Parameter * ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - tmp1[i] = tmp2[i]; - } - - return *this; -} - -// = Accessors. -ACE_INLINE -Dynamic::Parameter & -Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::operator[] (CORBA::ULong i) -{ - ACE_ASSERT (i < this->maximum_); - Dynamic::Parameter* tmp = - ACE_reinterpret_cast (Dynamic::Parameter*, this->buffer_); - return tmp[i]; -} - -ACE_INLINE -const Dynamic::Parameter & -Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::operator[] (CORBA::ULong i) const -{ - ACE_ASSERT (i < this->maximum_); - Dynamic::Parameter * const tmp = - ACE_reinterpret_cast (Dynamic::Parameter* ACE_CAST_CONST, this->buffer_); - return tmp[i]; -} - -// Implement the TAO_Base_Sequence methods (see Sequence.h) - -ACE_INLINE -Dynamic::Parameter * -Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::get_buffer (CORBA::Boolean orphan) -{ - Dynamic::Parameter *result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Sequence_Dynamic_ParameterList::allocbuf (this->length_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (Dynamic::Parameter*, this->buffer_); - } - } - else // if (orphan == 1) - { - if (this->release_ != 0) - { - // We set the state back to default and relinquish ownership. - result = - ACE_reinterpret_cast(Dynamic::Parameter*,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const Dynamic::Parameter * -Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::get_buffer (void) const -{ - return ACE_reinterpret_cast (const Dynamic::Parameter * ACE_CAST_CONST, this->buffer_); -} - -ACE_INLINE -void -Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::replace ( - CORBA::ULong max, - CORBA::ULong length, - Dynamic::Parameter *data, - CORBA::Boolean release - ) -{ - this->maximum_ = max; - this->length_ = length; - - if (this->buffer_ && this->release_ == 1) - { - Dynamic::Parameter *tmp = - ACE_reinterpret_cast (Dynamic::Parameter*, this->buffer_); - _TAO_Unbounded_Sequence_Dynamic_ParameterList::freebuf (tmp); - } - - this->buffer_ = data; - this->release_ = release; -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_DYNAMIC_PARAMETERLIST_CI_) -#define _DYNAMIC_PARAMETERLIST_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class Dynamic::ParameterList_var -// ************************************************************* - -ACE_INLINE -Dynamic::ParameterList_var::ParameterList_var (void) - : ptr_ (0) -{} - -ACE_INLINE -Dynamic::ParameterList_var::ParameterList_var (ParameterList *p) - : ptr_ (p) -{} - -ACE_INLINE -Dynamic::ParameterList_var::ParameterList_var (const ::Dynamic::ParameterList_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::Dynamic::ParameterList (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -Dynamic::ParameterList_var::~ParameterList_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -Dynamic::ParameterList_var & -Dynamic::ParameterList_var::operator= (ParameterList *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::Dynamic::ParameterList_var & -Dynamic::ParameterList_var::operator= (const ::Dynamic::ParameterList_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ParameterList *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - ParameterList (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - ParameterList *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::Dynamic::ParameterList * -Dynamic::ParameterList_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::Dynamic::ParameterList * -Dynamic::ParameterList_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -Dynamic::ParameterList_var::operator const ::Dynamic::ParameterList &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -Dynamic::ParameterList_var::operator ::Dynamic::ParameterList &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -Dynamic::ParameterList_var::operator ::Dynamic::ParameterList &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -Dynamic::ParameterList_var::operator ::Dynamic::ParameterList *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -Dynamic::Parameter & -Dynamic::ParameterList_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const Dynamic::Parameter & -Dynamic::ParameterList_var::operator[] (CORBA::ULong index) const -{ - return ACE_const_cast (const Dynamic::Parameter &, this->ptr_->operator[] (index)); -} - -ACE_INLINE -const ::Dynamic::ParameterList & -Dynamic::ParameterList_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::Dynamic::ParameterList & -Dynamic::ParameterList_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::Dynamic::ParameterList *& -Dynamic::ParameterList_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::Dynamic::ParameterList * -Dynamic::ParameterList_var::_retn (void) -{ - ::Dynamic::ParameterList *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::Dynamic::ParameterList * -Dynamic::ParameterList_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:567 - -// ************************************************************* -// Inline operations for class Dynamic::ParameterList_out -// ************************************************************* - -ACE_INLINE -Dynamic::ParameterList_out::ParameterList_out (ParameterList *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -Dynamic::ParameterList_out::ParameterList_out (ParameterList_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -Dynamic::ParameterList_out::ParameterList_out (const ::Dynamic::ParameterList_out &p) - : ptr_ (ACE_const_cast (ParameterList_out&, p).ptr_) -{} - -ACE_INLINE -::Dynamic::ParameterList_out & -Dynamic::ParameterList_out::operator= (const ::Dynamic::ParameterList_out &p) -{ - this->ptr_ = ACE_const_cast (ParameterList_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::Dynamic::ParameterList_out & -Dynamic::ParameterList_out::operator= (ParameterList *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -Dynamic::ParameterList_out::operator ::Dynamic::ParameterList *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::Dynamic::ParameterList *& -Dynamic::ParameterList_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::Dynamic::ParameterList * -Dynamic::ParameterList_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -Dynamic::Parameter & -Dynamic::ParameterList_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:108 - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_DYNAMIC_EXCEPTIONLIST_CI_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_DYNAMIC_EXCEPTIONLIST_CI_ - -ACE_INLINE -CORBA::TypeCode ** -Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::allocbuf (CORBA::ULong nelems) -{ - CORBA::TypeCode **buf = 0; - - ACE_NEW_RETURN (buf, CORBA::TypeCode*[nelems], 0); - - for (CORBA::ULong i = 0; i < nelems; i++) - { - buf[i] = CORBA::TypeCode::_nil (); - } - - return buf; -} - -ACE_INLINE -void -Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::freebuf (CORBA::TypeCode **buffer) -{ - if (buffer == 0) - { - return; - } - - delete[] buffer; -} - -ACE_INLINE -Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList (void) -{ -} - -ACE_INLINE -Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::allocbuf (maximum)) -{ -} - -ACE_INLINE -Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList ( - CORBA::ULong maximum, - CORBA::ULong length, - CORBA::TypeCode* *value, - CORBA::Boolean release - ) - : TAO_Unbounded_Base_Sequence (maximum, length, value, release) -{ -} - -ACE_INLINE -Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList( - const _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList &rhs - ) - : TAO_Unbounded_Base_Sequence (rhs) -{ - if (rhs.buffer_ != 0) - { - CORBA::TypeCode **tmp1 = - _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::allocbuf (this->maximum_); - CORBA::TypeCode ** const tmp2 = - ACE_reinterpret_cast (CORBA::TypeCode ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = CORBA::TypeCode::_duplicate (tmp2[i]); - } - - this->buffer_ = tmp1; - } - else - { - this->buffer_ = 0; - } -} - -ACE_INLINE -Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList & -Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::operator= ( - const _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList &rhs - ) -{ - if (this == &rhs) - { - return *this; - } - - if (this->release_) - { - CORBA::TypeCode **tmp = - ACE_reinterpret_cast (CORBA::TypeCode **, this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - CORBA::release (tmp[i]); - tmp[i] = CORBA::TypeCode::_nil (); - } - - if (this->maximum_ < rhs.maximum_) - { - _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::freebuf (tmp); - this->buffer_ = _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::allocbuf (rhs.maximum_); - } - } - else - { - this->buffer_ = - _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::allocbuf (rhs.maximum_); - } - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - CORBA::TypeCode **tmp1 = - ACE_reinterpret_cast (CORBA::TypeCode **, this->buffer_); - - CORBA::TypeCode ** const tmp2 = - ACE_reinterpret_cast (CORBA::TypeCode ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - { - tmp1[i] = CORBA::TypeCode::_duplicate (tmp2[i]); - } - - return *this; -} - -ACE_INLINE -TAO_Pseudo_Object_Manager<Dynamic::TypeCode,Dynamic::TypeCode_var> -Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::operator[] (CORBA::ULong index) const -{ - ACE_ASSERT (index < this->maximum_); - CORBA::TypeCode ** const tmp = - ACE_reinterpret_cast (CORBA::TypeCode ** ACE_CAST_CONST, this->buffer_); - return TAO_Pseudo_Object_Manager<Dynamic::TypeCode,Dynamic::TypeCode_var> (tmp + index, this->release_); -} - -ACE_INLINE -CORBA::TypeCode* * -Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::get_buffer (CORBA::Boolean orphan) -{ - CORBA::TypeCode **result = 0; - - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = - _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::allocbuf (this->maximum_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = - ACE_reinterpret_cast (CORBA::TypeCode**, 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::TypeCode**,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - - return result; -} - -ACE_INLINE -const CORBA::TypeCode* * -Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::get_buffer (void) const -{ - return ACE_reinterpret_cast (const CORBA::TypeCode ** ACE_CAST_CONST, this->buffer_); -} - -#endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_DYNAMIC_EXCEPTIONLIST_CI_) -#define _DYNAMIC_EXCEPTIONLIST_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class Dynamic::ExceptionList_var -// ************************************************************* - -ACE_INLINE -Dynamic::ExceptionList_var::ExceptionList_var (void) - : ptr_ (0) -{} - -ACE_INLINE -Dynamic::ExceptionList_var::ExceptionList_var (ExceptionList *p) - : ptr_ (p) -{} - -ACE_INLINE -Dynamic::ExceptionList_var::ExceptionList_var (const ::Dynamic::ExceptionList_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::Dynamic::ExceptionList (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -Dynamic::ExceptionList_var::~ExceptionList_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -Dynamic::ExceptionList_var & -Dynamic::ExceptionList_var::operator= (ExceptionList *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::Dynamic::ExceptionList_var & -Dynamic::ExceptionList_var::operator= (const ::Dynamic::ExceptionList_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ExceptionList *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - ExceptionList (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - ExceptionList *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::Dynamic::ExceptionList * -Dynamic::ExceptionList_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::Dynamic::ExceptionList * -Dynamic::ExceptionList_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -Dynamic::ExceptionList_var::operator const ::Dynamic::ExceptionList &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -Dynamic::ExceptionList_var::operator ::Dynamic::ExceptionList &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -Dynamic::ExceptionList_var::operator ::Dynamic::ExceptionList &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -Dynamic::ExceptionList_var::operator ::Dynamic::ExceptionList *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Pseudo_Object_Manager<Dynamic::TypeCode,Dynamic::TypeCode_var> -Dynamic::ExceptionList_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const ::Dynamic::ExceptionList & -Dynamic::ExceptionList_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::Dynamic::ExceptionList & -Dynamic::ExceptionList_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::Dynamic::ExceptionList *& -Dynamic::ExceptionList_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::Dynamic::ExceptionList * -Dynamic::ExceptionList_var::_retn (void) -{ - ::Dynamic::ExceptionList *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::Dynamic::ExceptionList * -Dynamic::ExceptionList_var::ptr (void) const -{ - return this->ptr_; -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:567 - -// ************************************************************* -// Inline operations for class Dynamic::ExceptionList_out -// ************************************************************* - -ACE_INLINE -Dynamic::ExceptionList_out::ExceptionList_out (ExceptionList *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -Dynamic::ExceptionList_out::ExceptionList_out (ExceptionList_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -Dynamic::ExceptionList_out::ExceptionList_out (const ::Dynamic::ExceptionList_out &p) - : ptr_ (ACE_const_cast (ExceptionList_out&, p).ptr_) -{} - -ACE_INLINE -::Dynamic::ExceptionList_out & -Dynamic::ExceptionList_out::operator= (const ::Dynamic::ExceptionList_out &p) -{ - this->ptr_ = ACE_const_cast (ExceptionList_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::Dynamic::ExceptionList_out & -Dynamic::ExceptionList_out::operator= (ExceptionList *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -Dynamic::ExceptionList_out::operator ::Dynamic::ExceptionList *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::Dynamic::ExceptionList *& -Dynamic::ExceptionList_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::Dynamic::ExceptionList * -Dynamic::ExceptionList_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Pseudo_Object_Manager<Dynamic::TypeCode,Dynamic::TypeCode_var> -Dynamic::ExceptionList_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_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<< ( |