BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
dchain::LabeledParticleList< ParticleClass, CandidateClass > Class Template Reference

#include <LabeledParticleList.h>

+ Inheritance diagram for dchain::LabeledParticleList< ParticleClass, CandidateClass >:

Public Types

typedef MuteWholeItr< ParticleClass > iterator
 
typedef WholeItr< ParticleClass > const_iterator
 
typedef PartialItr< ParticleClass > const_partial_iterator
 
typedef MuteWholeItr< ParticleClass > iterator
 
typedef WholeItr< ParticleClass > const_iterator
 
typedef PartialItr< ParticleClass > const_partial_iterator
 
- Public Types inherited from dchain::LabeledCandidateList< CandidateClass >
typedef MuteWholeCandidateItr< CandidateClass > iterator
 
typedef WholeCandidateItr< CandidateClass > const_iterator
 
typedef PartialCandidateItr< CandidateClass > const_partial_iterator
 
typedef LabeledCandidate< CandidateClass > value_type
 
typedef MuteWholeCandidateItr< CandidateClass > iterator
 
typedef WholeCandidateItr< CandidateClass > const_iterator
 
typedef PartialCandidateItr< CandidateClass > const_partial_iterator
 
typedef LabeledCandidate< CandidateClass > value_type
 

Public Member Functions

 LabeledParticleList ()
 
virtual ~LabeledParticleList ()
 
LabeledParticle< ParticleClass > & operator[] (const int aIndex)
 
iterator begin ()
 
iterator end ()
 
void push_back (const LabeledParticle< ParticleClass > &aEntry)
 
virtual void erase_elements (int aStart, int aFinish)
 
const LabeledParticle< ParticleClass > & operator[] (const int aIndex) const
 
virtual bool empty () const
 
virtual bool empty (const typename conjugation::Label aLabel) const
 
virtual int size () const
 
virtual int size (const typename conjugation::Label aLabel) const
 
const_iterator begin () const
 
const_partial_iterator begin (const typename conjugation::Label aLabel) const
 
const_iterator end () const
 
const_partial_iterator end (const typename conjugation::Label aLabel) const
 
 LabeledParticleList ()
 
virtual ~LabeledParticleList ()
 
LabeledParticle< ParticleClass > & operator[] (const int aIndex)
 
iterator begin ()
 
iterator end ()
 
void push_back (const LabeledParticle< ParticleClass > &aEntry)
 
virtual void erase_elements (int aStart, int aFinish)
 
const LabeledParticle< ParticleClass > & operator[] (const int aIndex) const
 
virtual bool empty () const
 
virtual bool empty (const typename conjugation::Label aLabel) const
 
virtual int size () const
 
virtual int size (const typename conjugation::Label aLabel) const
 
const_iterator begin () const
 
const_partial_iterator begin (const typename conjugation::Label aLabel) const
 
const_iterator end () const
 
const_partial_iterator end (const typename conjugation::Label aLabel) const
 
- Public Member Functions inherited from dchain::IndexedLabeledParticles< ParticleClass, CandidateClass >
 IndexedLabeledParticles ()
 
 IndexedLabeledParticles ()
 
virtual ~IndexedLabeledParticles ()
 
virtual ~IndexedLabeledParticles ()
 
- Public Member Functions inherited from dchain::LabeledCandidateList< CandidateClass >
 LabeledCandidateList ()
 
virtual ~LabeledCandidateList ()
 
LabeledCandidate< CandidateClass > & operator[] (const int aIndex)
 
iterator begin ()
 
iterator end ()
 
void erase (iterator aStart, iterator aFinish)
 
const LabeledCandidate< CandidateClass > & operator[] (const int aIndex) const
 
virtual bool empty () const =0
 
virtual bool empty (const conjugation::Label aLabel) const =0
 
virtual int size () const =0
 
virtual int size (const conjugation::Label aLabel) const =0
 
const_iterator begin () const
 
const_partial_iterator begin (const conjugation::Label aLabel) const
 
const_iterator end () const
 
const_partial_iterator end (const conjugation::Label aLabel) const
 
 LabeledCandidateList ()
 
