dchain::ReferenceCount Class Reference

#include <ReferenceCount.h>

Inheritance diagram for dchain::ReferenceCount:

CDCandidate dchain::IndexedLabeledCandidates< CandidateClass > dchain::IndexedLabeledCandidates< Charged::CandidateClass > dchain::IndexedLabeledCandidates< Neutral::CandidateClass > dchain::IndexedLabeledCandidates< NeutralNC::CandidateClass > dchain::IndexedLabeledCandidates< T::CandidateClass > CDChargedVisible< H > CDDecay CDPhoton dchain::LabeledCandidateList< CandidateClass > dchain::LabeledCandidateList< Charged::CandidateClass > dchain::LabeledCandidateList< Neutral::CandidateClass > dchain::LabeledCandidateList< NeutralNC::CandidateClass > CDEta CDKs CDLambda CDPi0 dchain::IndexedLabeledDecays< DecayClass, CandidateClass > dchain::IndexedLabeledParticles< T, CandidateClass > dchain::IndexedLabeledParticles< DCCandidateTraits< CandidateClass >::DCCandidateTraits< CandidateClass >::DecayClass, CandidateClass > dchain::IndexedLabeledParticles< ParticleClass, CandidateClass > dchain::IndexedLabeledParticles< Charged, Charged::CandidateClass > dchain::IndexedLabeledParticles< Neutral, Neutral::CandidateClass > dchain::IndexedLabeledParticles< NeutralNC, NeutralNC::CandidateClass > List of all members.

Public Member Functions

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

Private Member Functions

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

Private Attributes

uint32_t m_linkCount

Detailed Description

Definition at line 69 of file ReferenceCount.h.


Constructor & Destructor Documentation

dchain::ReferenceCount::ReferenceCount (  )  [inline]

Definition at line 98 of file ReferenceCount.h.

00098                                       :
00099    m_linkCount( 0 )
00100 {
00101 }

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

Definition at line 74 of file ReferenceCount.h.

00074 {}

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


Member Function Documentation

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

Definition at line 107 of file ReferenceCount.h.

References m_linkCount.

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

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

Definition at line 115 of file ReferenceCount.h.

References m_linkCount.

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]


Member Data Documentation

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

Definition at line 88 of file ReferenceCount.h.

Referenced by addLink(), and dropLink().


Generated on Tue Nov 29 23:36:26 2016 for BOSS_7.0.2 by  doxygen 1.4.7