diff options
Diffstat (limited to 'TAO/tao/DomainC.i')
-rw-r--r-- | TAO/tao/DomainC.i | 306 |
1 files changed, 21 insertions, 285 deletions
diff --git a/TAO/tao/DomainC.i b/TAO/tao/DomainC.i index 56e0cbea360..5a377240396 100644 --- a/TAO/tao/DomainC.i +++ b/TAO/tao/DomainC.i @@ -32,29 +32,11 @@ CORBA::DomainManager::DomainManager ( CORBA::Boolean _tao_collocated, TAO_Abstract_ServantBase *servant ) - : Object (objref, _tao_collocated, servant) + : ACE_NESTED_CLASS (CORBA, Object) (objref, _tao_collocated, servant) { this->CORBA_DomainManager_setup_collocation (_tao_collocated); } -ACE_INLINE -CORBA::Boolean -CORBA::DomainManager::marshal (TAO_OutputCDR &cdr) -{ - return (cdr << this); -} - -template<> -ACE_INLINE -CORBA::Boolean -TAO::Any_Impl_T<CORBA::DomainManager>::to_object ( - CORBA::Object_ptr &_tao_elem - ) const -{ - _tao_elem = CORBA::Object::_duplicate (this->value_); - return 1; -} - #endif /* end #if !defined */ // TAO_IDL - Generated from @@ -69,18 +51,11 @@ CORBA::ConstructionPolicy::ConstructionPolicy ( CORBA::Boolean _tao_collocated, TAO_Abstract_ServantBase *servant ) - : Object (objref, _tao_collocated, servant) + : ACE_NESTED_CLASS (CORBA, Object) (objref, _tao_collocated, servant) { this->CORBA_ConstructionPolicy_setup_collocation (_tao_collocated); } -ACE_INLINE -CORBA::Boolean -CORBA::ConstructionPolicy::marshal (TAO_OutputCDR &cdr) -{ - return (cdr << this); -} - template<> ACE_INLINE CORBA::Boolean @@ -94,7 +69,7 @@ TAO::Any_Impl_T<CORBA::ConstructionPolicy>::to_object ( #endif /* end #if !defined */ -// TAO_IDL - Generated from +// 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) @@ -107,26 +82,26 @@ CORBA::DomainManager ** CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::allocbuf (CORBA::ULong nelems) { CORBA::DomainManager **buf = 0; - + ACE_NEW_RETURN (buf, CORBA::DomainManager*[nelems], 0); - + for (CORBA::ULong i = 0; i < nelems; i++) { buf[i] = CORBA::DomainManager::_nil (); } - + return buf; } ACE_INLINE -void +void CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::freebuf (CORBA::DomainManager **buffer) { if (buffer == 0) { return; } - + delete[] buffer; } @@ -164,12 +139,12 @@ CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::_TAO_Unbounded_Ob _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::allocbuf (this->maximum_); CORBA::DomainManager ** const tmp2 = ACE_reinterpret_cast (CORBA::DomainManager ** ACE_CAST_CONST, rhs.buffer_); - + for (CORBA::ULong i = 0; i < rhs.length_; ++i) { tmp1[i] = CORBA::DomainManager::_duplicate (tmp2[i]); } - + this->buffer_ = tmp1; } else @@ -188,18 +163,18 @@ CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::operator= ( { return *this; } - + if (this->release_) { CORBA::DomainManager **tmp = ACE_reinterpret_cast (CORBA::DomainManager **, this->buffer_); - + for (CORBA::ULong i = 0; i < this->length_; ++i) { CORBA::release (tmp[i]); tmp[i] = CORBA::DomainManager::_nil (); } - + if (this->maximum_ < rhs.maximum_) { _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::freebuf (tmp); @@ -211,20 +186,20 @@ CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::operator= ( this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::allocbuf (rhs.maximum_); } - + TAO_Unbounded_Base_Sequence::operator= (rhs); - + CORBA::DomainManager **tmp1 = ACE_reinterpret_cast (CORBA::DomainManager **, this->buffer_); - + CORBA::DomainManager ** const tmp2 = ACE_reinterpret_cast (CORBA::DomainManager ** ACE_CAST_CONST, rhs.buffer_); - + for (CORBA::ULong i = 0; i < rhs.length_; ++i) { tmp1[i] = CORBA::DomainManager::_duplicate (tmp2[i]); } - + return *this; } @@ -243,7 +218,7 @@ CORBA::DomainManager* * CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::get_buffer (CORBA::Boolean orphan) { CORBA::DomainManager **result = 0; - + if (orphan == 0) { // We retain ownership. @@ -273,7 +248,7 @@ CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::get_buffer (CORBA this->release_ = 0; } } - + return result; } @@ -286,245 +261,7 @@ CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::get_buffer (void) #endif /* end #if !defined */ -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_CORBA_DOMAINMANAGERLIST_CI_) -#define _CORBA_DOMAINMANAGERLIST_CI_ - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 - -// ************************************************************* -// Inline operations for class CORBA::DomainManagerList_var -// ************************************************************* - -ACE_INLINE -CORBA::DomainManagerList_var::DomainManagerList_var (void) - : ptr_ (0) -{} - -ACE_INLINE -CORBA::DomainManagerList_var::DomainManagerList_var (DomainManagerList *p) - : ptr_ (p) -{} - -ACE_INLINE -CORBA::DomainManagerList_var::DomainManagerList_var (const ::CORBA::DomainManagerList_var &p) -{ - if (p.ptr_) - { - ACE_NEW (this->ptr_, ::CORBA::DomainManagerList (*p.ptr_)); - } - else - { - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::DomainManagerList_var::~DomainManagerList_var (void) -{ - delete this->ptr_; -} - -ACE_INLINE -CORBA::DomainManagerList_var & -CORBA::DomainManagerList_var::operator= (DomainManagerList *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE -::CORBA::DomainManagerList_var & -CORBA::DomainManagerList_var::operator= (const ::CORBA::DomainManagerList_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - DomainManagerList *deep_copy = 0; - ACE_NEW_RETURN ( - deep_copy, - DomainManagerList (*p.ptr_), - *this - ); - - if (deep_copy != 0) - { - DomainManagerList *tmp = deep_copy; - deep_copy = this->ptr_; - this->ptr_ = tmp; - delete deep_copy; - } - } - } - - return *this; -} - -ACE_INLINE -const ::CORBA::DomainManagerList * -CORBA::DomainManagerList_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::DomainManagerList * -CORBA::DomainManagerList_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::DomainManagerList_var::operator const ::CORBA::DomainManagerList &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::DomainManagerList_var::operator ::CORBA::DomainManagerList &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -CORBA::DomainManagerList_var::operator ::CORBA::DomainManagerList &() const // cast -{ - return *this->ptr_; -} - -// Variable-size types only. -ACE_INLINE -CORBA::DomainManagerList_var::operator ::CORBA::DomainManagerList *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::DomainManager, CORBA::DomainManager_var> -CORBA::DomainManagerList_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE -const ::CORBA::DomainManagerList & -CORBA::DomainManagerList_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::DomainManagerList & -CORBA::DomainManagerList_var::inout (void) -{ - return *this->ptr_; -} - -ACE_INLINE -::CORBA::DomainManagerList *& -CORBA::DomainManagerList_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE -::CORBA::DomainManagerList * -CORBA::DomainManagerList_var::_retn (void) -{ - ::CORBA::DomainManagerList *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE -::CORBA::DomainManagerList * -CORBA::DomainManagerList_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 CORBA::DomainManagerList_out -// ************************************************************* - -ACE_INLINE -CORBA::DomainManagerList_out::DomainManagerList_out (DomainManagerList *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::DomainManagerList_out::DomainManagerList_out (DomainManagerList_var &p) - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -CORBA::DomainManagerList_out::DomainManagerList_out (const ::CORBA::DomainManagerList_out &p) - : ptr_ (ACE_const_cast (DomainManagerList_out&, p).ptr_) -{} - -ACE_INLINE -::CORBA::DomainManagerList_out & -CORBA::DomainManagerList_out::operator= (const ::CORBA::DomainManagerList_out &p) -{ - this->ptr_ = ACE_const_cast (DomainManagerList_out&, p).ptr_; - return *this; -} - -ACE_INLINE -::CORBA::DomainManagerList_out & -CORBA::DomainManagerList_out::operator= (DomainManagerList *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::DomainManagerList_out::operator ::CORBA::DomainManagerList *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::DomainManagerList *& -CORBA::DomainManagerList_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE -::CORBA::DomainManagerList * -CORBA::DomainManagerList_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -TAO_Object_Manager<CORBA::DomainManager, CORBA::DomainManager_var> -CORBA::DomainManagerList_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -#endif /* end #if !defined */ +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ // TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/cdr_op_ci.cpp:72 @@ -569,4 +306,3 @@ CORBA::Boolean TAO_Export operator>> ( ); #endif /* _TAO_CDR_OP_CORBA_DomainManagerList_I_ */ - |