OOFILE  1.9
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members

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

#include <oof1.h>

Inheritance diagram for OOF_mixRefCount:
Inheritance graph
[legend]

Public Member Functions

void decRefs ()
 
void incRefs ()
 

Protected Member Functions

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

Protected Attributes

unsigned int mReferences
 

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.

Definition at line 82 of file oof1.h.

Constructor & Destructor Documentation

OOF_mixRefCount::OOF_mixRefCount ( unsigned long  initialRefs = 1)
inlineprotected

Definition at line 2672 of file oof1.h.

OOF_mixRefCount::~OOF_mixRefCount ( )
protectedvirtual

Definition at line 3206 of file oof1.cpp.

References mReferences.

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: