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

CORBA_Principal_var Class Reference

The T_var class for Principal. More...

#include <Principal.h>

Collaboration diagram for CORBA_Principal_var:

Collaboration graph
[legend]
List of all members.

Public Methods

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

 operator CORBA_Principal_ptr & ()
CORBA_Principal_ptr in (void) const
CORBA_Principal_ptrinout (void)
CORBA_Principal_ptrout (void)
CORBA_Principal_ptr _retn (void)
CORBA_Principal_ptr ptr (void) const

Private Attributes

CORBA_Principal_ptr ptr_

Detailed Description

The T_var class for Principal.

As any other pseudo object Principal must have a T_var class, the interface an semantics are specified in the CORBA spec. = NOTE We use CORBA_Principal_ptr as the _ptr type instead of CORBA::Principal_ptr, this is an attempt to reduced the cyclic dependencies in TAO.

Definition at line 98 of file Principal.h.


Constructor & Destructor Documentation

ACE_INLINE CORBA_Principal_var::CORBA_Principal_var void   
 

Definition at line 56 of file Principal.i.

00057   : ptr_ (CORBA_Principal::_nil ())
00058 {
00059 }

ACE_INLINE CORBA_Principal_var::CORBA_Principal_var CORBA_Principal_ptr   
 

Definition at line 62 of file Principal.i.

00063   : ptr_ (p)
00064 {}

ACE_INLINE CORBA_Principal_var::CORBA_Principal_var const CORBA_Principal_var &   
 

Definition at line 79 of file Principal.i.

00080   : ptr_ (CORBA_Principal::_duplicate (p.ptr ()))
00081 {}

ACE_INLINE CORBA_Principal_var::~CORBA_Principal_var void   
 

Definition at line 67 of file Principal.i.

References CORBA::release.

00068 {
00069   CORBA::release (this->ptr_);
00070 }


Member Function Documentation

ACE_INLINE CORBA_Principal_ptr CORBA_Principal_var::_retn void   
 

Definition at line 141 of file Principal.i.

References CORBA_Principal::_nil, and ptr_.

00142 {
00143   // yield ownership
00144   CORBA_Principal_ptr val = this->ptr_;
00145   this->ptr_ = CORBA_Principal::_nil ();
00146   return val;
00147 }

ACE_INLINE CORBA_Principal_ptr CORBA_Principal_var::in void    const
 

Definition at line 121 of file Principal.i.

References ptr_.

00122 {
00123   return this->ptr_;
00124 }

ACE_INLINE CORBA_Principal_ptr & CORBA_Principal_var::inout void   
 

Definition at line 127 of file Principal.i.

References ptr_.

00128 {
00129   return this->ptr_;
00130 }

ACE_INLINE CORBA_Principal_var::operator const CORBA_Principal_ptr &   const
 

in, inout, out, _retn.

Definition at line 103 of file Principal.i.

References ptr_.

00104 {
00105   return this->ptr_;
00106 }

ACE_INLINE CORBA_Principal_var::operator CORBA_Principal_ptr &  
 

Definition at line 109 of file Principal.i.

References ptr_.

00110 {
00111   return this->ptr_;
00112 }

ACE_INLINE CORBA_Principal_ptr CORBA_Principal_var::operator-> void    const
 

Definition at line 115 of file Principal.i.

References ptr_.

00116 {
00117   return this->ptr_;
00118 }

ACE_INLINE CORBA_Principal_var & CORBA_Principal_var::operator= const CORBA_Principal_var &   
 

Definition at line 92 of file Principal.i.

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

00093 {
00094   if (this != &p)
00095   {
00096     CORBA::release (this->ptr_);
00097     this->ptr_ = CORBA_Principal::_duplicate (p.ptr ());
00098   }
00099   return *this;
00100 }

ACE_INLINE CORBA_Principal_var & CORBA_Principal_var::operator= CORBA_Principal_ptr   
 

Definition at line 84 of file Principal.i.

References ptr_, and CORBA::release.

00085 {
00086   CORBA::release (this->ptr_);
00087   this->ptr_ = p;
00088   return *this;
00089 }

ACE_INLINE CORBA_Principal_ptr & CORBA_Principal_var::out void   
 

Definition at line 133 of file Principal.i.

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

00134 {
00135   CORBA::release (this->ptr_);
00136   this->ptr_ = CORBA_Principal::_nil ();
00137   return this->ptr_;
00138 }

ACE_INLINE CORBA_Principal_ptr CORBA_Principal_var::ptr void    const
 

Definition at line 73 of file Principal.i.

References ptr_.

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

00074 {
00075   return this->ptr_;
00076 }


Member Data Documentation

CORBA_Principal_ptr CORBA_Principal_var::ptr_ [private]
 

Definition at line 120 of file Principal.h.

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


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