BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
DCChargedVisibleList< Charged, CandidateClass > Class Template Reference

#include <DCChargedVisibleList.h>

+ Inheritance diagram for DCChargedVisibleList< Charged, CandidateClass >:

Public Types

typedef dchain::MuteWholeItr< Charged > iterator
 
typedef dchain::WholeItr< Charged > const_iterator
 
typedef dchain::PartialItr< Charged > const_partial_iterator
 
typedef Charged value_type
 
- Public Types inherited from dchain::ChargedVisibleList< Charged, CandidateClass >
typedef MuteWholeItr< Charged > iterator
 
typedef WholeItr< Charged > const_iterator
 
typedef PartialItr< Charged > const_partial_iterator
 
typedef Charged value_type
 
typedef ChargedVisibleList< Charged, CandidateClass > self_type
 
- Public Types inherited from dchain::CandidateList< CandidateClass >
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

 DCChargedVisibleList (bool(*pFunction)(Charged &)=0)
 
 DCChargedVisibleList (const DCChargedVisibleList< Charged, CandidateClass > &aOtherList, bool(*pFunction)(Charged &)=0)
 
 DCChargedVisibleList (DCSelectionFunction< Charged > &aFunctionalObject)
 
 DCChargedVisibleList (const DCChargedVisibleList< Charged, CandidateClass > &aOtherList, DCSelectionFunction< Charged > &aFunctionalObject)
 
virtual ~DCChargedVisibleList ()
 
const DCChargedVisibleList< Charged, CandidateClass > & operator= (const DCChargedVisibleList< Charged, CandidateClass > &aOtherList)
 
- Public Member Functions inherited from dchain::ChargedVisibleList< Charged, CandidateClass >
 ChargedVisibleList ()
 
 ChargedVisibleList (const self_type &aOtherList)
 
 ChargedVisibleList (const self_type &aOtherList, const TSelector &aSel)
 
 ChargedVisibleList (WitnessIterator first, WitnessIterator last)
 
 ChargedVisibleList (WitnessIterator first, WitnessIterator last, const TSelector &aFunctionalObject)
 
virtual ~ChargedVisibleList ()
 
const self_typeoperator= (const self_type &aOtherList)
 
const self_typeoperator= (const Witness &aWitnessList)
 
FillListWithSelection< self_type, TSelector > operator[] (const TSelector &iSel)
 
iterator particle_begin ()
 
const_iterator particle_begin () const
 
iterator particle_end ()
 
const_iterator particle_end () const
 
ChosenChargeList< Charged, CandidateClass > & plus () const
 
ChosenChargeList< Charged, CandidateClass > & minus () const
 
void iterate (const TAnalyze &analyze) const
 
void iterate (TAnalyze &analyze) const
 
SelectiveInserter< self_type, TSelect > selectiveInserter (const TSelect &iSelect)
 creates an insert iterator that filters based on iSelect
 
bool attempt_insert (THolder &pPossible, const TSelect &aSelect)
 
void insert (THolder &pPossible)
 
void eraseContents ()
 
void erase ()
 
void fill (const LabeledParticleList< Charged, CandidateClass > &aList, const TMaker &aMaker, const TSelector &aSel)
 
void fill (Iterator first, Iterator last, const TMaker &aMaker, const TSelector &aSel=SelectAll< Charged >())
 
- Public Member Functions inherited from dchain::CandidateList< CandidateClass >
 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

void fill (const dchain::LabeledParticleList< Charged, CandidateClass > &aList)
 
template<class Iterator >
void fill (Iterator first, Iterator last)
 
- Protected Member Functions inherited from dchain::ChargedVisibleList< Charged, CandidateClass >
virtual LabeledParticleList< Charged, CandidateClass > & labeledCandidateList ()
 
virtual const LabeledParticleList< Charged, CandidateClass > & labeledCandidateList () const
 
virtual dchain::LabeledCandidateList< CandidateClass > & labeledCandidateList ()=0
 
virtual const dchain::LabeledCandidateList< CandidateClass > & labeledCandidateList () const =0
 

Detailed Description

template<class Charged, class CandidateClass>
class DCChargedVisibleList< Charged, CandidateClass >

Definition at line 97 of file DCChargedVisibleList.h.

Member Typedef Documentation

◆ const_iterator

template<class Charged , class CandidateClass >
typedef dchain::WholeItr< Charged > DCChargedVisibleList< Charged, CandidateClass >::const_iterator

Definition at line 104 of file DCChargedVisibleList.h.

◆ const_partial_iterator

template<class Charged , class CandidateClass >
typedef dchain::PartialItr< Charged > DCChargedVisibleList< Charged, CandidateClass >::const_partial_iterator

