#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 139 of file ReferenceCounted.h.
ReferenceCountedPoolAllocated::ReferenceCountedPoolAllocated | ( | ) | [inline] |
Definition at line 149 of file ReferenceCounted.h.
References s_alive.
: referenceCount_(0) { s_alive++; }
ReferenceCountedPoolAllocated::ReferenceCountedPoolAllocated | ( | const ReferenceCountedPoolAllocated & | iRHS | ) | [inline] |
Definition at line 153 of file ReferenceCounted.h.
References s_alive.
: referenceCount_(0) { s_alive++; }
virtual ReferenceCountedPoolAllocated::~ReferenceCountedPoolAllocated | ( | ) | [inline, virtual] |
void ReferenceCountedPoolAllocated::addReference | ( | ) | const [inline] |
Definition at line 167 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 157 of file ReferenceCounted.h.
{ return *this; }
unsigned int ReferenceCountedPoolAllocated::references | ( | ) | const [inline] |
Definition at line 175 of file ReferenceCounted.h.
References referenceCount_.
{return referenceCount_;}
void ReferenceCountedPoolAllocated::removeReference | ( | ) | const [inline] |
Definition at line 168 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 184 of file ReferenceCounted.h.
Referenced by addReference(), references(), and removeReference().
int ReferenceCountedPoolAllocated::s_alive = 0 [static] |
Reimplemented from BlockWipedPoolAllocated.
Definition at line 146 of file ReferenceCounted.h.
Referenced by BlockWipedAllocatorService::dump(), ReferenceCountedPoolAllocated(), and ~ReferenceCountedPoolAllocated().
int ReferenceCountedPoolAllocated::s_referenced = 0 [static] |
Definition at line 147 of file ReferenceCounted.h.
Referenced by addReference(), BlockWipedAllocatorService::dump(), and removeReference().