Interface for reference counting. More...
#include <obj-ref-i.h>
Public Member Functions | |
| long | AddRef () PURE |
| Increases the reference count. | |
| long | Release () PURE |
| Decreases the reference count. | |
| void | OnFinalRelease () PURE |
| Called when the reference count reaches zero and the object is about to be released. | |
Interface for reference counting.
This interface provides methods for increasing and decreasing the reference count of an object.
Definition at line 18 of file obj-ref-i.h.
| long IObjRef::AddRef | ( | ) |
Increases the reference count.
| void IObjRef::OnFinalRelease | ( | ) |
Called when the reference count reaches zero and the object is about to be released.
This method is intended to perform any necessary cleanup before the object is deleted.
| long IObjRef::Release | ( | ) |
Decreases the reference count.