#include <nnrefcounter.h>
Public Member Functions | |
| RefCounter () | |
| Create a new reference counter object. | |
| void | operator++ () |
| Increment the reference count. | |
| bool | operator-- () |
| Decrement the reference count. | |
| unsigned int | count () |
| Return the reference count. | |
Definition at line 38 of file nnrefcounter.h.
| NewNet::RefCounter::RefCounter | ( | ) | [inline] |
Creates a new reference counter object with the reference count initialized at 0.
Definition at line 44 of file nnrefcounter.h.
| void NewNet::RefCounter::operator++ | ( | ) | [inline] |
Increment the reference count by 1.
Definition at line 50 of file nnrefcounter.h.
| bool NewNet::RefCounter::operator-- | ( | ) | [inline] |
Decrement the reference count by 1. Returns true if the reference count drops to zero. Delete the owner object if that happens.
Definition at line 58 of file nnrefcounter.h.
| unsigned int NewNet::RefCounter::count | ( | ) | [inline] |
Return the value of this reference counter.
Definition at line 77 of file nnrefcounter.h.
Referenced by NewNet::Object::~Object().
1.5.1