Template class implementing the IObjRef interface. More...
#include <obj-ref-impl.hpp>
Public Member Functions | |
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. | |
Protected Attributes | |
LONG | m_cRef |
Reference count. | |
Template class implementing the IObjRef interface.
T | The base class that implements the IObjRef interface. |
Definition at line 14 of file obj-ref-impl.hpp.
|
inline |
Constructor that initializes the reference count to 1.
Definition at line 18 of file obj-ref-impl.hpp.
|
inlinevirtual |
Virtual destructor.
Definition at line 23 of file obj-ref-impl.hpp.
|
inlineoverride |
Increments the reference count.
Definition at line 29 of file obj-ref-impl.hpp.
|
inlineoverride |
Deletes the object.
Definition at line 47 of file obj-ref-impl.hpp.
|
inlineoverride |
Decrements the reference count and deletes the object if the count reaches zero.
Definition at line 36 of file obj-ref-impl.hpp.
|
protected |
Reference count.
Definition at line 54 of file obj-ref-impl.hpp.