Definition at line 105 of file DCChargedVisibleList.h.

◆ iterator

template<class Charged , class CandidateClass >
typedef dchain::MuteWholeItr< Charged > DCChargedVisibleList< Charged, CandidateClass >::iterator

Definition at line 103 of file DCChargedVisibleList.h.

◆ value_type

template<class Charged , class CandidateClass >
typedef Charged DCChargedVisibleList< Charged, CandidateClass >::value_type

Definition at line 107 of file DCChargedVisibleList.h.

Constructor & Destructor Documentation

◆ DCChargedVisibleList() [1/4]

template<class Charged , class CandidateClass >
DCChargedVisibleList< Charged, CandidateClass >::DCChargedVisibleList ( bool(*)(Charged &)  pFunction = 0)

Definition at line 119 of file DCChargedVisibleList.cc.

120 :
121 m_function( pFunction ) ,
122 m_functionalObject( 0 )
123{
124}

◆ DCChargedVisibleList() [2/4]

template<class Charged , class CandidateClass >
DCChargedVisibleList< Charged, CandidateClass >::DCChargedVisibleList ( const DCChargedVisibleList< Charged, CandidateClass > &  aOtherList,
bool(*)(Charged &)  pFunction = 0 
)

Definition at line 127 of file DCChargedVisibleList.cc.

129 :
131 m_function( pFunction ) ,
132 m_functionalObject( 0 )
133{
134}

◆ DCChargedVisibleList() [3/4]

template<class Charged , class CandidateClass >
DCChargedVisibleList< Charged, CandidateClass >::DCChargedVisibleList ( DCSelectionFunction< Charged > &  aFunctionalObject)

Definition at line 137 of file DCChargedVisibleList.cc.

138 :
139 m_function( 0 ) ,
140 m_functionalObject( &aFunctionalObject )
141{
142}

◆ DCChargedVisibleList() [4/4]

template<class Charged , class CandidateClass >
DCChargedVisibleList< Charged, CandidateClass >::DCChargedVisibleList ( const DCChargedVisibleList< Charged, CandidateClass > &  aOtherList,
DCSelectionFunction< Charged > &  aFunctionalObject 
)

Definition at line 145 of file DCChargedVisibleList.cc.

147 :
148 dchain::ChargedVisibleList<Charged,CandidateClass>(aOtherList,aFunctionalObject),
149 m_function( 0 ) ,
150 m_functionalObject( &aFunctionalObject )
151{
152}

◆ ~DCChargedVisibleList()

template<class Charged , class CandidateClass >
DCChargedVisibleList< Charged, CandidateClass >::~DCChargedVisibleList
virtual

Definition at line 155 of file DCChargedVisibleList.cc.

156{
157}

Member Function Documentation

◆ fill() [1/2]

template<class Charged , class CandidateClass >
void DCChargedVisibleList< Charged, CandidateClass >::fill ( const dchain::LabeledParticleList< Charged, CandidateClass > &  aList)
protected

Definition at line 176 of file DCChargedVisibleList.cc.

177{
178 if ( 0 != m_function ) {
179 fill(aList, dchain::NewMaker<Charged>(), m_function);
180 } else if (m_functionalObject) {
181 fill(aList,dchain::NewMaker<Charged>(), m_functionalObject);
182 } else {
184 }
185}
void fill(const dchain::LabeledParticleList< Charged, CandidateClass > &aList)

Referenced by DCChargedVisibleList< Charged, CandidateClass >::fill(), and DCFillableChargedList< Charged >::fill().

◆ fill() [2/2]

template<class Charged , class CandidateClass >
template<class Iterator >
void DCChargedVisibleList< Charged, CandidateClass >::fill ( Iterator  first,
Iterator  last 
)
inlineprotected

Definition at line 130 of file DCChargedVisibleList.h.

130 {
131 if ( 0 != m_function ) {
132 fill(first,last, dchain::NewMaker<Charged>(), m_function);
133 } else if (m_functionalObject) {
134 fill(first,last,dchain::NewMaker<Charged>(),m_functionalObject);
135 } else {
137 }
138 }

◆ operator=()

template<class Charged , class CandidateClass >
const DCChargedVisibleList< Charged, CandidateClass > & DCChargedVisibleList< Charged, CandidateClass >::operator= ( const DCChargedVisibleList< Charged, CandidateClass > &  aOtherList)

Definition at line 164 of file DCChargedVisibleList.cc.

165{
166 this->eraseContents() ;
167 fill(aOtherList.labeledCandidateList()) ;
168 return ( *this ) ;
169}
virtual LabeledParticleList< Charged, CandidateClass > & labeledCandidateList()

Referenced by DCFillableChargedList< Charged >::operator=().


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