#include <RefCountedObject.h>


Reference-counted objects inhibit construction by copying and assignment.
Definition at line 86 of file RefCountedObject.h.
Public Member Functions | |
| RefCountedObject () | |
| void | duplicate () const |
| Creates the RefCountedObject. The initial reference count is one. | |
| void | release () const |
| Increments the object's reference count. | |
| int | referenceCount () const |
| Decrements the object's reference count and deletes the object if the count reaches zero. | |
Protected Member Functions | |
| virtual | ~RefCountedObject () |
| Returns the reference count. | |
Private Member Functions | |
| RefCountedObject (const RefCountedObject &) | |
| Destroys the RefCountedObject. | |
| RefCountedObject & | operator= (const RefCountedObject &) |
Private Attributes | |
| int | _rc |
| FastMutex | _rcMutex |
| Poco::RefCountedObject::RefCountedObject | ( | ) |
Definition at line 79 of file RefCountedObject.cpp.
| Poco::RefCountedObject::~RefCountedObject | ( | ) | [protected, virtual] |
| Poco::RefCountedObject::RefCountedObject | ( | const RefCountedObject & | ) | [private] |
Destroys the RefCountedObject.
| void Poco::RefCountedObject::duplicate | ( | ) | const |
Creates the RefCountedObject. The initial reference count is one.
Definition at line 89 of file RefCountedObject.cpp.
References _rc, _rcMutex, Poco::FastMutex::lock(), and Poco::FastMutex::unlock().
| void Poco::RefCountedObject::release | ( | ) | const |
Increments the object's reference count.
Definition at line 97 of file RefCountedObject.cpp.
References _rc, _rcMutex, Poco::FastMutex::lock(), and Poco::FastMutex::unlock().
| int Poco::RefCountedObject::referenceCount | ( | ) | const [inline] |
Decrements the object's reference count and deletes the object if the count reaches zero.
Definition at line 125 of file RefCountedObject.h.
References _rc.
| RefCountedObject& Poco::RefCountedObject::operator= | ( | const RefCountedObject & | ) | [private] |
int Poco::RefCountedObject::_rc [mutable, private] |
Definition at line 117 of file RefCountedObject.h.
Referenced by duplicate(), referenceCount(), and release().
FastMutex Poco::RefCountedObject::_rcMutex [mutable, private] |