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

PortableInterceptor::ObjectReferenceFactory_var Class Reference

#include <ObjectReferenceTemplateC.h>

Collaboration diagram for PortableInterceptor::ObjectReferenceFactory_var:

Collaboration graph
[legend]
List of all members.

Public Methods

 ObjectReferenceFactory_var (void)
 ObjectReferenceFactory_var (ObjectReferenceFactory *)
 ObjectReferenceFactory_var (const ObjectReferenceFactory *)
 ObjectReferenceFactory_var (const ObjectReferenceFactory_var &)
 ~ObjectReferenceFactory_var (void)
ObjectReferenceFactory_var & operator= (ObjectReferenceFactory *)
ObjectReferenceFactory_var & operator= (const ObjectReferenceFactory_var &)
ObjectReferenceFactoryoperator-> (void) const
 operator const ObjectReferenceFactory * () const
 operator ObjectReferenceFactory * ()
ObjectReferenceFactoryin (void) const
ObjectReferenceFactory *& inout (void)
ObjectReferenceFactory *& out (void)
ObjectReferenceFactory_retn (void)
ObjectReferenceFactoryptr (void) const

Static Public Methods

void tao_add_ref (ObjectReferenceFactory *)
void tao_remove_ref (ObjectReferenceFactory *)

Private Attributes

ObjectReferenceFactoryptr_

Constructor & Destructor Documentation

PortableInterceptor::ObjectReferenceFactory_var::ObjectReferenceFactory_var void   
 

Definition at line 299 of file ObjectReferenceTemplateC.cpp.

00300   : ptr_ (0)
00301 {}

PortableInterceptor::ObjectReferenceFactory_var::ObjectReferenceFactory_var ObjectReferenceFactory  
 

Definition at line 303 of file ObjectReferenceTemplateC.cpp.

00304   : ptr_ (p)
00305 {}

PortableInterceptor::ObjectReferenceFactory_var::ObjectReferenceFactory_var const ObjectReferenceFactory  
 

Definition at line 307 of file ObjectReferenceTemplateC.cpp.

00308   : ptr_ (ACE_const_cast(ObjectReferenceFactory*, p))
00309 {}

PortableInterceptor::ObjectReferenceFactory_var::ObjectReferenceFactory_var const ObjectReferenceFactory_var &   
 

Definition at line 317 of file ObjectReferenceTemplateC.cpp.

References CORBA::add_ref.

00318 {
00319   CORBA::add_ref (p.ptr ());
00320   this->ptr_ = p.ptr ();
00321 }

PortableInterceptor::ObjectReferenceFactory_var::~ObjectReferenceFactory_var void   
 

Definition at line 323 of file ObjectReferenceTemplateC.cpp.

References CORBA::remove_ref.

00324 {
00325   CORBA::remove_ref (this->ptr_);
00326 }


Member Function Documentation

PortableInterceptor::ObjectReferenceFactory * PortableInterceptor::ObjectReferenceFactory_var::_retn void   
 

Definition at line 386 of file ObjectReferenceTemplateC.cpp.

References ptr_.

00387 {
00388   // yield ownership of managed obj reference
00389   ObjectReferenceFactory* tmp = this->ptr_;
00390   this->ptr_ = 0;
00391   return tmp;
00392 }

PortableInterceptor::ObjectReferenceFactory * PortableInterceptor::ObjectReferenceFactory_var::in void    const
 

Definition at line 366 of file ObjectReferenceTemplateC.cpp.

References ptr_.

00367 {
00368   return this->ptr_;
00369 }

PortableInterceptor::ObjectReferenceFactory *& PortableInterceptor::ObjectReferenceFactory_var::inout void   
 

Definition at line 372 of file ObjectReferenceTemplateC.cpp.

References ptr_.

00373 {
00374   return this->ptr_;
00375 }

PortableInterceptor::ObjectReferenceFactory_var::operator const ObjectReferenceFactory *   const
 

PortableInterceptor::ObjectReferenceFactory_var::operator ObjectReferenceFactory *  
 

PortableInterceptor::ObjectReferenceFactory * PortableInterceptor::ObjectReferenceFactory_var::operator-> void    const
 

Definition at line 360 of file ObjectReferenceTemplateC.cpp.

References ptr_.

00361 {
00362   return this->ptr_;
00363 }

PortableInterceptor::ObjectReferenceFactory_var & PortableInterceptor::ObjectReferenceFactory_var::operator= const ObjectReferenceFactory_var &   
 

Definition at line 337 of file ObjectReferenceTemplateC.cpp.

References CORBA::add_ref, ptr_, and CORBA::remove_ref.

00338 {
00339   if (this != &p)
00340   {
00341     CORBA::remove_ref (this->ptr_);
00342     ObjectReferenceFactory* tmp = p.ptr ();
00343     CORBA::add_ref (tmp);
00344     this->ptr_ = tmp;
00345   }
00346   return *this;
00347 }

PortableInterceptor::ObjectReferenceFactory_var & PortableInterceptor::ObjectReferenceFactory_var::operator= ObjectReferenceFactory  
 

Definition at line 329 of file ObjectReferenceTemplateC.cpp.

References ptr_, and CORBA::remove_ref.

00330 {
00331   CORBA::remove_ref (this->ptr_);
00332   this->ptr_ = p;
00333   return *this;
00334 }

PortableInterceptor::ObjectReferenceFactory *& PortableInterceptor::ObjectReferenceFactory_var::out void   
 

Definition at line 378 of file ObjectReferenceTemplateC.cpp.

References ptr_, and CORBA::remove_ref.

00379 {
00380   CORBA::remove_ref (this->ptr_);
00381   this->ptr_ = 0;
00382   return this->ptr_;
00383 }

PortableInterceptor::ObjectReferenceFactory * PortableInterceptor::ObjectReferenceFactory_var::ptr void    const
 

Definition at line 312 of file ObjectReferenceTemplateC.cpp.

References ptr_.

00313 {
00314   return this->ptr_;
00315 }

void PortableInterceptor::ObjectReferenceFactory_var::tao_add_ref ObjectReferenceFactory   [static]
 

Definition at line 395 of file ObjectReferenceTemplateC.cpp.

References CORBA::add_ref.

00398 {
00399   CORBA::add_ref (p);
00400 }

void PortableInterceptor::ObjectReferenceFactory_var::tao_remove_ref ObjectReferenceFactory   [static]
 

Definition at line 403 of file ObjectReferenceTemplateC.cpp.

References CORBA::remove_ref.

00406 {
00407   CORBA::remove_ref (p);
00408 }


Member Data Documentation

ObjectReferenceFactory* PortableInterceptor::ObjectReferenceFactory_var::ptr_ [private]
 

Definition at line 125 of file ObjectReferenceTemplateC.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 16:11:33 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002