#include <ReferenceCounted.h>
Public Member Functions | |
void | addReference () const |
BasicReferenceCounted () | |
BasicReferenceCounted (const BasicReferenceCounted &iRHS) | |
const BasicReferenceCounted & | operator= (const BasicReferenceCounted &) |
unsigned int | references () const |
void | removeReference () const |
virtual | ~BasicReferenceCounted () |
Private Attributes | |
unsigned int | referenceCount_ |
Definition at line 29 of file ReferenceCounted.h.
BasicReferenceCounted::BasicReferenceCounted | ( | ) | [inline] |
Definition at line 33 of file ReferenceCounted.h.
: referenceCount_(0) {}
BasicReferenceCounted::BasicReferenceCounted | ( | const BasicReferenceCounted & | iRHS | ) | [inline] |
Definition at line 34 of file ReferenceCounted.h.
: referenceCount_(0) {}
virtual BasicReferenceCounted::~BasicReferenceCounted | ( | ) | [inline, virtual] |
Definition at line 39 of file ReferenceCounted.h.
{}
void BasicReferenceCounted::addReference | ( | ) | const [inline] |
Definition at line 43 of file ReferenceCounted.h.
References referenceCount_.
Referenced by PixelTrackBuilder::build(), and intrusive_ptr_add_ref().
{ ++referenceCount_ ; }
const BasicReferenceCounted& BasicReferenceCounted::operator= | ( | const BasicReferenceCounted & | ) | [inline] |
Definition at line 36 of file ReferenceCounted.h.
{ return *this; }
unsigned int BasicReferenceCounted::references | ( | ) | const [inline] |
Definition at line 49 of file ReferenceCounted.h.
References referenceCount_.
{return referenceCount_;}
void BasicReferenceCounted::removeReference | ( | ) | const [inline] |
Definition at line 44 of file ReferenceCounted.h.
References referenceCount_.
Referenced by intrusive_ptr_release().
{ if( 0 == --referenceCount_ ) { delete const_cast<BasicReferenceCounted*>(this); } }
unsigned int BasicReferenceCounted::referenceCount_ [mutable, private] |
Definition at line 58 of file ReferenceCounted.h.
Referenced by addReference(), references(), and removeReference().