|
MoSync 3.3
|
A base class for reference counting. More...
#include <MAUtil/RefCounted.h>
Public Member Functions | |
| RefCounted (int startCount=1) | |
| Constructor, initializes the initial reference count to startCount. | |
| void | addRef () |
| Increments the reference count by one. | |
| void | release () |
| Decrements the reference count by one. | |
| int | getRefCount () |
| Returns the current reference count. | |
| virtual | ~RefCounted () |
A base class for reference counting.
| MAUtil::RefCounted::RefCounted | ( | int | startCount = 1 | ) |
Constructor, initializes the initial reference count to startCount.
| virtual MAUtil::RefCounted::~RefCounted | ( | ) | [inline, virtual] |
| void MAUtil::RefCounted::addRef | ( | ) |
Increments the reference count by one.
| void MAUtil::RefCounted::release | ( | ) |
Decrements the reference count by one.
| int MAUtil::RefCounted::getRefCount | ( | ) |
Returns the current reference count.