BOSS 7.1.3
BESIII Offline Software System
Loading...
Searching...
No Matches
dchain::CandidateList< CandidateClass > Class Template Referenceabstract

#include <CandidateList.h>

+ Inheritance diagram for dchain::CandidateList< CandidateClass >:

Public Types

typedef dchain::MuteWholeCandidateItr< CandidateClass > iterator
 
typedef dchain::WholeCandidateItr< CandidateClass > const_iterator
 
typedef dchain::PartialCandidateItr< CandidateClass > const_partial_iterator
 
typedef dchain::LabeledCandidate< CandidateClass > value_type
 

Public Member Functions

 CandidateList ()
 
virtual ~CandidateList ()
 
virtual iterator begin ()
 
virtual iterator end ()
 
virtual bool empty () const
 
virtual int size () const
 
virtual const_iterator begin () const
 
virtual const_iterator end () const
 
template<class TAnalyzer>
void iterate (const TAnalyzer &analyze) const
 

Protected Member Functions

virtual dchain::LabeledCandidateList< CandidateClass > & labeledCandidateList ()=0
 
virtual const dchain::LabeledCandidateList< CandidateClass > & labeledCandidateList () const =0
 

Detailed Description

template<class CandidateClass>
class dchain::CandidateList< CandidateClass >

Definition at line 76 of file CandidateList.h.

Member Typedef Documentation

◆ const_iterator

template<class CandidateClass>
typedef dchain::WholeCandidateItr< CandidateClass > dchain::CandidateList< CandidateClass >::const_iterator

Definition at line 83 of file CandidateList.h.

◆ const_partial_iterator

template<class CandidateClass>
typedef dchain::PartialCandidateItr< CandidateClass > dchain::CandidateList< CandidateClass >::const_partial_iterator

Definition at line 84 of file CandidateList.h.

◆ iterator

template<class CandidateClass>
typedef dchain::MuteWholeCandidateItr< CandidateClass > dchain::CandidateList< CandidateClass >::iterator

Definition at line 82 of file CandidateList.h.

◆ value_type

template<class CandidateClass>
typedef dchain::LabeledCandidate<CandidateClass> dchain::CandidateList< CandidateClass >::value_type

Definition at line 86 of file CandidateList.h.

Constructor & Destructor Documentation

◆ CandidateList()

template<class CandidateClass>
dchain::CandidateList< CandidateClass >::CandidateList ( )

◆ ~CandidateList()

template<class CandidateClass>
dchain::CandidateList< CandidateClass >::~CandidateList ( )
virtual

Definition at line 97 of file CandidateList.cc.

98{
99}

Member Function Documentation

◆ begin() [1/2]

◆ begin() [2/2]

template<class CandidateClass>
CandidateList< CandidateClass >::const_iterator dchain::CandidateList< CandidateClass >::begin ( ) const
virtual

Reimplemented in dchain::CombinatoricList< CandidateClass >.

Definition at line 151 of file CandidateList.cc.

152{
153// do this casting to make sure const 'begin' function is called
155}

◆ empty()

template<class CandidateClass>
bool dchain::CandidateList< CandidateClass >::empty ( ) const
virtual

Definition at line 135 of file CandidateList.cc.

136{
137 return ( labeledCandidateList().empty() ) ;
138}
virtual bool empty() const

Referenced by empty().

◆ end() [1/2]

◆ end() [2/2]

template<class CandidateClass>
CandidateList< CandidateClass >::const_iterator dchain::CandidateList< CandidateClass >::end ( ) const
virtual

Reimplemented in dchain::CombinatoricList< CandidateClass >.

Definition at line 160 of file CandidateList.cc.

161{
162// do this casting to make sure const 'end' function is called
163 return ( static_cast<const dchain::LabeledCandidateList< CandidateClass >*>(&labeledCandidateList())->end() );
164}

◆ iterate()

template<class CandidateClass>
template<class TAnalyzer>
void dchain::CandidateList< CandidateClass >::iterate ( const TAnalyzer & analyze) const
inline

Definition at line 102 of file CandidateList.h.

102 {
104 for ( const_iterator entry ( begin() ) ;
105 entry != finished ;
106 ++entry ) {
107 analyze( (*entry)() ) ;
108 }
109 }
dchain::WholeCandidateItr< CandidateClass > const_iterator

◆ labeledCandidateList() [1/2]

template<class CandidateClass>
virtual const dchain::LabeledCandidateList< CandidateClass > & dchain::CandidateList< CandidateClass >::labeledCandidateList ( ) const
protectedpure virtual

◆ labeledCandidateList() [2/2]

template<class CandidateClass>
virtual dchain::LabeledCandidateList< CandidateClass > & dchain::CandidateList< CandidateClass >::labeledCandidateList ( )
protectedpure virtual

Implemented in dchain::ChargedVisibleList< Charged, CandidateClass >, dchain::ChargedVisibleList< Charged, CandidateClass >, dchain::ChargedVisibleList< Charged, CandidateClass >, dchain::ChosenChargeList< Charged, CandidateClass >, dchain::ChosenChargeList< Charged, typename Charged::CandidateClass >, dchain::ChosenConjugateList< Conjugate, CandidateClass >, dchain::ChosenConjugateList< NeutralNC, typename NeutralNC::CandidateClass >, dchain::CombinatoricList< CandidateClass >, dchain::const_iterator< DecayClass, CandidateClass >, dchain::const_iterator< DecayClass, CandidateClass >, dchain::const_partial_iterator< DecayClass, CandidateClass >, dchain::const_partial_iterator< DecayClass, CandidateClass >, dchain::DecayList< DecayClass, CandidateClass >, dchain::DecayList< DCCandidateTraits< CandidateClass >::DecayClass, CandidateClass >, dchain::DecayList< DecayClass, CandidateClass >, dchain::DecayList< DecayClass, CandidateClass >, dchain::iterator< DecayClass, CandidateClass >, dchain::iterator< DecayClass, CandidateClass >, dchain::NeutralNCVisibleList< NeutralNC, CandidateClass >, dchain::NeutralNCVisibleList< NeutralNC, CandidateClass >, dchain::NeutralNCVisibleList< NeutralNC, CandidateClass >, dchain::NeutralVisibleList< Neutral, CandidateClass >, dchain::NeutralVisibleList< Neutral, CandidateClass >, and dchain::NeutralVisibleList< Neutral, CandidateClass >.

Referenced by begin(), begin(), dchain::ConjugateList< CandidateClass >::conjugate_partial_end(), empty(), end(), end(), dchain::ConjugateList< CandidateClass >::isConjugateOf(), dchain::ConjugateList< typename DecayClass::CandidateClass >::label(), dchain::ConjugateList< CandidateClass >::partial_begin(), dchain::ConjugateList< CandidateClass >::partial_size(), dchain::ConjugateList< typename DecayClass::CandidateClass >::setLabel(), and size().

◆ size()


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