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

CORBA_TypeCode_var Class Reference

A smart pointer for TypeCodes. More...

#include <Typecode.h>

Collaboration diagram for CORBA_TypeCode_var:

Collaboration graph
[legend]
List of all members.

Public Methods

 CORBA_TypeCode_var (void)
 CORBA_TypeCode_var (CORBA_TypeCode_ptr)
 CORBA_TypeCode_var (const CORBA_TypeCode_var &)
 ~CORBA_TypeCode_var (void)
CORBA_TypeCode_var & operator= (CORBA_TypeCode_ptr)
CORBA_TypeCode_var & operator= (const CORBA_TypeCode_var &)
CORBA_TypeCode_ptr operator-> (void) const
 operator const CORBA_TypeCode_ptr & () const
 in, inout, out, _retn. More...

 operator CORBA_TypeCode_ptr & ()
CORBA_TypeCode_ptr in (void) const
CORBA_TypeCode_ptrinout (void)
CORBA_TypeCode_ptrout (void)
CORBA_TypeCode_ptr _retn (void)
CORBA_TypeCode_ptr ptr (void) const

Private Attributes

CORBA_TypeCode_ptr ptr_

Detailed Description

A smart pointer for TypeCodes.

Implements the _var class for the TypeCode pseudo object.

Definition at line 549 of file Typecode.h.


Constructor & Destructor Documentation

ACE_INLINE CORBA_TypeCode_var::CORBA_TypeCode_var void   
 

Definition at line 120 of file Typecode.i.

00121   : ptr_ (CORBA_TypeCode::_nil ())
00122 {}

ACE_INLINE CORBA_TypeCode_var::CORBA_TypeCode_var CORBA_TypeCode_ptr   
 

Definition at line 125 of file Typecode.i.

00126   : ptr_ (p)
00127 {}

ACE_INLINE CORBA_TypeCode_var::CORBA_TypeCode_var const CORBA_TypeCode_var &   
 

Definition at line 136 of file Typecode.i.

00137   : ptr_ (CORBA_TypeCode::_duplicate (p.ptr ()))
00138 {}

ACE_INLINE CORBA_TypeCode_var::~CORBA_TypeCode_var void   
 

Definition at line 141 of file Typecode.i.

References CORBA::release.

00142 {
00143   CORBA::release (this->ptr_);
00144 }


Member Function Documentation

ACE_INLINE CORBA_TypeCode_ptr CORBA_TypeCode_var::_retn void   
 

Definition at line 204 of file Typecode.i.

References CORBA_TypeCode::_nil, and ptr_.

00205 {
00206   // yield ownership of managed obj reference
00207   CORBA_TypeCode_ptr val = this->ptr_;
00208   this->ptr_ = CORBA_TypeCode::_nil ();
00209   return val;
00210 }

ACE_INLINE CORBA_TypeCode_ptr CORBA_TypeCode_var::in void    const
 

Definition at line 184 of file Typecode.i.

References ptr_.

00185 {
00186   return this->ptr_;
00187 }

ACE_INLINE CORBA_TypeCode_ptr & CORBA_TypeCode_var::inout void   
 

Definition at line 190 of file Typecode.i.

References ptr_.

00191 {
00192   return this->ptr_;
00193 }

ACE_INLINE CORBA_TypeCode_var::operator const CORBA_TypeCode_ptr &   const
 

in, inout, out, _retn.

Definition at line 166 of file Typecode.i.

References ptr_.

00167 {
00168   return this->ptr_;
00169 }

ACE_INLINE CORBA_TypeCode_var::operator CORBA_TypeCode_ptr &  
 

Definition at line 172 of file Typecode.i.

References ptr_.

00173 {
00174   return this->ptr_;
00175 }

ACE_INLINE CORBA_TypeCode_ptr CORBA_TypeCode_var::operator-> void    const
 

Definition at line 178 of file Typecode.i.

References ptr_.

00179 {
00180   return this->ptr_;
00181 }

ACE_INLINE CORBA_TypeCode_var & CORBA_TypeCode_var::operator= const CORBA_TypeCode_var &   
 

Definition at line 155 of file Typecode.i.

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

00156 {
00157   if (this != &p)
00158     {
00159       CORBA::release (this->ptr_);
00160       this->ptr_ = CORBA_TypeCode::_duplicate (p.ptr ());
00161     }
00162   return *this;
00163 }

ACE_INLINE CORBA_TypeCode_var & CORBA_TypeCode_var::operator= CORBA_TypeCode_ptr   
 

Definition at line 147 of file Typecode.i.

References ptr_, and CORBA::release.

00148 {
00149   CORBA::release (this->ptr_);
00150   this->ptr_ = p;
00151   return *this;
00152 }

ACE_INLINE CORBA_TypeCode_ptr & CORBA_TypeCode_var::out void   
 

Definition at line 196 of file Typecode.i.

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

00197 {
00198   CORBA::release (this->ptr_);
00199   this->ptr_ = CORBA_TypeCode::_nil ();
00200   return this->ptr_;
00201 }

ACE_INLINE CORBA_TypeCode_ptr CORBA_TypeCode_var::ptr void    const
 

Definition at line 130 of file Typecode.i.

References ptr_.

Referenced by operator=.

00131 {
00132   return this->ptr_;
00133 }


Member Data Documentation

CORBA_TypeCode_ptr CORBA_TypeCode_var::ptr_ [private]
 

Definition at line 571 of file Typecode.h.

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


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