Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

OOF_mixRefCount Class Reference
[OOFILE utility classes and functions.]

#include <oof1.h>

Inheritance diagram for OOF_mixRefCount:

Inheritance graph
[legend]
List of all members.

Detailed Description

Mixin for reference counted classes which you want to auto-delete when their count falls to zero.

Warning:
this is for classes to which you point. It should not be mixed into the client classes pointing at the shared structure.
Client classes call incRefs and decRefs. Is never deleted until references fall to zero.


Public Member Functions

void incRefs ()
void decRefs ()

Protected Member Functions

 OOF_mixRefCount (unsigned long initialRefs=1)
virtual ~OOF_mixRefCount ()

Protected Attributes

unsigned int mReferences


Constructor & Destructor Documentation

OOF_mixRefCount::OOF_mixRefCount unsigned long  initialRefs = 1  )  [inline, protected]
 

OOF_mixRefCount::~OOF_mixRefCount  )  [protected, virtual]
 


Member Function Documentation

void OOF_mixRefCount::decRefs  ) 
 

void OOF_mixRefCount::incRefs  )  [inline]
 


Member Data Documentation

unsigned int OOF_mixRefCount::mReferences [protected]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 21:41:29 2004 for OOFILE by doxygen 1.3.5