Template class extending TObjRefImpl with a specific final release behavior. More...
#include <obj-ref-impl.hpp>
Public Member Functions | |
| void | OnFinalRelease () override |
| Deletes the object as the derived type T2. | |
Public Member Functions inherited from TObjRefImpl< T > | |
| TObjRefImpl () | |
| Constructor that initializes the reference count to 1. | |
| virtual | ~TObjRefImpl () |
| Virtual destructor. | |
| long | AddRef () override |
| Increments the reference count. | |
| long | Release () override |
| Decrements the reference count and deletes the object if the count reaches zero. | |
| void | OnFinalRelease () override |
| Deletes the object. | |
Additional Inherited Members | |
Protected Attributes inherited from TObjRefImpl< T > | |
| LONG | m_cRef |
| Reference count. | |
Template class extending TObjRefImpl with a specific final release behavior.
| T | The base class that implements the IObjRef interface. |
| T2 | The derived class that should be deleted in OnFinalRelease. |
Definition at line 61 of file obj-ref-impl.hpp.
|
inlineoverride |
Deletes the object as the derived type T2.
Definition at line 65 of file obj-ref-impl.hpp.