#include <mcllib/MCRefCount.h>
Inheritance diagram for MCRefCount:
Public Member Functions | |
MCRefCount (const MCRefCount &rc) | |
Copy constructor - force reference count to be zero. | |
MCRefCount () | |
Default constructor. | |
MCRefCount & | operator= (const MCRefCount &rc) |
Assignment - force reference count to be zero. | |
~MCRefCount () | |
Default destructor. | |
Friends | |
class | MCRefCountAccessorBase |
Classes derived from this can manipulate reference count objects. |
The ref count exists within the object being reference counted. The RefCountAccessor friend is the only thing which can access the reference count. Reference counts are used to implement smart pointers with automatic resource management.
|
Default constructor. Reference count is zero |
|
Default destructor. Ensure reference count is zero |