#include <oscl_refcounter.h>
Inheritance diagram for OsclRefCounterSA< DeallocType >:
Public Methods | |
OsclRefCounterSA (OsclAny *p) | |
virtual | ~OsclRefCounterSA () |
void | addRef () |
void | removeRef () |
uint32 | getCount () |
|
Constructor Takes a pointer to the buffer to track. When the reference count reaches zero, the buffer will be deleted by the deallocator. Also, the OsclRefCounter object (this) will self-destruct when the reference count is zero. In some cases the OsclRefCounter object will be part of the buffer being deleted. For such cases, the object pointer must be equal to the buffer pointer given at construction. If the object is not part of the buffer being deleted, it will self-destruct with a call to delete().
|
|
Destructor empty |
|
Add to the reference count Implements OsclRefCounter. |
|
Gets the current number of references Implements OsclRefCounter. |
|
Remove from the reference count Implements OsclRefCounter. |