#include <oof1.h>
Inheritance diagram for OOF_mixRefCountWithCopy:

Client classes call incRefs and decRefs. Inherit from this and implement CleanupOnLastDereference if you have shared resources and want to know when to delete them. Makes it possible to avoid writing copy ctor's and operator=.
Public Member Functions | |
| void | incRefs () |
| void | decRefs () |
Protected Member Functions | |
| OOF_mixRefCountWithCopy (unsigned long initialRefs=1) | |
| OOF_mixRefCountWithCopy (const OOF_mixRefCountWithCopy &) | |
| const OOF_mixRefCountWithCopy & | operator= (const OOF_mixRefCountWithCopy &) |
| virtual | ~OOF_mixRefCountWithCopy () |
| virtual void | CleanupOnLastDereference ()=0 |
Protected Attributes | |
| unsigned int * | mSharedReferences |
| unsigned int | mTimesDecCalled |
|
|
|
|
|
|
|
|
|
|
|
Implemented in OOF_mixFreeImageOwner. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.5