diff options
Diffstat (limited to 'TAO/tao/Typecode.i')
-rw-r--r-- | TAO/tao/Typecode.i | 150 |
1 files changed, 0 insertions, 150 deletions
diff --git a/TAO/tao/Typecode.i b/TAO/tao/Typecode.i index bb6d54cd737..aadb70e4855 100644 --- a/TAO/tao/Typecode.i +++ b/TAO/tao/Typecode.i @@ -127,153 +127,3 @@ CORBA::release (CORBA::TypeCode_ptr obj) obj->_decr_refcnt (); } -// **************************************************************** - -ACE_INLINE -CORBA::TypeCode_var::TypeCode_var (void) - : ptr_ (CORBA::TypeCode::_nil ()) -{} - -ACE_INLINE -CORBA::TypeCode_var::TypeCode_var (CORBA::TypeCode_ptr p) - : ptr_ (p) -{} - -ACE_INLINE CORBA::TypeCode_ptr -CORBA::TypeCode_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::TypeCode_var::TypeCode_var (const CORBA::TypeCode_var &p) - : ptr_ (CORBA::TypeCode::_duplicate (p.ptr ())) -{} - -ACE_INLINE -CORBA::TypeCode_var::~TypeCode_var (void) -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE CORBA::TypeCode_var & -CORBA::TypeCode_var::operator= (CORBA::TypeCode_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE CORBA::TypeCode_var & -CORBA::TypeCode_var::operator= (const CORBA::TypeCode_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = CORBA::TypeCode::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -CORBA::TypeCode_var::operator const CORBA::TypeCode_ptr &() const -{ - return this->ptr_; -} - -ACE_INLINE -CORBA::TypeCode_var::operator CORBA::TypeCode_ptr &() -{ - return this->ptr_; -} - -ACE_INLINE CORBA::TypeCode_ptr -CORBA::TypeCode_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA::TypeCode_ptr -CORBA::TypeCode_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE CORBA::TypeCode_ptr & -CORBA::TypeCode_var::inout (void) -{ - return this->ptr_; -} - -ACE_INLINE CORBA::TypeCode_ptr & -CORBA::TypeCode_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA::TypeCode::_nil (); - return this->ptr_; -} - -ACE_INLINE CORBA::TypeCode_ptr -CORBA::TypeCode_var::_retn (void) -{ - // yield ownership of managed obj reference - CORBA::TypeCode_ptr val = this->ptr_; - this->ptr_ = CORBA::TypeCode::_nil (); - return val; -} - -// ************************************************************* -// Inline operations for class CORBA::TypeCode_out -// ************************************************************* - -ACE_INLINE -CORBA::TypeCode_out::TypeCode_out (CORBA::TypeCode_ptr &p) - : ptr_ (p) -{ - this->ptr_ = CORBA::TypeCode::_nil (); -} - -ACE_INLINE -CORBA::TypeCode_out::TypeCode_out (CORBA::TypeCode_var &p) - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = CORBA::TypeCode::_nil (); -} - -ACE_INLINE -CORBA::TypeCode_out::TypeCode_out (const CORBA::TypeCode_out &p) - : ptr_ (p.ptr_) -{} - -ACE_INLINE CORBA::TypeCode_out & -CORBA::TypeCode_out::operator= (const CORBA::TypeCode_out &p) -{ - this->ptr_ = p.ptr_; - return *this; -} - -ACE_INLINE CORBA::TypeCode_out & -CORBA::TypeCode_out::operator= (CORBA::TypeCode_ptr p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -CORBA::TypeCode_out::operator CORBA::TypeCode_ptr &() -{ - return this->ptr_; -} - -ACE_INLINE CORBA::TypeCode_ptr & -CORBA::TypeCode_out::ptr (void) -{ - return this->ptr_; -} - -ACE_INLINE CORBA::TypeCode_ptr -CORBA::TypeCode_out::operator-> (void) -{ - return this->ptr_; -} |