virtual ~LabeledCandidateList ()
 
LabeledCandidate< CandidateClass > & operator[] (const int aIndex)
 
iterator begin ()
 
iterator end ()
 
void erase (iterator aStart, iterator aFinish)
 
const LabeledCandidate< CandidateClass > & operator[] (const int aIndex) const
 
virtual bool empty () const =0
 
virtual bool empty (const conjugation::Label aLabel) const =0
 
virtual int size () const =0
 
virtual int size (const conjugation::Label aLabel) const =0
 
const_iterator begin () const
 
const_partial_iterator begin (const conjugation::Label aLabel) const
 
const_iterator end () const
 
const_partial_iterator end (const conjugation::Label aLabel) const
 
- Public Member Functions inherited from dchain::IndexedLabeledCandidates< CandidateClass >
 IndexedLabeledCandidates ()
 
virtual ~IndexedLabeledCandidates ()
 
virtual int size () const =0
 
 IndexedLabeledCandidates ()
 
virtual ~IndexedLabeledCandidates ()
 
virtual int size () const =0
 
- Public Member Functions inherited from dchain::ReferenceCount
 ReferenceCount ()
 
virtual ~ReferenceCount ()
 
void addLink () const
 
void dropLink () const
 
 ReferenceCount ()
 
virtual ~ReferenceCount ()
 
void addLink () const
 
void dropLink () const
 

Protected Member Functions

virtual LabeledCandidate< CandidateClass > & labeledCandidateClass (const int aIndex)
 
virtual LabeledParticle< ParticleClass > & labeledParticleClass (const int aIndex)
 
virtual const LabeledCandidate< CandidateClass > & labeledCandidateClass (const int aIndex) const
 
virtual const LabeledParticle< ParticleClass > & labeledParticleClass (const int aIndex) const
 
virtual LabeledCandidate< CandidateClass > & labeledCandidateClass (const int aIndex)
 
virtual LabeledParticle< ParticleClass > & labeledParticleClass (const int aIndex)
 
virtual const LabeledCandidate< CandidateClass > & labeledCandidateClass (const int aIndex) const
 
virtual const LabeledParticle< ParticleClass > & labeledParticleClass (const int aIndex) const
 
virtual LabeledParticle< ParticleClass > & labeledParticleClass (const int aIndex)=0
 
virtual const LabeledParticle< ParticleClass > & labeledParticleClass (const int aIndex) const=0
 
virtual LabeledParticle< ParticleClass > & labeledParticleClass (const int aIndex)=0
 
virtual const LabeledParticle< ParticleClass > & labeledParticleClass (const int aIndex) const=0
 
virtual LabeledCandidate< CandidateClass > & labeledCandidateClass (const int aIndex)=0
 
virtual void erase_elements (int aStart, int aFinish)=0
 
virtual const LabeledCandidate< CandidateClass > & labeledCandidateClass (const int aIndex) const =0
 
virtual LabeledCandidate< CandidateClass > & labeledCandidateClass (const int aIndex)=0
 
virtual void erase_elements (int aStart, int aFinish)=0
 
virtual const LabeledCandidate< CandidateClass > & labeledCandidateClass (const int aIndex) const =0
 
virtual dchain::LabeledCandidate< CandidateClass > & labeledCandidateClass (const int aIndex)=0
 
virtual const dchain::LabeledCandidate< CandidateClass > & labeledCandidateClass (const int aIndex) const =0
 
virtual dchain::LabeledCandidate< CandidateClass > & labeledCandidateClass (const int aIndex)=0
 
virtual const dchain::LabeledCandidate< CandidateClass > & labeledCandidateClass (const int aIndex) const =0
 

Detailed Description

template<class ParticleClass, class CandidateClass>
class dchain::LabeledParticleList< ParticleClass, CandidateClass >

Definition at line 111 of file InstallArea/include/DecayChain/DecayChain/List/LabeledParticleList.h.

Member Typedef Documentation

◆ const_iterator [1/2]

