BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
dchain::ReferenceCount Class Reference

#include <ReferenceCount.h>

+ Inheritance diagram for dchain::ReferenceCount:

Public Member Functions

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

Detailed Description

Constructor & Destructor Documentation

◆ ReferenceCount() [1/2]

dchain::ReferenceCount::ReferenceCount ( )
inline

Definition at line 98 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Element/ReferenceCount.h.

98 :
99 m_linkCount( 0 )
100{
101}

◆ ~ReferenceCount() [1/2]

virtual dchain::ReferenceCount::~ReferenceCount ( )
inlinevirtual

◆ ReferenceCount() [2/2]

dchain::ReferenceCount::ReferenceCount ( )

◆ ~ReferenceCount() [2/2]

virtual dchain::ReferenceCount::~ReferenceCount ( )
inlinevirtual

Member Function Documentation

◆ addLink() [1/2]

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

Definition at line 107 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Element/ReferenceCount.h.

108{
109 //if (m_linkCount==0xFFFFFFFF) {
110 // throw TooManyReferencesException();
111 //}
112 ++m_linkCount ;
113}

◆ addLink() [2/2]

void dchain::ReferenceCount::addLink ( ) const

◆ dropLink() [1/2]

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

Definition at line 115 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Element/ReferenceCount.h.

116{
117 --m_linkCount ;
118 if ( 0 == m_linkCount ) {
119// It is necessary to throw away the 'const' so that the object
120// can be deleted
121 delete const_cast<ReferenceCount*>(this) ;
122 }
123}

◆ dropLink() [2/2]

void dchain::ReferenceCount::dropLink ( ) const

The documentation for this class was generated from the following files: