summaryrefslogtreecommitdiff
path: root/TAO/tao/Environment.i
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-05 07:19:41 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-05 07:19:41 +0000
commitf2d36e3bcc1d55bb62e969bc2407c9136a00c365 (patch)
tree808937bf9b591f19dd97c781a095db338c85af0c /TAO/tao/Environment.i
parentdfccb2a83d56941e787aea501737209153b7cae3 (diff)
downloadATCD-f2d36e3bcc1d55bb62e969bc2407c9136a00c365.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/tao/Environment.i')
-rw-r--r--TAO/tao/Environment.i133
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_;
+}