Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

dchain::ReferenceCount Class Reference

#include <ReferenceCount.h>

Inheritance diagram for dchain::ReferenceCount:

CDCandidate CDCandidate dchain::IndexedLabeledCandidates< CandidateClass > dchain::IndexedLabeledCandidates< CandidateClass > dchain::IndexedLabeledCandidates< Charged::CandidateClass > dchain::IndexedLabeledCandidates< Charged::CandidateClass > dchain::IndexedLabeledCandidates< Neutral::CandidateClass > dchain::IndexedLabeledCandidates< Neutral::CandidateClass > dchain::IndexedLabeledCandidates< NeutralNC::CandidateClass > dchain::IndexedLabeledCandidates< NeutralNC::CandidateClass > dchain::IndexedLabeledCandidates< T::CandidateClass > dchain::IndexedLabeledCandidates< T::CandidateClass > List of all members.

Public Member Functions

void addLink () const
void addLink () const
void dropLink () const
void dropLink () const
 ReferenceCount ()
 ReferenceCount ()
virtual ~ReferenceCount ()
virtual ~ReferenceCount ()

Private Member Functions

const ReferenceCountoperator= (const ReferenceCount &)
const ReferenceCountoperator= (const ReferenceCount &)
 ReferenceCount (const ReferenceCount &)
 ReferenceCount (const ReferenceCount &)

Private Attributes

uint32_t m_linkCount

Constructor & Destructor Documentation

dchain::ReferenceCount::ReferenceCount  )  [inline]
 

00098                                       :
00099    m_linkCount( 0 )
00100 {
00101 }

virtual dchain::ReferenceCount::~ReferenceCount  )  [inline, virtual]
 

00074 {}

dchain::ReferenceCount::ReferenceCount const ReferenceCount  )  [private]
 

dchain::ReferenceCount::ReferenceCount  ) 
 

virtual dchain::ReferenceCount::~ReferenceCount  )  [inline, virtual]
 

00074 {}

dchain::ReferenceCount::ReferenceCount const ReferenceCount  )  [private]
 


Member Function Documentation

void dchain::ReferenceCount::addLink  )  const
 

void dchain::ReferenceCount::addLink  )  const [inline]
 

00108 {
00109    //if (m_linkCount==0xFFFFFFFF) {
00110    //   throw TooManyReferencesException();
00111    //}
00112    ++m_linkCount ;
00113 }

void dchain::ReferenceCount::dropLink  )  const
 

void dchain::ReferenceCount::dropLink  )  const [inline]
 

00116 {
00117    --m_linkCount ;
00118    if ( 0 == m_linkCount ) {
00119 // It is necessary to throw away the 'const' so that the object
00120 //   can be deleted
00121       delete const_cast<ReferenceCount*>(this) ;
00122    }
00123 }

const ReferenceCount& dchain::ReferenceCount::operator= const ReferenceCount  )  [private]
 

const ReferenceCount& dchain::ReferenceCount::operator= const ReferenceCount  )  [private]
 


Member Data Documentation

uint32_t dchain::ReferenceCount::m_linkCount [mutable, private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:17:08 2011 for BOSS6.5.5 by  doxygen 1.3.9.1