BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
DCNeutralVisibleList< Neutral, CandidateClass > Class Template Reference

#include <DCNeutralVisibleList.h>

+ Inheritance diagram for DCNeutralVisibleList< Neutral, CandidateClass >:

Public Types

typedef Neutral value_type
 
- Public Types inherited from dchain::NeutralVisibleList< Neutral, CandidateClass >
typedef dchain::MuteWholeItr< Neutral > iterator
 
typedef dchain::WholeItr< Neutral > const_iterator
 
typedef Neutral value_type
 
typedef NeutralVisibleList< Neutral, CandidateClass > self_type
 
- Public Types inherited from dchain::ConjugateList< CandidateClass >
typedef dchain::MuteWholeCandidateItr< CandidateClass > iterator
 
typedef dchain::WholeCandidateItr< CandidateClass > const_iterator
 
typedef dchain::PartialCandidateItr< CandidateClass > const_partial_iterator
 
- 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

 DCNeutralVisibleList (bool(*pFunction)(Neutral &)=0)
 
 DCNeutralVisibleList (const DCNeutralVisibleList< Neutral, CandidateClass > &aOtherList, bool(*pFunction)(Neutral &)=0)
 
 DCNeutralVisibleList (DCSelectionFunction< Neutral > &aFunctionalObject)
 
 DCNeutralVisibleList (const DCNeutralVisibleList< Neutral, CandidateClass > &aOtherList, DCSelectionFunction< Neutral > &aFunctionalObject)
 
virtual ~DCNeutralVisibleList ()
 
const DCNeutralVisibleList< Neutral, CandidateClass > & operator= (const DCNeutralVisibleList< Neutral, CandidateClass > &aOtherList)
 
- Public Member Functions inherited from dchain::NeutralVisibleList< Neutral, CandidateClass >
 NeutralVisibleList ()
 
 NeutralVisibleList (const self_type &aOtherList)
 
 NeutralVisibleList (const self_type &aOtherList, const TSelector &aSel)
 
 NeutralVisibleList (WitnessIterator first, WitnessIterator last)
 
 NeutralVisibleList (WitnessIterator first, WitnessIterator last, const TSelector &aFunctionalObject)
 
virtual ~NeutralVisibleList ()
 
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
 
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< Neutral, CandidateClass > &aList, const TMaker &aMaker, const TSelector &aSel)
 
void fill (Iterator first, Iterator last, const TMaker &aMaker, const TSelector &aSel=SelectAll< Neutral >())
 
- Public Member Functions inherited from dchain::ConjugateList< CandidateClass >
 ConjugateList (const conjugation::Label aLabel)
 
virtual ~ConjugateList ()
 
virtual bool isSelfConjugate () const
 
bool isConjugateOf (const ConjugateList< CandidateClass > &aList) const
 
int partial_size () const
 
virtual const_partial_iterator partial_begin () const
 
virtual const_partial_iterator partial_end () const
 
template<class TAnalyzer >
void conjugation_iterate (const TAnalyzer &analyzer) const
 
template<class TAnalyzer >
void partial_iterate (const TAnalyzer &analyze) const
 
const_partial_iterator conjugate_partial_begin () const
 
const_partial_iterator conjugate_partial_end () const
 
virtual conjugation::Label label () const
 
void setLabel (const conjugation::Label aLabel)
 
- 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< Neutral, CandidateClass > &aList)
 
template<class Iterator >
void fill (Iterator first, Iterator last)
 
- Protected Member Functions inherited from dchain::NeutralVisibleList< Neutral, CandidateClass >
virtual dchain::LabeledParticleList< Neutral, CandidateClass > & labeledCandidateList ()
 
virtual const dchain::LabeledParticleList< Neutral, CandidateClass > & labeledCandidateList () const
 
virtual dchain::LabeledCandidateList< CandidateClass > & labeledCandidateList ()=0
 
virtual const dchain::LabeledCandidateList< CandidateClass > & labeledCandidateList () const =0
 

