Public Member Functions | Private Attributes

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 Member Functions

 Any_var (void)
 Any_var (Any *a)
 Any_var (const Any_var &)
 ~Any_var (void)
Any_varoperator= (Any *)
Any_varoperator= (const Any_var &)
Anyoperator-> (void)
 Arrow operator (smart pointer).
 operator const Any * () const
 Cast.
 operator Any *& ()
 Cast.
const Anyin (void) const
 For in Any parameter.
Anyinout (void)
 For inout Any parameter.
Any *& out (void)
 For out Any parameter.
Any_retn (void)
 For Any return type.
Anyptr (void) const
 TAO specific extension.

Private Attributes

Anyptr_
 Holds the Any.

Detailed Description

Provide for automatic storage deallocation on going out of scope.

Definition at line 186 of file Any.h.


Constructor & Destructor Documentation

CORBA::Any_var::Any_var ( void   ) 

Definition at line 18 of file Any.inl.

  : ptr_ (0)
{
}

CORBA::Any_var::Any_var ( CORBA::Any p  ) 

Definition at line 24 of file Any.inl.

  : ptr_ (p)
{
}

CORBA::Any_var::Any_var ( const Any_var r  ) 

Definition at line 212 of file Any.cpp.

  : ptr_ (0)
{
  if (r.ptr_ != 0)
    {
      ACE_NEW (this->ptr_,
               CORBA::Any (*r.ptr_));
    }
}

CORBA::Any_var::~Any_var ( void   ) 

Definition at line 30 of file Any.inl.

{
  delete this->ptr_;
}


Member Function Documentation

CORBA::Any * CORBA::Any_var::_retn ( void   ) 

For Any return type.

Definition at line 74 of file Any.inl.

{
  CORBA::Any *temp = this->ptr_;
  this->ptr_ = 0;
  return temp;
}

const CORBA::Any & CORBA::Any_var::in ( void   )  const

For in Any parameter.

Definition at line 54 of file Any.inl.

{
  return *this->ptr_;
}

CORBA::Any & CORBA::Any_var::inout ( void   ) 

For inout Any parameter.

Definition at line 60 of file Any.inl.

{
  return *this->ptr_;
}

CORBA::Any_var::operator Any *& (  ) 

Cast.

CORBA::Any_var::operator const Any * (  )  const

Cast.

CORBA::Any * CORBA::Any_var::operator-> ( void   ) 

Arrow operator (smart pointer).

Definition at line 48 of file Any.inl.

{
  return this->ptr_;
}

CORBA::Any_var & CORBA::Any_var::operator= ( const Any_var r  ) 

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

Definition at line 235 of file Any.cpp.

{
  delete this->ptr_;
  this->ptr_ = 0;

  if (r.ptr_ != 0)
    {
      ACE_NEW_RETURN (this->ptr_,
                      CORBA::Any (*r.ptr_),
                      *this);
    }

  return *this;
}

CORBA::Any_var & CORBA::Any_var::operator= ( CORBA::Any p  ) 

Definition at line 223 of file Any.cpp.

{
  if (this->ptr_ != p)
    {
      delete this->ptr_;
      this->ptr_ = p;
    }

  return *this;
}

CORBA::Any *& CORBA::Any_var::out ( void   ) 

For out Any parameter.

Definition at line 66 of file Any.inl.

{
  delete this->ptr_;
  this->ptr_ = 0;
  return this->ptr_;
}

CORBA::Any * CORBA::Any_var::ptr ( void   )  const

TAO specific extension.

Definition at line 82 of file Any.inl.

{
  return this->ptr_;
}


Member Data Documentation

Holds the Any.

Definition at line 229 of file Any.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines