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

CORBA_ValueFactoryBase Class Reference

#include <ValueFactory.h>

List of all members.

Public Methods

 CORBA_ValueFactoryBase ()
virtual ~CORBA_ValueFactoryBase ()
void _add_ref (void)
void _remove_ref (void)
virtual CORBA_ValueBasecreate_for_unmarshal (void)=0
 In a derived class T use return type TAO_OBV_CREATE_RETURN_TYPE (T) (see at definition below). More...

virtual CORBA_AbstractBasecreate_for_unmarshal_abstract (void)

Private Attributes

CORBA::ULong _tao_reference_count_
TAO_SYNCH_MUTEX _tao_reference_count_lock_


Constructor & Destructor Documentation

ACE_INLINE CORBA_ValueFactoryBase::CORBA_ValueFactoryBase  
 

Definition at line 4 of file ValueFactory.i.

00005   : _tao_reference_count_ (1)
00006 {
00007 }

CORBA_ValueFactoryBase::~CORBA_ValueFactoryBase   [virtual]
 

Definition at line 27 of file ValueFactory.cpp.

00028 {
00029 }


Member Function Documentation

ACE_INLINE void CORBA_ValueFactoryBase::_add_ref void   
 

Definition at line 10 of file ValueFactory.i.

References _tao_reference_count_, ACE_GUARD, and TAO_SYNCH_MUTEX.

Referenced by TAO_ValueFactory_Map::find, and TAO_ValueFactory_Map::rebind.

00011 {
00012   ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->_tao_reference_count_lock_);
00013   ++_tao_reference_count_;
00014 }

ACE_INLINE void CORBA_ValueFactoryBase::_remove_ref void   
 

Definition at line 17 of file ValueFactory.i.

References _tao_reference_count_, ACE_GUARD, and TAO_SYNCH_MUTEX.

00018 {
00019   {
00020     ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->_tao_reference_count_lock_);
00021     -- this->_tao_reference_count_;
00022     if (this->_tao_reference_count_ != 0)
00023       return;
00024   }
00025   delete this;
00026 }

virtual CORBA_ValueBase* CORBA_ValueFactoryBase::create_for_unmarshal void    [pure virtual]
 

In a derived class T use return type TAO_OBV_CREATE_RETURN_TYPE (T) (see at definition below).

CORBA::AbstractBase * CORBA_ValueFactoryBase::create_for_unmarshal_abstract void    [virtual]
 

Definition at line 33 of file ValueFactory.cpp.

00034 {
00035   return 0;
00036 }


Member Data Documentation

CORBA::ULong CORBA_ValueFactoryBase::_tao_reference_count_ [private]
 

Definition at line 46 of file ValueFactory.h.

Referenced by _add_ref, and _remove_ref.

TAO_SYNCH_MUTEX CORBA_ValueFactoryBase::_tao_reference_count_lock_ [private]
 

Definition at line 47 of file ValueFactory.h.


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