Detailed Description

template<class Neutral, class CandidateClass>
class DCNeutralVisibleList< Neutral, CandidateClass >

Definition at line 93 of file DCNeutralVisibleList.h.

Member Typedef Documentation

◆ value_type

template<class Neutral , class CandidateClass >
typedef Neutral DCNeutralVisibleList< Neutral, CandidateClass >::value_type

Definition at line 104 of file DCNeutralVisibleList.h.

Constructor & Destructor Documentation

◆ DCNeutralVisibleList() [1/4]

template<class Neutral , class CandidateClass >
DCNeutralVisibleList< Neutral, CandidateClass >::DCNeutralVisibleList ( bool(*)(Neutral &)  pFunction = 0)

Definition at line 108 of file DCNeutralVisibleList.cc.

109 :
110 m_function( pFunction ) ,
111 m_functionalObject( 0 )
112{
113}

◆ DCNeutralVisibleList() [2/4]

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

Definition at line 116 of file DCNeutralVisibleList.cc.

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

◆ DCNeutralVisibleList() [3/4]

template<class Neutral , class CandidateClass >
DCNeutralVisibleList< Neutral, CandidateClass >::DCNeutralVisibleList ( DCSelectionFunction< Neutral > &  aFunctionalObject)

Definition at line 126 of file DCNeutralVisibleList.cc.

127 :
128 m_function( 0 ) ,
129 m_functionalObject( &aFunctionalObject )
130{
131}

◆ DCNeutralVisibleList() [4/4]

template<class Neutral , class CandidateClass >
DCNeutralVisibleList< Neutral, CandidateClass >::DCNeutralVisibleList ( const DCNeutralVisibleList< Neutral, CandidateClass > &  aOtherList,
DCSelectionFunction< Neutral > &  aFunctionalObject 
)

Definition at line 134 of file DCNeutralVisibleList.cc.

136 :
137 dchain::NeutralVisibleList< Neutral,CandidateClass >( aOtherList, aFunctionalObject),
138 m_function( 0 ) ,
139 m_functionalObject( &aFunctionalObject )
140{
141}

◆ ~DCNeutralVisibleList()

template<class Neutral , class CandidateClass >
DCNeutralVisibleList< Neutral, CandidateClass >::~DCNeutralVisibleList
virtual

Definition at line 144 of file DCNeutralVisibleList.cc.

146{
147}

Member Function Documentation

◆ fill() [1/2]

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

Definition at line 162 of file DCNeutralVisibleList.cc.

163{
164 if ( 0 != m_function ) {
165 fill(aList, dchain::NewMaker<Neutral>(), m_function);
166 } else if (m_functionalObject) {
167 fill(aList,dchain::NewMaker<Neutral>(), m_functionalObject);
168 } else {
170 }
171}
void fill(const dchain::LabeledParticleList< Neutral, CandidateClass > &aList)

Referenced by DCNeutralVisibleList< Neutral, CandidateClass >::fill(), and DCFillableNeutralList< Neutral >::fill().

◆ fill() [2/2]

template<class Neutral , class CandidateClass >
template<class Iterator >
void DCNeutralVisibleList< Neutral, CandidateClass >::fill ( Iterator  first,
Iterator  last 
)
inlineprotected

Definition at line 130 of file DCNeutralVisibleList.h.

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

◆ operator=()

template<class Neutral , class CandidateClass >
const DCNeutralVisibleList< Neutral, CandidateClass > & DCNeutralVisibleList< Neutral, CandidateClass >::operator= ( const DCNeutralVisibleList< Neutral, CandidateClass > &  aOtherList)

Definition at line 154 of file DCNeutralVisibleList.cc.

155{
156 this->eraseContents() ;
157 fill( aOtherList.labeledCandidateList() ) ;
158 return ( *this ) ;
159}
virtual dchain::LabeledParticleList< Neutral, CandidateClass > & labeledCandidateList()

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