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

CORBA_Any_var Class Reference

Provide for automatic storage deallocation on going out of scope. More...

#include <Any.h>

Collaboration diagram for CORBA_Any_var:

Collaboration graph
[legend]
List of all members.

Public Methods

 CORBA_Any_var (void)
 default constructor. More...

 CORBA_Any_var (CORBA_Any *a)
 construct from an Any pointer. More...

 CORBA_Any_var (const CORBA_Any_var &a)
 copy constructor. More...

 ~CORBA_Any_var (void)
 destructor. More...

CORBA_Any_var & operator= (CORBA_Any *a)
 assignment from a pointer to Any. More...

CORBA_Any_var & operator= (const CORBA_Any_var &a)
CORBA_Anyoperator-> (void)
 arrow operator (smart pointer). More...

 operator CORBA_Any & ()
 cast. More...

 operator const CORBA_Any * () const
 cast. More...

 operator CORBA_Any *& ()
 cast. More...

const CORBA_Anyin (void) const
 for in Any parameter. More...

CORBA_Anyinout (void)
 for inout Any parameter. More...

CORBA_Any *& out (void)
 for out Any parameter. More...

CORBA_Any_retn (void)
 for Any return types. More...


Private Attributes

CORBA_Anyptr_
 Holds the Any. More...


Detailed Description

Provide for automatic storage deallocation on going out of scope.

Definition at line 428 of file Any.h.


Constructor & Destructor Documentation

ACE_INLINE CORBA_Any_var::CORBA_Any_var void   
 

default constructor.

Definition at line 59 of file Any.i.

00060   : ptr_ (0)
00061 {
00062 }

ACE_INLINE CORBA_Any_var::CORBA_Any_var CORBA_Any   a
 

construct from an Any pointer.

Definition at line 65 of file Any.i.

00066   : ptr_ (p)
00067 {
00068 }

CORBA_Any_var::CORBA_Any_var const CORBA_Any_var &    a
 

copy constructor.

Definition at line 1957 of file Any.cpp.

References ACE_NEW.

01958   : ptr_ (0)
01959 {
01960   if (r.ptr_ != 0)
01961     {
01962       ACE_NEW (this->ptr_,
01963                CORBA::Any (*r.ptr_));
01964     }
01965 }

ACE_INLINE CORBA_Any_var::~CORBA_Any_var void   
 

destructor.

Definition at line 71 of file Any.i.

References ptr_.

00072 {
00073   delete this->ptr_;
00074 }


Member Function Documentation

ACE_INLINE CORBA_Any * CORBA_Any_var::_retn void   
 

for Any return types.

Definition at line 121 of file Any.i.

References ptr_.

00122 {
00123   CORBA_Any *temp = this->ptr_;
00124   this->ptr_ = 0;
00125   return temp;
00126 }

ACE_INLINE const CORBA_Any & CORBA_Any_var::in void    const
 

for in Any parameter.

Definition at line 101 of file Any.i.

References ptr_.

00102 {
00103   return *this->ptr_;
00104 }

ACE_INLINE CORBA_Any & CORBA_Any_var::inout void   
 

for inout Any parameter.

Definition at line 107 of file Any.i.

References ptr_.

Referenced by operator<<=, and operator>>=.

00108 {
00109   return *this->ptr_;
00110 }

ACE_INLINE CORBA_Any_var::operator const CORBA_Any *   const
 

cast.

Definition at line 89 of file Any.i.

References ptr_.

00090 {
00091   return this->ptr_;
00092 }

ACE_INLINE CORBA_Any_var::operator CORBA_Any &  
 

cast.

Definition at line 77 of file Any.i.

References ptr_.

00078 {
00079   return *this->ptr_;
00080 }

ACE_INLINE CORBA_Any_var::operator CORBA_Any *&  
 

cast.

Definition at line 83 of file Any.i.

References ptr_.

00084 {
00085   return this->ptr_;
00086 }

ACE_INLINE CORBA::Any * CORBA_Any_var::operator-> void   
 

arrow operator (smart pointer).

Definition at line 95 of file Any.i.

References ptr_.

00096 {
00097   return this->ptr_;
00098 }

CORBA_Any_var& CORBA_Any_var::operator= const CORBA_Any_var &    a
 

assignment from an Any_var This operation requires memory allocation. If the allocation fails, *this is returned unmodified.

CORBA_Any_var& CORBA_Any_var::operator= CORBA_Any   a
 

assignment from a pointer to Any.

ACE_INLINE CORBA_Any *& CORBA_Any_var::out void   
 

for out Any parameter.

Definition at line 113 of file Any.i.

References ptr_.

00114 {
00115   delete this->ptr_;
00116   this->ptr_ = 0;
00117   return this->ptr_;
00118 }


Member Data Documentation

CORBA_Any* CORBA_Any_var::ptr_ [private]
 

Holds the Any.

Definition at line 480 of file Any.h.

Referenced by _retn, in, inout, operator const CORBA_Any *, operator CORBA_Any &, operator CORBA_Any *&, operator->, out, and ~CORBA_Any_var.


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