template<class ParticleClass , class CandidateClass >
typedef WholeItr< ParticleClass > dchain::LabeledParticleList< ParticleClass, CandidateClass >::const_iterator

◆ const_iterator [2/2]

template<class ParticleClass , class CandidateClass >
typedef WholeItr< ParticleClass > dchain::LabeledParticleList< ParticleClass, CandidateClass >::const_iterator

◆ const_partial_iterator [1/2]

template<class ParticleClass , class CandidateClass >
typedef PartialItr< ParticleClass > dchain::LabeledParticleList< ParticleClass, CandidateClass >::const_partial_iterator

◆ const_partial_iterator [2/2]

template<class ParticleClass , class CandidateClass >
typedef PartialItr< ParticleClass > dchain::LabeledParticleList< ParticleClass, CandidateClass >::const_partial_iterator

◆ iterator [1/2]

template<class ParticleClass , class CandidateClass >
typedef MuteWholeItr< ParticleClass > dchain::LabeledParticleList< ParticleClass, CandidateClass >::iterator

◆ iterator [2/2]

template<class ParticleClass , class CandidateClass >
typedef MuteWholeItr< ParticleClass > dchain::LabeledParticleList< ParticleClass, CandidateClass >::iterator

Constructor & Destructor Documentation

◆ LabeledParticleList() [1/2]

template<class ParticleClass , class CandidateClass >
LabeledParticleList< ParticleClass, CandidateClass >::LabeledParticleList

◆ ~LabeledParticleList() [1/2]

template<class ParticleClass , class CandidateClass >
LabeledParticleList< ParticleClass, CandidateClass >::~LabeledParticleList
virtual

Definition at line 117 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/List/Template/LabeledParticleList.cc.

118{
119 delete( &m_list ) ;
120}

◆ LabeledParticleList() [2/2]

template<class ParticleClass , class CandidateClass >
dchain::LabeledParticleList< ParticleClass, CandidateClass >::LabeledParticleList ( )

◆ ~LabeledParticleList() [2/2]

template<class ParticleClass , class CandidateClass >
virtual dchain::LabeledParticleList< ParticleClass, CandidateClass >::~LabeledParticleList ( )
virtual

Member Function Documentation

◆ begin() [1/6]

◆ begin() [2/6]

template<class ParticleClass , class CandidateClass >
iterator dchain::LabeledParticleList< ParticleClass, CandidateClass >::begin ( )

◆ begin() [3/6]

template<class ParticleClass , class CandidateClass >
LabeledParticleList< ParticleClass, CandidateClass >::const_iterator LabeledParticleList< ParticleClass, CandidateClass >::begin

◆ begin() [4/6]

template<class ParticleClass , class CandidateClass >
const_iterator dchain::LabeledParticleList< ParticleClass, CandidateClass >::begin ( ) const

◆ begin() [5/6]

template<class ParticleClass , class CandidateClass >
LabeledParticleList< ParticleClass, CandidateClass >::const_partial_iterator LabeledParticleList< ParticleClass, CandidateClass >::begin ( const typename conjugation::Label  aLabel) const

◆ begin() [6/6]

template<class ParticleClass , class CandidateClass >
const_partial_iterator dchain::LabeledParticleList< ParticleClass, CandidateClass >::begin ( const typename conjugation::Label  aLabel) const

◆ empty() [1/4]

template<class ParticleClass , class CandidateClass >
bool LabeledParticleList< ParticleClass, CandidateClass >::empty
virtual

◆ empty() [2/4]

template<class ParticleClass , class CandidateClass >
virtual bool dchain::LabeledParticleList< ParticleClass, CandidateClass >::empty ( ) const
virtual

◆ empty() [3/4]

template<class ParticleClass , class CandidateClass >
bool LabeledParticleList< ParticleClass, CandidateClass >::empty ( const typename conjugation::Label  aLabel) const
virtual

Implements dchain::LabeledCandidateList< CandidateClass >.

Definition at line 214 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/List/Template/LabeledParticleList.cc.

