diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-05 07:19:41 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-05 07:19:41 +0000 |
commit | a3c9a92711dfa4d7eefaffd5bf1bf6235fd74a8a (patch) | |
tree | 808937bf9b591f19dd97c781a095db338c85af0c /TAO/tao/Environment.i | |
parent | a27ab066486b72d93edcf9110fb570018b7d7fc4 (diff) | |
download | ATCD-a3c9a92711dfa4d7eefaffd5bf1bf6235fd74a8a.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/tao/Environment.i')
-rw-r--r-- | TAO/tao/Environment.i | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/TAO/tao/Environment.i b/TAO/tao/Environment.i index 2411dde95ea..6d318b17359 100644 --- a/TAO/tao/Environment.i +++ b/TAO/tao/Environment.i @@ -7,3 +7,136 @@ CORBA_Environment::exception (void) const return this->exception_; } +// ************************************************************* +// Inline operations for class CORBA_Environment_var +// ************************************************************* + +ACE_INLINE +CORBA_Environment_var::CORBA_Environment_var (void) + : ptr_ (0) +{} + +ACE_INLINE +CORBA_Environment_var::CORBA_Environment_var (CORBA_Environment_ptr p) + : ptr_ (p) +{} + +ACE_INLINE CORBA_Environment_ptr +CORBA_Environment_var::ptr (void) const +{ + return this->ptr_; +} + +ACE_INLINE +CORBA_Environment_var::CORBA_Environment_var (const CORBA_Environment_var &p) + : ptr_ (new CORBA_Environment (*p.ptr ())) +{} + +ACE_INLINE +CORBA_Environment_var::~CORBA_Environment_var (void) +{ + delete this->ptr_; +} + +ACE_INLINE +CORBA_Environment_var::operator const CORBA_Environment_ptr &() const +{ + return this->ptr_; +} + +ACE_INLINE +CORBA_Environment_var::operator CORBA_Environment_ptr &() +{ + return this->ptr_; +} + +ACE_INLINE CORBA_Environment_ptr +CORBA_Environment_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE CORBA_Environment_ptr +CORBA_Environment_var::in (void) const +{ + return this->ptr_; +} + +ACE_INLINE CORBA_Environment_ptr & +CORBA_Environment_var::inout (void) +{ + return this->ptr_; +} + +ACE_INLINE CORBA_Environment_ptr & +CORBA_Environment_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE CORBA_Environment_ptr +CORBA_Environment_var::_retn (void) +{ + // yield ownership of managed obj reference + CORBA_Environment_ptr val = this->ptr_; + this->ptr_ = 0; + return val; +} + +// ************************************************************* +// Inline operations for class CORBA_Environment_out +// ************************************************************* + +ACE_INLINE +CORBA_Environment_out::CORBA_Environment_out (CORBA_Environment_ptr &p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +CORBA_Environment_out::CORBA_Environment_out (CORBA_Environment_var &p) + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +CORBA_Environment_out::CORBA_Environment_out (const CORBA_Environment_out &p) + : ptr_ (p.ptr_) +{} + +ACE_INLINE CORBA_Environment_out & +CORBA_Environment_out::operator= (const CORBA_Environment_out &p) +{ + this->ptr_ = p.ptr_; + return *this; +} + +ACE_INLINE CORBA_Environment_out & +CORBA_Environment_out::operator= (CORBA_Environment_ptr p) +{ + this->ptr_ = p; + return *this; +} + +ACE_INLINE +CORBA_Environment_out::operator CORBA_Environment_ptr &() +{ + return this->ptr_; +} + +ACE_INLINE CORBA_Environment_ptr & +CORBA_Environment_out::ptr (void) +{ + return this->ptr_; +} + +ACE_INLINE CORBA_Environment_ptr +CORBA_Environment_out::operator-> (void) +{ + return this->ptr_; +} |