Free Electron
|
Heap-based support for classes participating in fe::ptr <> More...
#include <Counted.h>
Public Member Functions | |
virtual void | acquire (void) |
Increment the reference count. More... | |
virtual void | acquire (int &rCount) |
Increment the reference count (and get the count) More... | |
virtual void | release (void) |
Decrement the reference count. More... | |
virtual void | abandon (void) |
Decrement the reference count. More... | |
int | count (void) const |
Return the count of references. More... | |
void | setName (const String &) |
void | trackReference (void *pReference, String what) |
void | untrackReference (void *pReference) |
void | registerRegion (void *pT, U32 bytes) |
Static Public Member Functions | |
static String | reportTracker (void) |
static U32 | trackerCount (void) |
Protected Member Functions | |
int | releaseInternal (void) |
Decrement the reference count. More... | |
void | suppressReport (void) |
Private Attributes | |
int | m_count |
Heap-based support for classes participating in fe::ptr <>
acquire() and release() are required methods for fe::ptr <>.
|
inlinevirtual |
Decrement the reference count.
Do not delete, even if count reaches zero. This is used to abandon a Counted from reference counting, although it remains valid to be picked up by reference counting again.
|
inlinevirtual |
Increment the reference count.
Reimplemented in fe::Component.
Referenced by fe::Component::acquire(), and fe::Component::isSingleton().
|
inlinevirtual |
Increment the reference count (and get the count)
|
inline |
Return the count of references.
Referenced by fe::BruteScan::charCount(), fe::SegmentStore::createSB(), fe::ext::SurfaceAccessibleUsd::isBound(), fe::ext::SurfaceAccessibleRecord::isBound(), fe::ext::VoiceAL::remaining(), and fe::BruteScan::wordCount().
|
inlinevirtual |
Decrement the reference count.
When the count reaches zero, the object is deleted.
Reimplemented in fe::Component, fe::ext::NetHost, and fe::SingleMaster.
Referenced by fe::ext::NetHost::release().
|
inlineprotected |
Decrement the reference count.
Returns the count after decrementing the references. The intent is that a substitute release() can call releaseInternal(), then conditionally delete the object after doing some custom cleanup that is not suitable for putting in the destructor.