215{
216// for efficiency, check to see if the whole list is empty first
217 if ( m_list.empty() ) {
218 return ( !false ) ;
219 }
220 return ( const_partial_iterator( this , 0 , aLabel ) ==
221 const_partial_iterator( this , m_list.size() , aLabel ) ) ;
222}

◆ empty() [4/4]

template<class ParticleClass , class CandidateClass >
virtual bool dchain::LabeledParticleList< ParticleClass, CandidateClass >::empty ( const typename conjugation::Label  aLabel) const
virtual

◆ end() [1/6]

template<class ParticleClass , class CandidateClass >
LabeledParticleList< ParticleClass, CandidateClass >::iterator LabeledParticleList< ParticleClass, CandidateClass >::end

◆ end() [2/6]

template<class ParticleClass , class CandidateClass >
iterator dchain::LabeledParticleList< ParticleClass, CandidateClass >::end ( )

◆ end() [3/6]

template<class ParticleClass , class CandidateClass >
LabeledParticleList< ParticleClass, CandidateClass >::const_iterator LabeledParticleList< ParticleClass, CandidateClass >::end

Definition at line 280 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/List/Template/LabeledParticleList.cc.

281{
282 return ( const_iterator( this , m_list.size() ) ) ;
283}

◆ end() [4/6]

template<class ParticleClass , class CandidateClass >
const_iterator dchain::LabeledParticleList< ParticleClass, CandidateClass >::end ( ) const

◆ end() [5/6]

template<class ParticleClass , class CandidateClass >
LabeledParticleList< ParticleClass, CandidateClass >::const_partial_iterator LabeledParticleList< ParticleClass, CandidateClass >::end ( const typename conjugation::Label  aLabel) const

Definition at line 288 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/List/Template/LabeledParticleList.cc.

289{
290 return ( const_partial_iterator( this , m_list.size() , aLabel ) ) ;
291}

◆ end() [6/6]

template<class ParticleClass , class CandidateClass >
const_partial_iterator dchain::LabeledParticleList< ParticleClass, CandidateClass >::end ( const typename conjugation::Label  aLabel) const

◆ erase_elements() [1/2]

template<class ParticleClass , class CandidateClass >
void LabeledParticleList< ParticleClass, CandidateClass >::erase_elements ( int  aStart,
int  aFinish 
)
virtual

Implements dchain::LabeledCandidateList< CandidateClass >.

Definition at line 168 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/List/Template/LabeledParticleList.cc.

170{
171 m_list.erase( m_list.begin() + aStart ,
172 m_list.begin() + aFinish ) ;
173}

◆ erase_elements() [2/2]

template<class ParticleClass , class CandidateClass >
virtual void dchain::LabeledParticleList< ParticleClass, CandidateClass >::erase_elements ( int  aStart,
int  aFinish 
)
virtual

◆ labeledCandidateClass() [1/4]

template<class ParticleClass , class CandidateClass >
LabeledCandidate< CandidateClass > & LabeledParticleList< ParticleClass, CandidateClass >::labeledCandidateClass ( const int  aIndex)
protectedvirtual

◆ labeledCandidateClass() [2/4]

template<class ParticleClass , class CandidateClass >
virtual LabeledCandidate< CandidateClass > & dchain::LabeledParticleList< ParticleClass, CandidateClass >::labeledCandidateClass ( const int  aIndex)
protectedvirtual

◆ labeledCandidateClass() [3/4]

template<class ParticleClass , class CandidateClass >
const LabeledCandidate< CandidateClass > & LabeledParticleList< ParticleClass, CandidateClass >::labeledCandidateClass ( const int  aIndex) const
protectedvirtual

◆ labeledCandidateClass() [4/4]

template<class ParticleClass , class CandidateClass >
virtual const LabeledCandidate< CandidateClass > & dchain::LabeledParticleList< ParticleClass, CandidateClass >::labeledCandidateClass ( const int  aIndex) const
protectedvirtual

◆ labeledParticleClass() [1/4]

template<class ParticleClass , class CandidateClass >
LabeledParticle< ParticleClass > & LabeledParticleList< ParticleClass, CandidateClass >::labeledParticleClass ( const int  aIndex)
protectedvirtual

