CoCoALib-0.9905 date: 23 May 2007


CoCoA::IntrusiveReferenceCount Class Reference

#include <SmartPtrIRC.H>

Inheritance diagram for CoCoA::IntrusiveReferenceCount:

Inheritance graph
[legend]
Collaboration diagram for CoCoA::IntrusiveReferenceCount:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

 IntrusiveReferenceCount ()
 ctor just sets ref count to 0
virtual ~IntrusiveReferenceCount ()
 dtor MUST BE VIRTUAL (see doc)
void myRefCountInc () const
 increments ref count
void myRefCountDec () const
 decrements ref count, and self destructs if count becomes 0
void myRefCountZero () const
 sets myRefCount to 0

Private Attributes

std::size_t myRefCount
 intrusive reference count value

Detailed Description

Definition at line 65 of file SmartPtrIRC.H.


Constructor & Destructor Documentation

CoCoA::IntrusiveReferenceCount::IntrusiveReferenceCount  )  [inline, protected]
 

ctor just sets ref count to 0

Definition at line 78 of file SmartPtrIRC.H.

CoCoA::IntrusiveReferenceCount::~IntrusiveReferenceCount  )  [inline, protected, virtual]
 

dtor MUST BE VIRTUAL (see doc)

Definition at line 82 of file SmartPtrIRC.H.


Member Function Documentation

void CoCoA::IntrusiveReferenceCount::myRefCountInc  )  const [inline, protected]
 

increments ref count

Definition at line 86 of file SmartPtrIRC.H.

References myRefCount.

Referenced by CoCoA::ModuleBase::ModuleBase().

void CoCoA::IntrusiveReferenceCount::myRefCountDec  )  const [inline, protected]
 

decrements ref count, and self destructs if count becomes 0

Definition at line 91 of file SmartPtrIRC.H.

References myRefCount.

void CoCoA::IntrusiveReferenceCount::myRefCountZero  )  const [inline, protected]
 

sets myRefCount to 0

Definition at line 97 of file SmartPtrIRC.H.

References myRefCount.


Member Data Documentation

std::size_t CoCoA::IntrusiveReferenceCount::myRefCount [mutable, private]
 

intrusive reference count value

Definition at line 75 of file SmartPtrIRC.H.

Referenced by myRefCountDec(), myRefCountInc(), and myRefCountZero().


The documentation for this class was generated from the following file:
Generated on Wed May 23 13:44:53 2007 for CoCoALib by  doxygen 1.4.6