#include <ReferenceCounted.h>
Public Member Functions | |
void | addReference () const |
const ReferenceCountedPoolAllocated & | operator= (const ReferenceCountedPoolAllocated &) |
ReferenceCountedPoolAllocated (const ReferenceCountedPoolAllocated &iRHS) | |
ReferenceCountedPoolAllocated () | |
unsigned int | references () const |
void | removeReference () const |
virtual | ~ReferenceCountedPoolAllocated () |
Static Public Attributes | |
static int | s_alive = 0 |
static int | s_referenced = 0 |
Private Attributes | |
unsigned int | referenceCount_ |
Definition at line 100 of file ReferenceCounted.h.
ReferenceCountedPoolAllocated::ReferenceCountedPoolAllocated | ( | ) | [inline] |
Definition at line 110 of file ReferenceCounted.h.
References s_alive.
: referenceCount_(0) { s_alive++; }
ReferenceCountedPoolAllocated::ReferenceCountedPoolAllocated | ( | const ReferenceCountedPoolAllocated & | iRHS | ) | [inline] |
Definition at line 114 of file ReferenceCounted.h.
References s_alive.
: referenceCount_(0) { s_alive++; }
virtual ReferenceCountedPoolAllocated::~ReferenceCountedPoolAllocated | ( | ) | [inline, virtual] |
void ReferenceCountedPoolAllocated::addReference | ( | ) | const [inline] |
Definition at line 128 of file ReferenceCounted.h.
References referenceCount_, and s_referenced.
Referenced by intrusive_ptr_add_ref().
{ ++referenceCount_ ; s_referenced++; }
const ReferenceCountedPoolAllocated& ReferenceCountedPoolAllocated::operator= | ( | const ReferenceCountedPoolAllocated & | ) | [inline] |
Definition at line 118 of file ReferenceCounted.h.
{ return *this; }
unsigned int ReferenceCountedPoolAllocated::references | ( | ) | const [inline] |
Definition at line 136 of file ReferenceCounted.h.
References referenceCount_.
{return referenceCount_;}
void ReferenceCountedPoolAllocated::removeReference | ( | ) | const [inline] |
Definition at line 129 of file ReferenceCounted.h.
References referenceCount_, and s_referenced.
Referenced by intrusive_ptr_release().
{ s_referenced--; if( 0 == --referenceCount_ ) { delete const_cast<ReferenceCountedPoolAllocated*>(this); } }
unsigned int ReferenceCountedPoolAllocated::referenceCount_ [mutable, private] |
Definition at line 145 of file ReferenceCounted.h.
Referenced by addReference(), references(), and removeReference().
int ReferenceCountedPoolAllocated::s_alive = 0 [static] |
Reimplemented from BlockWipedPoolAllocated.
Definition at line 107 of file ReferenceCounted.h.
Referenced by BlockWipedAllocatorService::dump(), ReferenceCountedPoolAllocated(), and ~ReferenceCountedPoolAllocated().
int ReferenceCountedPoolAllocated::s_referenced = 0 [static] |
Definition at line 108 of file ReferenceCounted.h.
Referenced by addReference(), BlockWipedAllocatorService::dump(), and removeReference().