#include <DCFillableChargedList.h>
Inheritance diagram for DCFillableChargedList< Charged >:
Public Types | |
typedef dchain::WholeItr< Charged > | const_iterator |
typedef dchain::WholeItr< Charged > | const_iterator |
typedef dchain::PartialItr< Charged > | const_partial_iterator |
typedef dchain::PartialItr< Charged > | const_partial_iterator |
typedef dchain::MuteWholeItr< Charged > | iterator |
typedef dchain::MuteWholeItr< Charged > | iterator |
typedef ChargedVisibleList< Charged, Charged::CandidateClass > | self_type |
typedef ChargedVisibleList< Charged, Charged::CandidateClass > | self_type |
typedef Charged | value_type |
typedef Charged | value_type |
Public Member Functions | |
bool | attempt_insert (THolder &pPossible, const TSelect &aSelect) |
bool | attempt_insert (THolder &pPossible, const TSelect &aSelect) |
virtual const_iterator | begin () const |
virtual iterator | begin () |
virtual const_iterator | begin () const |
virtual iterator | begin () |
DCFillableChargedList (const DCFillableChargedList< Charged > &aOtherList, DCSelectionFunction< Charged > &aFunctionalObject) | |
DCFillableChargedList (DCSelectionFunction< Charged > &aFunctionalObject) | |
DCFillableChargedList (const DCFillableChargedList< Charged > &aOtherList, bool(*pFunction)(Charged &)=0) | |
template<class WitnessIterator> | |
DCFillableChargedList (WitnessIterator first, WitnessIterator last, DCSelectionFunction< Charged > &aFunctionalObject) | |
template<class WitnessIterator> | |
DCFillableChargedList (WitnessIterator first, WitnessIterator last, bool(*pFunction)(Charged &)=0) | |
DCFillableChargedList (bool(*pFunction)(Charged &)=0) | |
DCFillableChargedList (const DCFillableChargedList< Charged > &aOtherList, DCSelectionFunction< Charged > &aFunctionalObject) | |
DCFillableChargedList (DCSelectionFunction< Charged > &aFunctionalObject) | |
DCFillableChargedList (const DCFillableChargedList< Charged > &aOtherList, bool(*pFunction)(Charged &)=0) | |
template<class WitnessIterator> | |
DCFillableChargedList (WitnessIterator first, WitnessIterator last, DCSelectionFunction< Charged > &aFunctionalObject) | |
template<class WitnessIterator> | |
DCFillableChargedList (WitnessIterator first, WitnessIterator last, bool(*pFunction)(Charged &)=0) | |
DCFillableChargedList (bool(*pFunction)(Charged &)=0) | |
virtual bool | empty () const |
virtual bool | empty () const |
virtual const_iterator | end () const |
virtual iterator | end () |
virtual const_iterator | end () const |
virtual iterator | end () |
void | erase () |
void | erase () |
void | eraseContents () |
void | eraseContents () |
void | fill (Iterator first, Iterator last, const TMaker &aMaker, const TSelector &aSel=SelectAll< Charged >()) |
void | fill (const LabeledParticleList< Charged, Charged::CandidateClass > &aList, const TMaker &aMaker, const TSelector &aSel) |
template<class WitnessIterator> | |
void | fill (WitnessIterator first, WitnessIterator last) |
template<class WitnessIterator> | |
void | fill (WitnessIterator first, WitnessIterator last) |
void | insert (THolder &pPossible) |
void | insert (THolder &pPossible) |
void | iterate (const TAnalyzer &analyze) const |
void | iterate (TAnalyze &analyze) const |
void | iterate (const TAnalyze &analyze) const |
void | iterate (TAnalyze &analyze) const |
void | iterate (const TAnalyze &analyze) const |
ChosenChargeList< Charged, Charged::CandidateClass > & | minus () const |
ChosenChargeList< Charged, Charged::CandidateClass > & | minus () const |
template<class Witness> | |
const DCFillableChargedList< Charged > & | operator= (const Witness &aWitnessList) |
const DCFillableChargedList< Charged > & | operator= (const DCFillableChargedList< Charged > &aOtherList) |
template<class Witness> | |
const DCFillableChargedList< Charged > & | operator= (const Witness &aWitnessList) |
const DCFillableChargedList< Charged > & | operator= (const DCFillableChargedList< Charged > &aOtherList) |
FillListWithSelection< self_type, TSelector > | operator[] (const TSelector &iSel) |
FillListWithSelection< self_type, TSelector > | operator[] (const TSelector &iSel) |
const_iterator | particle_begin () const |
iterator | particle_begin () |
const_iterator | particle_begin () const |
iterator | particle_begin () |
const_iterator | particle_end () const |
iterator | particle_end () |
const_iterator | particle_end () const |
iterator | particle_end () |
ChosenChargeList< Charged, Charged::CandidateClass > & | plus () const |
ChosenChargeList< Charged, Charged::CandidateClass > & | plus () const |
SelectiveInserter< self_type, TSelect > | selectiveInserter (const TSelect &iSelect) |
creates an insert iterator that filters based on iSelect | |
SelectiveInserter< self_type, TSelect > | selectiveInserter (const TSelect &iSelect) |
creates an insert iterator that filters based on iSelect | |
virtual int | size () const |
virtual int | size () const |
virtual | ~DCFillableChargedList () |
virtual | ~DCFillableChargedList () |
Protected Member Functions | |
void | fill (Iterator first, Iterator last) |
void | fill (const dchain::LabeledParticleList< Charged, Charged::CandidateClass > &aList) |
virtual const LabeledParticleList< Charged, Charged::CandidateClass > & | labeledCandidateList () const |
virtual LabeledParticleList< Charged, Charged::CandidateClass > & | labeledCandidateList () |
virtual const LabeledParticleList< Charged, Charged::CandidateClass > & | labeledCandidateList () const |
virtual LabeledParticleList< Charged, Charged::CandidateClass > & | labeledCandidateList () |
Private Member Functions | |
void | fill (const dchain::LabeledParticleList< Charged, typename Charged::CandidateClass > &aList) |
void | fill (const dchain::LabeledParticleList< Charged, typename Charged::CandidateClass > &aList) |
|
Reimplemented from dchain::ChargedVisibleList< Charged, Charged::CandidateClass >. |
|
Reimplemented from dchain::ChargedVisibleList< Charged, Charged::CandidateClass >. |
|
Reimplemented from dchain::ChargedVisibleList< Charged, Charged::CandidateClass >. |
|
Reimplemented from dchain::ChargedVisibleList< Charged, Charged::CandidateClass >. |
|
Reimplemented from dchain::ChargedVisibleList< Charged, Charged::CandidateClass >. |
|
Reimplemented from dchain::ChargedVisibleList< Charged, Charged::CandidateClass >. |
|
|
|
|
|
Reimplemented from dchain::ChargedVisibleList< Charged, Charged::CandidateClass >. |
|
Reimplemented from dchain::ChargedVisibleList< Charged, Charged::CandidateClass >. |
|
00067 : 00068 DCChargedVisibleList< Charged , typename Charged::CandidateClass >( pFunction ) 00069 { 00070 }
|
|
00073 : 00074 DCChargedVisibleList<Charged, typename Charged::CandidateClass>(pFunction){ 00075 fill(first, last); }
|
|
00084 : DCChargedVisibleList<Charged, typename Charged::CandidateClass>(aFunctionalObject) { 00085 fill(first, last); }
|
|
00075 : 00076 DCChargedVisibleList< Charged , typename Charged::CandidateClass >( aOtherList , 00077 pFunction ) 00078 { 00079 }
|
|
00083 : 00084 DCChargedVisibleList< Charged , typename Charged::CandidateClass >( aFunctionalObject ) 00085 { 00086 }
|
|
00091 : 00092 DCChargedVisibleList< Charged , typename Charged::CandidateClass >( aOtherList , 00093 aFunctionalObject ) 00094 { 00095 }
|
|
00100 { 00101 }
|
|
|
|
00073 : 00074 DCChargedVisibleList<Charged, typename Charged::CandidateClass>(pFunction){ 00075 fill(first, last); }
|
|
00084 : DCChargedVisibleList<Charged, typename Charged::CandidateClass>(aFunctionalObject) { 00085 fill(first, last); }
|
|
|
|
|
|
|
|
|
|
00244 { 00245 //std::cout << " @ ChargedVisibleList::attempt_insert() " << __LINE__ << std::endl; 00246 bool returnValue = (aSelect)(*pPossible); 00247 if (returnValue) { 00248 this->insert(pPossible); 00249 } 00250 return returnValue; 00251 }
|
|
00244 { 00245 //std::cout << " @ ChargedVisibleList::attempt_insert() " << __LINE__ << std::endl; 00246 bool returnValue = (aSelect)(*pPossible); 00247 if (returnValue) { 00248 this->insert(pPossible); 00249 } 00250 return returnValue; 00251 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00266 { 00267 eraseContents(); 00268 }
|
|
00266 { 00267 eraseContents(); 00268 }
|
|
|
|
|
|
00288 { 00289 //std::cout << " @ ChargedVisibleList::fill() " << __LINE__ << std::endl; 00290 //std::cout << "size before transform: " << m_list->size() << std::endl; 00291 std::transform(first,last, 00292 selectiveInserter(aSel), 00293 aMaker); 00294 //std::cout << "size after transform: " << m_list->size() << std::endl; 00295 }
|
|
00273 { 00274 00275 for( const_iterator entry(aList.begin()); entry != aList.end(); ++entry){ 00276 //NOTE: even though this is really just calling the copy constructor 00277 //it is best to use the maker since it allows further control 00278 const Charged& from((*entry)()); 00279 typename ResultTypeTrait<TMaker>::type localCopy( aMaker(from) ); 00280 00281 attempt_insert(localCopy,aSel); 00282 } 00283 00284 }
|
|
00130 { 00131 if ( 0 != m_function ) { 00132 fill(first,last, dchain::NewMaker<Charged>(), m_function); 00133 } else if (m_functionalObject) { 00134 fill(first,last,dchain::NewMaker<Charged>(),m_functionalObject); 00135 } else { 00136 fill(first,last, dchain::NewMaker<Charged>(), dchain::SelectAll<Charged>()); 00137 } 00138 }
|
|
|
|
00132 { 00133 DCChargedVisibleList< Charged , 00134 typename Charged::CandidateClass >::fill( aList ) ; 00135 }
|
|
00111 { 00112 DCChargedVisibleList<Charged, typename Charged::CandidateClass>::fill(first, 00113 last); 00114 }
|
|
00132 { 00133 DCChargedVisibleList< Charged , 00134 typename Charged::CandidateClass >::fill( aList ) ; 00135 }
|
|
00111 { 00112 DCChargedVisibleList<Charged, typename Charged::CandidateClass>::fill(first, 00113 last); 00114 }
|
|
00254 { 00255 if (0 < charge_sign(pPossible)) { 00256 m_list->push_back( LabeledParticle< Charged >( pPossible , 00257 kPlus ) ) ; 00258 } 00259 else { 00260 m_list->push_back( LabeledParticle< Charged >( pPossible , 00261 kMinus ) ) ; 00262 } 00263 }
|
|
00254 { 00255 if (0 < charge_sign(pPossible)) { 00256 m_list->push_back( LabeledParticle< Charged >( pPossible , 00257 kPlus ) ) ; 00258 } 00259 else { 00260 m_list->push_back( LabeledParticle< Charged >( pPossible , 00261 kMinus ) ) ; 00262 } 00263 }
|
|
Reimplemented in dchain::ChosenChargeList< Charged, Charged::CandidateClass >, and dchain::ChosenChargeList< Charged, Charged::CandidateClass >. 00102 { 00103 const_iterator finished ( end() ); 00104 for ( const_iterator entry ( begin() ) ; 00105 entry != finished ; 00106 ++entry ) { 00107 analyze( (*entry)() ) ; 00108 } 00109 }
|
|
00228 { 00229 const_iterator finished ( particle_end() ) ; 00230 for ( const_iterator entry ( particle_begin() ) ; 00231 entry != finished ; 00232 ++entry ) { 00233 analyze( (*entry)() ) ; 00234 } 00235 }
|
|
00218 { 00219 const_iterator finished ( particle_end() ) ; 00220 for ( const_iterator entry ( particle_begin() ) ; 00221 entry != finished ; 00222 ++entry ) { 00223 analyze( (*entry)() ) ; 00224 } 00225 }
|
|
00228 { 00229 const_iterator finished ( particle_end() ) ; 00230 for ( const_iterator entry ( particle_begin() ) ; 00231 entry != finished ; 00232 ++entry ) { 00233 analyze( (*entry)() ) ; 00234 } 00235 }
|
|
00218 { 00219 const_iterator finished ( particle_end() ) ; 00220 for ( const_iterator entry ( particle_begin() ) ; 00221 entry != finished ; 00222 ++entry ) { 00223 analyze( (*entry)() ) ; 00224 } 00225 }
|
|
Implements dchain::CandidateList< Charged::CandidateClass >. |
|
Implements dchain::CandidateList< Charged::CandidateClass >. |
|
Implements dchain::CandidateList< Charged::CandidateClass >. |
|
Implements dchain::CandidateList< Charged::CandidateClass >. |
|
|
|
|
|
Reimplemented from dchain::ChargedVisibleList< Charged, Charged::CandidateClass >. 00103 { 00104 this->eraseContents(); 00105 fill(aWitnessList.begin(), aWitnessList.end()); 00106 return ( *this ) ; 00107 }
|
|
|
|
Reimplemented from dchain::ChargedVisibleList< Charged, Charged::CandidateClass >. 00103 { 00104 this->eraseContents(); 00105 fill(aWitnessList.begin(), aWitnessList.end()); 00106 return ( *this ) ; 00107 }
|
|
00110 { 00111 DCChargedVisibleList< Charged , typename Charged::CandidateClass >::operator=( aOtherList ) ; 00112 return ( *this ) ; 00113 }
|
|
00202 { 00203 return FillListWithSelection<self_type,TSelector>(*this, iSel); 00204 }
|
|
00202 { 00203 return FillListWithSelection<self_type,TSelector>(*this, iSel); 00204 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
creates an insert iterator that filters based on iSelect
00239 { 00240 return SelectiveInserter<self_type,TSelect>(*this,iSelect); }
|
|
creates an insert iterator that filters based on iSelect
00239 { 00240 return SelectiveInserter<self_type,TSelect>(*this,iSelect); }
|
|
|
|
|