◆ labeledParticleClass() [2/4]

template<class ParticleClass , class CandidateClass >
virtual LabeledParticle< ParticleClass > & dchain::LabeledParticleList< ParticleClass, CandidateClass >::labeledParticleClass ( const int  aIndex)
protectedvirtual

◆ labeledParticleClass() [3/4]

template<class ParticleClass , class CandidateClass >
const LabeledParticle< ParticleClass > & LabeledParticleList< ParticleClass, CandidateClass >::labeledParticleClass ( const int  aIndex) const
protectedvirtual

◆ labeledParticleClass() [4/4]

template<class ParticleClass , class CandidateClass >
virtual const LabeledParticle< ParticleClass > & dchain::LabeledParticleList< ParticleClass, CandidateClass >::labeledParticleClass ( const int  aIndex) const
protectedvirtual

◆ operator[]() [1/4]

template<class ParticleClass , class CandidateClass >
LabeledParticle< ParticleClass > & LabeledParticleList< ParticleClass, CandidateClass >::operator[] ( const int  aIndex)

◆ operator[]() [2/4]

template<class ParticleClass , class CandidateClass >
LabeledParticle< ParticleClass > & dchain::LabeledParticleList< ParticleClass, CandidateClass >::operator[] ( const int  aIndex)

◆ operator[]() [3/4]

template<class ParticleClass , class CandidateClass >
const LabeledParticle< ParticleClass > & LabeledParticleList< ParticleClass, CandidateClass >::operator[] ( const int  aIndex) const

◆ operator[]() [4/4]

template<class ParticleClass , class CandidateClass >
const LabeledParticle< ParticleClass > & dchain::LabeledParticleList< ParticleClass, CandidateClass >::operator[] ( const int  aIndex) const

◆ push_back() [1/2]

template<class ParticleClass , class CandidateClass >
void LabeledParticleList< ParticleClass, CandidateClass >::push_back ( const LabeledParticle< ParticleClass > &  aEntry)

◆ push_back() [2/2]

template<class ParticleClass , class CandidateClass >
void dchain::LabeledParticleList< ParticleClass, CandidateClass >::push_back ( const LabeledParticle< ParticleClass > &  aEntry)

◆ size() [1/4]

template<class ParticleClass , class CandidateClass >
int LabeledParticleList< ParticleClass, CandidateClass >::size
virtual

◆ size() [2/4]

template<class ParticleClass , class CandidateClass >
virtual int dchain::LabeledParticleList< ParticleClass, CandidateClass >::size ( ) const
virtual

◆ size() [3/4]

template<class ParticleClass , class CandidateClass >
int LabeledParticleList< ParticleClass, CandidateClass >::size ( const typename conjugation::Label  aLabel) const
virtual

Implements dchain::LabeledCandidateList< CandidateClass >.

Definition at line 235 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/List/Template/LabeledParticleList.cc.

236{
237// for efficiency, check to see if the whole list is empty first
238 if ( m_list.empty() ) {
239 return ( 0 ) ;
240 }
241 int result( 0 ) ;
242/* Currently the "count" is done explicilty because of deficiencies
243 in the SunOS5 compiler!
244 count( _labeledparticlelist_vector_::const_iterator( m_list.begin() ) ,
245 _labeledparticlelist_vector_::const_iterator( m_list.end() ) ,
246 aLabel ,
247 result ) ;
248 */
249 typename _labeledparticlelist_vector_::const_iterator first( m_list.begin() ) ;
250 typename _labeledparticlelist_vector_::const_iterator last( m_list.end() ) ;
251 while (first != last) {
252 if ( *first == aLabel ) {
253 first++ ;
254 result++ ;
255 }
256 }
257
258 return ( result ) ;
259}
Index first(Pair i)
Definition: EvtCyclic3.cc:195

◆ size() [4/4]

template<class ParticleClass , class CandidateClass >
virtual int dchain::LabeledParticleList< ParticleClass, CandidateClass >::size ( const typename conjugation::Label  aLabel) const
virtual

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