Ark Server API (ASE) - Wiki
|
#include <RefCountedObject.h>
Public Member Functions | |
RefCountedObject () | |
void | duplicate () const |
void | release () const noexcept |
Increments the object's reference count. | |
int | referenceCount () const |
Protected Member Functions | |
virtual | ~RefCountedObject () |
Returns the reference count. | |
Private Member Functions | |
RefCountedObject (const RefCountedObject &) | |
Destroys the RefCountedObject. | |
RefCountedObject & | operator= (const RefCountedObject &) |
Private Attributes | |
AtomicCounter | _counter |
A base class for objects that employ reference counting based garbage collection.
Reference-counted objects inhibit construction by copying and assignment.
Definition at line 28 of file RefCountedObject.h.
Poco::RefCountedObject::RefCountedObject | ( | ) |
|
protectedvirtual |
Returns the reference count.
|
private |
Destroys the RefCountedObject.
|
inline |
Creates the RefCountedObject. The initial reference count is one.
Definition at line 72 of file RefCountedObject.h.
|
private |
|
inline |
Decrements the object's reference count and deletes the object if the count reaches zero.
Definition at line 66 of file RefCountedObject.h.
|
inlinenoexcept |
Increments the object's reference count.
Definition at line 78 of file RefCountedObject.h.
|
mutableprivate |
Definition at line 59 of file RefCountedObject.h.