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

CORBA_Object_var Class Reference

#include <Object.h>

List of all members.

Public Methods

 CORBA_Object_var (void)
 CORBA_Object_var (CORBA::Object_ptr)
 CORBA_Object_var (const CORBA_Object_var &)
 ~CORBA_Object_var (void)
CORBA_Object_var & operator= (CORBA::Object_ptr)
CORBA_Object_var & operator= (const CORBA_Object_var &)
CORBA::Object_ptr operator-> (void) const
 operator const CORBA::Object_ptr & () const
 in, inout, out, _retn. More...

 operator CORBA::Object_ptr & ()
CORBA::Object_ptr in (void) const
CORBA::Object_ptrinout (void)
CORBA::Object_ptrout (void)
CORBA::Object_ptr _retn (void)
CORBA::Object_ptr ptr (void) const

Static Public Methods

CORBA::Object_ptr tao_duplicate (CORBA::Object_ptr)
void tao_release (CORBA::Object_ptr)
CORBA::Object_ptr tao_nil (void)
CORBA::Object_ptr tao_narrow (CORBA::Object *ACE_ENV_ARG_DECL_NOT_USED)
CORBA::Objecttao_upcast (void *)

Private Attributes

CORBA::Object_ptr ptr_


Constructor & Destructor Documentation

ACE_INLINE CORBA_Object_var::CORBA_Object_var void   
 

Definition at line 94 of file Object.i.

00095   : ptr_ (CORBA_Object::_nil ())
00096 {
00097 }

ACE_INLINE CORBA_Object_var::CORBA_Object_var CORBA::Object_ptr   
 

Definition at line 100 of file Object.i.

00101   : ptr_ (p)
00102 {
00103 }

ACE_INLINE CORBA_Object_var::CORBA_Object_var const CORBA_Object_var &   
 

Definition at line 118 of file Object.i.

00119   : ptr_ (CORBA_Object::_duplicate (p.ptr ()))
00120 {
00121 }

ACE_INLINE CORBA_Object_var::~CORBA_Object_var void   
 

Definition at line 106 of file Object.i.

References CORBA::release.

00107 {
00108   CORBA::release (this->ptr_);
00109 }


Member Function Documentation

ACE_INLINE CORBA::Object_ptr CORBA_Object_var::_retn void   
 

Definition at line 181 of file Object.i.

References CORBA_Object::_nil, and ptr_.

00182 {
00183   // yield ownership of managed obj reference
00184   CORBA::Object_ptr val = this->ptr_;
00185   this->ptr_ = CORBA_Object::_nil ();
00186   return val;
00187 }

ACE_INLINE CORBA::Object_ptr CORBA_Object_var::in void    const
 

Definition at line 161 of file Object.i.

References ptr_.

00162 {
00163   return this->ptr_;
00164 }

ACE_INLINE CORBA::Object_ptr & CORBA_Object_var::inout void   
 

Definition at line 167 of file Object.i.

References ptr_.

00168 {
00169   return this->ptr_;
00170 }

ACE_INLINE CORBA_Object_var::operator const CORBA::Object_ptr &   const
 

in, inout, out, _retn.

Definition at line 143 of file Object.i.

00144 {
00145   return this->ptr_;
00146 }

ACE_INLINE CORBA_Object_var::operator CORBA::Object_ptr &  
 

Definition at line 149 of file Object.i.

00150 {
00151   return this->ptr_;
00152 }

ACE_INLINE CORBA::Object_ptr CORBA_Object_var::operator-> void    const
 

Definition at line 155 of file Object.i.

References ptr_.

00156 {
00157   return this->ptr_;
00158 }

ACE_INLINE CORBA_Object_var & CORBA_Object_var::operator= const CORBA_Object_var &   
 

Definition at line 132 of file Object.i.

References CORBA_Object::_duplicate, ptr, ptr_, and CORBA::release.

00133 {
00134   if (this != &p)
00135   {
00136     CORBA::release (this->ptr_);
00137     this->ptr_ = CORBA_Object::_duplicate (p.ptr ());
00138   }
00139   return *this;
00140 }

ACE_INLINE CORBA_Object_var & CORBA_Object_var::operator= CORBA::Object_ptr   
 

Definition at line 124 of file Object.i.

References ptr_, and CORBA::release.

00125 {
00126   CORBA::release (this->ptr_);
00127   this->ptr_ = p;
00128   return *this;
00129 }

ACE_INLINE CORBA::Object_ptr & CORBA_Object_var::out void   
 

Definition at line 173 of file Object.i.

References CORBA_Object::_nil, ptr_, and CORBA::release.

00174 {
00175   CORBA::release (this->ptr_);
00176   this->ptr_ = CORBA_Object::_nil ();
00177   return this->ptr_;
00178 }

ACE_INLINE CORBA::Object_ptr CORBA_Object_var::ptr void    const
 

Definition at line 112 of file Object.i.

References ptr_.

Referenced by CORBA_Object_out::operator=, and operator=.

00113 {
00114   return this->ptr_;
00115 }

ACE_INLINE CORBA::Object_ptr CORBA_Object_var::tao_duplicate CORBA::Object_ptr    [static]
 

Definition at line 190 of file Object.i.

References CORBA_Object::_duplicate.

00191 {
00192   return CORBA_Object::_duplicate (p);
00193 }

CORBA::Object_ptr CORBA_Object_var::tao_narrow CORBA::Object   ACE_ENV_ARG_DECL_NOT_USED [static]
 

ACE_INLINE CORBA::Object_ptr CORBA_Object_var::tao_nil void    [static]
 

Definition at line 202 of file Object.i.

References CORBA_Object::_nil.

00203 {
00204   return CORBA_Object::_nil ();
00205 }

ACE_INLINE void CORBA_Object_var::tao_release CORBA::Object_ptr    [static]
 

Definition at line 196 of file Object.i.

References CORBA::release.

00197 {
00198   CORBA::release (p);
00199 }

ACE_INLINE CORBA::Object * CORBA_Object_var::tao_upcast void *    [static]
 

Definition at line 217 of file Object.i.

00218 {
00219   CORBA_Object **tmp =
00220     ACE_static_cast (CORBA_Object **, src);
00221   return *tmp;
00222 }


Member Data Documentation

CORBA::Object_ptr CORBA_Object_var::ptr_ [private]
 

Definition at line 329 of file Object.h.

Referenced by _retn, in, inout, operator->, operator=, out, and ptr.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:00:58 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002