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

MCRefCount Class Reference

Base class for all reference counted objects. More...

#include <mcllib/MCRefCount.h>

Inheritance diagram for MCRefCount:

MCEventListener MCInterface MCLogFile MCRefCountWrap MCRunnable MCThreadData MCThreadJob MCThreadListener List of all members.

Public Member Functions

 MCRefCount (const MCRefCount &rc)
 Copy constructor - force reference count to be zero.
 MCRefCount ()
 Default constructor.
MCRefCountoperator= (const MCRefCount &rc)
 Assignment - force reference count to be zero.
 ~MCRefCount ()
 Default destructor.


class MCRefCountAccessorBase
 Classes derived from this can manipulate reference count objects.

Detailed Description

Base class for all reference counted 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.

Constructor & Destructor Documentation

MCRefCount  ) 

Default constructor.

Reference count is zero

~MCRefCount  ) 

Default destructor.

Ensure reference count is zero

Generated on Wed Jan 12 19:05:49 2005 for MCLLIB by  doxygen