#include <xplRef.h>
Inherited by xplMsg.
Any class wishing to include reference counting should be derived from xplRef. Derived classes must declare their destructor as protected virtual. On construction, the reference count is set to one. Calls to AddRef increment the count. Calls to Release decrement the count. When the count reaches zero, the object is deleted.
Public Member Functions | |
xplRef () | |
Initializes the RefCount to one. | |
void | AddRef () |
Increases the reference count of the object. | |
void | Release () |
Removes a reference to an object. | |
Protected Member Functions | |
virtual | ~xplRef () |