Horus Doc || Corba Reference || Corba   Client Server   Stubs C++   Stubs Java   Servant Generator  

HxRefCountBase Class Reference

#include <HxRefCountBase.h>

List of all members.

Public Methods

virtual void addRef (int num=1)
virtual void removeRef ()
virtual void destroy ()=0
int refCnt () const

Protected Methods

 HxRefCountBase ()
virtual ~HxRefCountBase ()


Constructor & Destructor Documentation

HxRefCountBase::HxRefCountBase (    )  [inline, protected]
 

00033                                : _refCnt(0)
00034 {
00035 }

HxRefCountBase::~HxRefCountBase (    )  [inline, protected, virtual]
 

00039 {
00040 }


Member Function Documentation

void HxRefCountBase::addRef (  int    num = 1 )  [inline, virtual]
 

00044 { 
00045     _refCnt += num; 
00046 } 

void HxRefCountBase::removeRef (    )  [inline, virtual]
 

00050 { 
00051     std::cout << "removing ref from " << _refCnt << std::endl;
00052     if (--_refCnt <= 0) 
00053         destroy(); 
00054 }

virtual void HxRefCountBase::destroy (    )  [pure virtual]
 

int HxRefCountBase::refCnt (    )  const [inline]
 

00058 {
00059     return _refCnt;
00060 }


The documentation for this class was generated from the following file:
Generated on Tue Feb 3 14:20:16 2004 for CorbaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001