BOSS 6.6.4.p01
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

Definition at line 88 of file CandidateList.cc.

89{
90}

◆ ~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]

template<class CandidateClass >
CandidateList< CandidateClass >::iterator dchain::CandidateList< CandidateClass >::begin
virtual

Reimplemented in dchain::CombinatoricList< CandidateClass >.

Definition at line 115 of file CandidateList.cc.

116{
117 return ( labeledCandidateList().begin() ) ;
118}
virtual dchain::LabeledCandidateList< CandidateClass > & labeledCandidateList()=0
virtual iterator begin()

Referenced by dchain::ConjugateList< CandidateClass >::conjugation_iterate(), and dchain::CandidateList< CandidateClass >::iterate().

◆ begin() [2/2]

template<class CandidateClass >
CandidateList< CandidateClass >::const_iterator dchain::CandidateList< CandidateClass >::begin
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
virtual

Definition at line 135 of file CandidateList.cc.

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

◆ end() [1/2]

template<class CandidateClass >
CandidateList< CandidateClass >::iterator dchain::CandidateList< CandidateClass >::end
virtual

◆ end() [2/2]

template<class CandidateClass >
CandidateList< CandidateClass >::const_iterator dchain::CandidateList< CandidateClass >::end
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 {
103 const_iterator finished ( end() );
104 for ( const_iterator entry ( begin() ) ;
105 entry != finished ;
106 ++entry ) {
107 analyze( (*entry)() ) ;
108 }
109 }
dchain::WholeCandidateItr< CandidateClass > const_iterator
Definition: CandidateList.h:83

◆ labeledCandidateList() [1/2]

◆ labeledCandidateList() [2/2]

◆ size()


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