![]() |
OpenZWave Library
1.6.1768
|
#include <Ref.h>
Public Member Functions | |
Ref () | |
void | AddRef () |
int32 | Release () |
Protected Member Functions | |
virtual | ~Ref () |
Provides reference counting for objects. Any class wishing to include reference counting should be derived from Ref. 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.
|
inline |
|
inlineprotectedvirtual |
|
inline |
Increases the reference count of the object. Every call to AddRef requires a matching call to Release before the object will be deleted.
|
inline |
Removes a reference to an object. If this was the last reference to the message, the object is deleted.