![]() |
Ark Server API (ASE) - Wiki
|
#include <RefCountedObject.h>
Inheritance diagram for Poco::RefCountedObject:
Collaboration diagram for Poco::RefCountedObject: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.
Here is the call graph for this function:
Here is the caller graph for this function:
|
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.
Here is the call graph for this function:
|
inlinenoexcept |
Increments the object's reference count.
Definition at line 78 of file RefCountedObject.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
mutableprivate |
Definition at line 59 of file RefCountedObject.h.