diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-07 01:49:10 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-07 01:49:10 +0000 |
commit | 194046d04d707044b26d1d37fe9ac65f4d3ccc32 (patch) | |
tree | fc1feff73bc66af5d0fc52c30e4b69cc76ffcc59 | |
parent | 8c1592bcf13a47258501e574c7aee697d19df16a (diff) | |
download | ATCD-194046d04d707044b26d1d37fe9ac65f4d3ccc32.tar.gz |
Moved code for IDL_Type (including _var and _out) up to where
IDLType is forward declared in Interface.pidl.
-rw-r--r-- | TAO/tao/InterfaceC.i | 376 |
1 files changed, 188 insertions, 188 deletions
diff --git a/TAO/tao/InterfaceC.i b/TAO/tao/InterfaceC.i index 8a5ed89bce9..f57eb6a6b70 100644 --- a/TAO/tao/InterfaceC.i +++ b/TAO/tao/InterfaceC.i @@ -561,6 +561,194 @@ IR_Contained::Description_out::operator-> (void) } +ACE_INLINE +IR_IDLType::IR_IDLType (void) // default constructor +{} + +ACE_INLINE +IR_IDLType::IR_IDLType (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor + : CORBA_Object (objref, _tao_servant, _tao_collocated) +{} + +ACE_INLINE +IR_IDLType::~IR_IDLType (void) // destructor +{} + + +#if !defined (_IR_IDLTYPE___VAR_CI_) +#define _IR_IDLTYPE___VAR_CI_ + +// ************************************************************* +// Inline operations for class IR_IDLType_var +// ************************************************************* + +ACE_INLINE +IR_IDLType_var::IR_IDLType_var (void) // default constructor + : ptr_ (IR_IDLType::_nil ()) +{} + +ACE_INLINE +IR_IDLType_var::IR_IDLType_var (IR_IDLType_ptr p) + : ptr_ (p) +{} + +ACE_INLINE ::IR_IDLType_ptr +IR_IDLType_var::ptr (void) const +{ + return this->ptr_; +} + +ACE_INLINE +IR_IDLType_var::IR_IDLType_var (const ::IR_IDLType_var &p) // copy constructor + : TAO_Base_var (), + ptr_ (IR_IDLType::_duplicate (p.ptr ())) +{} + +ACE_INLINE +IR_IDLType_var::~IR_IDLType_var (void) // destructor +{ + CORBA::release (this->ptr_); +} + +ACE_INLINE IR_IDLType_var & +IR_IDLType_var::operator= (IR_IDLType_ptr p) +{ + CORBA::release (this->ptr_); + this->ptr_ = p; + return *this; +} + +ACE_INLINE IR_IDLType_var & +IR_IDLType_var::operator= (const ::IR_IDLType_var &p) +{ + if (this != &p) + { + CORBA::release (this->ptr_); + this->ptr_ = ::IR_IDLType::_duplicate (p.ptr ()); + } + return *this; +} + +ACE_INLINE +IR_IDLType_var::operator const ::IR_IDLType_ptr &() const // cast +{ + return this->ptr_; +} + +ACE_INLINE +IR_IDLType_var::operator ::IR_IDLType_ptr &() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::IR_IDLType_ptr +IR_IDLType_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::IR_IDLType_ptr +IR_IDLType_var::in (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::IR_IDLType_ptr & +IR_IDLType_var::inout (void) +{ + return this->ptr_; +} + +ACE_INLINE ::IR_IDLType_ptr & +IR_IDLType_var::out (void) +{ + CORBA::release (this->ptr_); + this->ptr_ = ::IR_IDLType::_nil (); + return this->ptr_; +} + +ACE_INLINE ::IR_IDLType_ptr +IR_IDLType_var::_retn (void) +{ + // yield ownership of managed obj reference + ::IR_IDLType_ptr val = this->ptr_; + this->ptr_ = ::IR_IDLType::_nil (); + return val; +} + + +#endif /* end #if !defined */ + + +#if !defined (_IR_IDLTYPE___OUT_CI_) +#define _IR_IDLTYPE___OUT_CI_ + +// ************************************************************* +// Inline operations for class IR_IDLType_out +// ************************************************************* + +ACE_INLINE +IR_IDLType_out::IR_IDLType_out (IR_IDLType_ptr &p) + : ptr_ (p) +{ + this->ptr_ = ::IR_IDLType::_nil (); +} + +ACE_INLINE +IR_IDLType_out::IR_IDLType_out (IR_IDLType_var &p) // constructor from _var + : ptr_ (p.out ()) +{ + CORBA::release (this->ptr_); + this->ptr_ = ::IR_IDLType::_nil (); +} + +ACE_INLINE +IR_IDLType_out::IR_IDLType_out (const ::IR_IDLType_out &p) // copy constructor + : ptr_ (ACE_const_cast (IR_IDLType_out &, p).ptr_) +{} + +ACE_INLINE ::IR_IDLType_out & +IR_IDLType_out::operator= (const ::IR_IDLType_out &p) +{ + this->ptr_ = ACE_const_cast (IR_IDLType_out&, p).ptr_; + return *this; +} + +ACE_INLINE IR_IDLType_out & +IR_IDLType_out::operator= (const ::IR_IDLType_var &p) +{ + this->ptr_ = ::IR_IDLType::_duplicate (p.ptr ()); + return *this; +} + +ACE_INLINE IR_IDLType_out & +IR_IDLType_out::operator= (IR_IDLType_ptr p) +{ + this->ptr_ = p; + return *this; +} + +ACE_INLINE +IR_IDLType_out::operator ::IR_IDLType_ptr &() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::IR_IDLType_ptr & +IR_IDLType_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE ::IR_IDLType_ptr +IR_IDLType_out::operator-> (void) +{ + return this->ptr_; +} + + +#endif /* end #if !defined */ + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) #if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_IR_INTERFACEDEFSEQ_CI_) @@ -7328,194 +7516,6 @@ IR_Container::DescriptionSeq_out::operator[] (CORBA::ULong index) #endif /* end #if !defined */ ACE_INLINE -IR_IDLType::IR_IDLType (void) // default constructor -{} - -ACE_INLINE -IR_IDLType::IR_IDLType (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor - : CORBA_Object (objref, _tao_servant, _tao_collocated) -{} - -ACE_INLINE -IR_IDLType::~IR_IDLType (void) // destructor -{} - - -#if !defined (_IR_IDLTYPE___VAR_CI_) -#define _IR_IDLTYPE___VAR_CI_ - -// ************************************************************* -// Inline operations for class IR_IDLType_var -// ************************************************************* - -ACE_INLINE -IR_IDLType_var::IR_IDLType_var (void) // default constructor - : ptr_ (IR_IDLType::_nil ()) -{} - -ACE_INLINE -IR_IDLType_var::IR_IDLType_var (IR_IDLType_ptr p) - : ptr_ (p) -{} - -ACE_INLINE ::IR_IDLType_ptr -IR_IDLType_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -IR_IDLType_var::IR_IDLType_var (const ::IR_IDLType_var &p) // copy constructor - : TAO_Base_var (), - ptr_ (IR_IDLType::_duplicate (p.ptr ())) -{} - -ACE_INLINE -IR_IDLType_var::~IR_IDLType_var (void) // destructor -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE IR_IDLType_var & -IR_IDLType_var::operator= (IR_IDLType_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE IR_IDLType_var & -IR_IDLType_var::operator= (const ::IR_IDLType_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = ::IR_IDLType::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -IR_IDLType_var::operator const ::IR_IDLType_ptr &() const // cast -{ - return this->ptr_; -} - -ACE_INLINE -IR_IDLType_var::operator ::IR_IDLType_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::IR_IDLType_ptr -IR_IDLType_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::IR_IDLType_ptr -IR_IDLType_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::IR_IDLType_ptr & -IR_IDLType_var::inout (void) -{ - return this->ptr_; -} - -ACE_INLINE ::IR_IDLType_ptr & -IR_IDLType_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::IR_IDLType::_nil (); - return this->ptr_; -} - -ACE_INLINE ::IR_IDLType_ptr -IR_IDLType_var::_retn (void) -{ - // yield ownership of managed obj reference - ::IR_IDLType_ptr val = this->ptr_; - this->ptr_ = ::IR_IDLType::_nil (); - return val; -} - - -#endif /* end #if !defined */ - - -#if !defined (_IR_IDLTYPE___OUT_CI_) -#define _IR_IDLTYPE___OUT_CI_ - -// ************************************************************* -// Inline operations for class IR_IDLType_out -// ************************************************************* - -ACE_INLINE -IR_IDLType_out::IR_IDLType_out (IR_IDLType_ptr &p) - : ptr_ (p) -{ - this->ptr_ = ::IR_IDLType::_nil (); -} - -ACE_INLINE -IR_IDLType_out::IR_IDLType_out (IR_IDLType_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::IR_IDLType::_nil (); -} - -ACE_INLINE -IR_IDLType_out::IR_IDLType_out (const ::IR_IDLType_out &p) // copy constructor - : ptr_ (ACE_const_cast (IR_IDLType_out &, p).ptr_) -{} - -ACE_INLINE ::IR_IDLType_out & -IR_IDLType_out::operator= (const ::IR_IDLType_out &p) -{ - this->ptr_ = ACE_const_cast (IR_IDLType_out&, p).ptr_; - return *this; -} - -ACE_INLINE IR_IDLType_out & -IR_IDLType_out::operator= (const ::IR_IDLType_var &p) -{ - this->ptr_ = ::IR_IDLType::_duplicate (p.ptr ()); - return *this; -} - -ACE_INLINE IR_IDLType_out & -IR_IDLType_out::operator= (IR_IDLType_ptr p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -IR_IDLType_out::operator ::IR_IDLType_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::IR_IDLType_ptr & -IR_IDLType_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::IR_IDLType_ptr -IR_IDLType_out::operator-> (void) -{ - return this->ptr_; -} - - -#endif /* end #if !defined */ - -ACE_INLINE IR_Repository::IR_Repository (void) // default constructor {} |