Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Environment.i

Go to the documentation of this file.
00001 // This may look like C, but it's really -*- C++ -*-
00002 // $Id: Environment.i,v 1.1.1.2 2001/12/04 14:34:41 chad Exp $
00003 
00004 ACE_INLINE CORBA::Boolean
00005 CORBA::is_nil (CORBA::Environment_ptr env)
00006 {
00007   return env == 0;
00008 }
00009 
00010 ACE_INLINE void
00011 CORBA::release (CORBA::Environment_ptr env)
00012 {
00013   if (env == 0)
00014     return;
00015   delete env;
00016 }
00017 
00018 ACE_INLINE CORBA_Exception*
00019 CORBA_Environment::exception (void) const
00020 {
00021   return this->exception_;
00022 }
00023 
00024 ACE_INLINE CORBA_Environment *
00025 CORBA_Environment::_duplicate (CORBA_Environment *x)
00026 {
00027   if (x == 0)
00028     return 0;
00029   return new CORBA_Environment (*x);
00030 }
00031 
00032 ACE_INLINE CORBA_Environment_ptr
00033 CORBA_Environment::_nil (void)
00034 {
00035   return (CORBA_Environment_ptr)0;
00036 }
00037 
00038 // Inline operations for class CORBA_Environment_var
00039 
00040 ACE_INLINE
00041 CORBA_Environment_var::CORBA_Environment_var (void)
00042   : ptr_ (0)
00043 {}
00044 
00045 ACE_INLINE
00046 CORBA_Environment_var::CORBA_Environment_var (CORBA_Environment_ptr p)
00047   : ptr_ (p)
00048 {}
00049 
00050 ACE_INLINE CORBA_Environment_ptr
00051 CORBA_Environment_var::ptr (void) const
00052 {
00053   return this->ptr_;
00054 }
00055 
00056 ACE_INLINE
00057 CORBA_Environment_var::CORBA_Environment_var (const CORBA_Environment_var &p)
00058   : ptr_ (new CORBA_Environment (*p.ptr ()))
00059 {}
00060 
00061 ACE_INLINE
00062 CORBA_Environment_var::~CORBA_Environment_var (void)
00063 {
00064   delete this->ptr_;
00065 }
00066 
00067 ACE_INLINE
00068 CORBA_Environment_var::operator const CORBA_Environment_ptr &() const
00069 {
00070   return this->ptr_;
00071 }
00072 
00073 ACE_INLINE
00074 CORBA_Environment_var::operator CORBA_Environment_ptr &()
00075 {
00076   return this->ptr_;
00077 }
00078 
00079 ACE_INLINE CORBA_Environment_ptr
00080 CORBA_Environment_var::operator-> (void) const
00081 {
00082   return this->ptr_;
00083 }
00084 
00085 ACE_INLINE CORBA_Environment_ptr
00086 CORBA_Environment_var::in (void) const
00087 {
00088   return this->ptr_;
00089 }
00090 
00091 ACE_INLINE CORBA_Environment_ptr &
00092 CORBA_Environment_var::inout (void)
00093 {
00094   return this->ptr_;
00095 }
00096 
00097 ACE_INLINE CORBA_Environment_ptr &
00098 CORBA_Environment_var::out (void)
00099 {
00100   delete this->ptr_;
00101   this->ptr_ = 0;
00102   return this->ptr_;
00103 }
00104 
00105 ACE_INLINE CORBA_Environment_ptr
00106 CORBA_Environment_var::_retn (void)
00107 {
00108   // yield ownership of managed obj reference
00109   CORBA_Environment_ptr val = this->ptr_;
00110   this->ptr_ = 0;
00111   return val;
00112 }
00113 
00114 // Inline operations for class CORBA_Environment_out
00115 
00116 ACE_INLINE
00117 CORBA_Environment_out::CORBA_Environment_out (CORBA_Environment_ptr &p)
00118   : ptr_ (p)
00119 {
00120   this->ptr_ = 0;
00121 }
00122 
00123 ACE_INLINE
00124 CORBA_Environment_out::CORBA_Environment_out (CORBA_Environment_var &p)
00125   : ptr_ (p.out ())
00126 {
00127   delete this->ptr_;
00128   this->ptr_ = 0;
00129 }
00130 
00131 ACE_INLINE
00132 CORBA_Environment_out::CORBA_Environment_out (const CORBA_Environment_out &p)
00133   : ptr_ (p.ptr_)
00134 {}
00135 
00136 ACE_INLINE CORBA_Environment_out &
00137 CORBA_Environment_out::operator= (const CORBA_Environment_out &p)
00138 {
00139   this->ptr_ = p.ptr_;
00140   return *this;
00141 }
00142 
00143 ACE_INLINE CORBA_Environment_out &
00144 CORBA_Environment_out::operator= (CORBA_Environment_ptr p)
00145 {
00146   this->ptr_ = p;
00147   return *this;
00148 }
00149 
00150 ACE_INLINE
00151 CORBA_Environment_out::operator CORBA_Environment_ptr &()
00152 {
00153   return this->ptr_;
00154 }
00155 
00156 ACE_INLINE CORBA_Environment_ptr &
00157 CORBA_Environment_out::ptr (void)
00158 {
00159   return this->ptr_;
00160 }
00161 
00162 ACE_INLINE CORBA_Environment_ptr
00163 CORBA_Environment_out::operator-> (void)
00164 {
00165   return this->ptr_;
00166 }

Generated on Mon Jun 16 13:48:22 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002