BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
dchain::WholeCandidateItr< CandidateClass > Class Template Reference

#include <WholeCandidateItr.h>

Public Types

typedef const LabeledCandidate< CandidateClass > value_type
 
typedef dchain::candidateitr::size_type distance_type
 
typedef dchain::candidateitr::size_type size_type
 
typedef dchain::candidateitr::difference_type difference_type
 
typedef std::random_access_iterator_tag iterator_category
 
typedef const LabeledCandidate< CandidateClass > * pointer
 
typedef const LabeledCandidate< CandidateClass > & reference
 
typedef const LabeledCandidate< CandidateClass > value_type
 
typedef dchain::candidateitr::size_type distance_type
 
typedef dchain::candidateitr::size_type size_type
 
typedef dchain::candidateitr::difference_type difference_type
 
typedef std::random_access_iterator_tag iterator_category
 
typedef const LabeledCandidate< CandidateClass > * pointer
 
typedef const LabeledCandidate< CandidateClass > & reference
 

Public Member Functions

 WholeCandidateItr (const WholeCandidateItr< CandidateClass > &aOtherItr)
 
virtual ~WholeCandidateItr ()
 
const WholeCandidateItroperator= (const WholeCandidateItr< CandidateClass > &aOtherItr)
 
WholeCandidateItr< CandidateClass > & operator++ ()
 
WholeCandidateItr< CandidateClass > operator++ (int)
 
WholeCandidateItr< CandidateClass > & operator-- ()
 
WholeCandidateItr< CandidateClass > operator-- (int)
 
WholeCandidateItr< CandidateClass > & operator+= (difference_type n)
 
WholeCandidateItr< CandidateClass > operator+ (difference_type n)
 
WholeCandidateItr< CandidateClass > & operator-= (difference_type n)
 
WholeCandidateItr< CandidateClass > operator- (difference_type n)
 
const LabeledCandidate< CandidateClass > & operator* () const
 
const LabeledCandidate< CandidateClass > & operator[] (size_type n) const
 
difference_type operator- (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator== (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator!= (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator< (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator> (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator>= (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator<= (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
 WholeCandidateItr (const WholeCandidateItr< CandidateClass > &aOtherItr)
 
virtual ~WholeCandidateItr ()
 
const WholeCandidateItroperator= (const WholeCandidateItr< CandidateClass > &aOtherItr)
 
WholeCandidateItr< CandidateClass > & operator++ ()
 
WholeCandidateItr< CandidateClass > operator++ (int)
 
WholeCandidateItr< CandidateClass > & operator-- ()
 
WholeCandidateItr< CandidateClass > operator-- (int)
 
WholeCandidateItr< CandidateClass > & operator+= (difference_type n)
 
WholeCandidateItr< CandidateClass > operator+ (difference_type n)
 
WholeCandidateItr< CandidateClass > & operator-= (difference_type n)
 
WholeCandidateItr< CandidateClass > operator- (difference_type n)
 
const LabeledCandidate< CandidateClass > & operator* () const
 
const LabeledCandidate< CandidateClass > & operator[] (size_type n) const
 
difference_type operator- (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator== (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator!= (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator< (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator> (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator>= (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator<= (const WholeCandidateItr< CandidateClass > &aOtherItr) const
 

Protected Member Functions

 WholeCandidateItr (const IndexedLabeledCandidates< CandidateClass > *aList, const size_type aIndex)
 
IndexedLabeledCandidates< CandidateClass > * indexedCandidates () const
 
size_type index () const
 
 WholeCandidateItr (const IndexedLabeledCandidates< CandidateClass > *aList, const size_type aIndex)
 
IndexedLabeledCandidates< CandidateClass > * indexedCandidates () const
 
size_type index () const
 

Friends

class LabeledCandidateList< CandidateClass >
 

Detailed Description

template<class CandidateClass>
class dchain::WholeCandidateItr< CandidateClass >

Definition at line 45 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

Member Typedef Documentation

◆ difference_type [1/2]

template<class CandidateClass >
typedef dchain::candidateitr::difference_type dchain::WholeCandidateItr< CandidateClass >::difference_type

◆ difference_type [2/2]

template<class CandidateClass >
typedef dchain::candidateitr::difference_type dchain::WholeCandidateItr< CandidateClass >::difference_type

◆ distance_type [1/2]

template<class CandidateClass >
typedef dchain::candidateitr::size_type dchain::WholeCandidateItr< CandidateClass >::distance_type

◆ distance_type [2/2]

template<class CandidateClass >
typedef dchain::candidateitr::size_type dchain::WholeCandidateItr< CandidateClass >::distance_type

◆ iterator_category [1/2]

template<class CandidateClass >
typedef std::random_access_iterator_tag dchain::WholeCandidateItr< CandidateClass >::iterator_category

◆ iterator_category [2/2]

template<class CandidateClass >
typedef std::random_access_iterator_tag dchain::WholeCandidateItr< CandidateClass >::iterator_category

◆ pointer [1/2]

template<class CandidateClass >
typedef const LabeledCandidate<CandidateClass>* dchain::WholeCandidateItr< CandidateClass >::pointer

◆ pointer [2/2]

template<class CandidateClass >
typedef const LabeledCandidate<CandidateClass>* dchain::WholeCandidateItr< CandidateClass >::pointer

◆ reference [1/2]

template<class CandidateClass >
typedef const LabeledCandidate<CandidateClass>& dchain::WholeCandidateItr< CandidateClass >::reference

◆ reference [2/2]

template<class CandidateClass >
typedef const LabeledCandidate<CandidateClass>& dchain::WholeCandidateItr< CandidateClass >::reference

◆ size_type [1/2]

template<class CandidateClass >
typedef dchain::candidateitr::size_type dchain::WholeCandidateItr< CandidateClass >::size_type

◆ size_type [2/2]

template<class CandidateClass >
typedef dchain::candidateitr::size_type dchain::WholeCandidateItr< CandidateClass >::size_type

◆ value_type [1/2]

template<class CandidateClass >
typedef const LabeledCandidate<CandidateClass> dchain::WholeCandidateItr< CandidateClass >::value_type

◆ value_type [2/2]

template<class CandidateClass >
typedef const LabeledCandidate<CandidateClass> dchain::WholeCandidateItr< CandidateClass >::value_type

Constructor & Destructor Documentation

◆ WholeCandidateItr() [1/4]

template<class CandidateClass >
dchain::WholeCandidateItr< CandidateClass >::WholeCandidateItr ( const WholeCandidateItr< CandidateClass > &  aOtherItr)
inline

Definition at line 146 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

146 :
147 m_indexedCandidates( aOtherItr.indexedCandidates() ) ,
148 m_index( aOtherItr.index() )
149{
150}

◆ ~WholeCandidateItr() [1/2]

template<class CandidateClass >
virtual dchain::WholeCandidateItr< CandidateClass >::~WholeCandidateItr ( )
inlinevirtual

◆ WholeCandidateItr() [2/4]

template<class CandidateClass >
dchain::WholeCandidateItr< CandidateClass >::WholeCandidateItr ( const IndexedLabeledCandidates< CandidateClass > *  aList,
const size_type  aIndex 
)
inlineprotected

Definition at line 154 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

155 :
156// cast away const as const_itr can be assocciated with a non-const list,
157// but only const lists use this constructor
158 m_indexedCandidates( (IndexedLabeledCandidates< CandidateClass >*)aList ) ,
159 m_index( aIndex )
160{
161}

◆ WholeCandidateItr() [3/4]

template<class CandidateClass >
dchain::WholeCandidateItr< CandidateClass >::WholeCandidateItr ( const WholeCandidateItr< CandidateClass > &  aOtherItr)

◆ ~WholeCandidateItr() [2/2]

template<class CandidateClass >
virtual dchain::WholeCandidateItr< CandidateClass >::~WholeCandidateItr ( )
inlinevirtual

◆ WholeCandidateItr() [4/4]

template<class CandidateClass >
dchain::WholeCandidateItr< CandidateClass >::WholeCandidateItr ( const IndexedLabeledCandidates< CandidateClass > *  aList,
const size_type  aIndex 
)
protected

Member Function Documentation

◆ index() [1/2]

◆ index() [2/2]

template<class CandidateClass >
size_type dchain::WholeCandidateItr< CandidateClass >::index ( ) const
protected

◆ indexedCandidates() [1/2]

◆ indexedCandidates() [2/2]

template<class CandidateClass >
IndexedLabeledCandidates< CandidateClass > * dchain::WholeCandidateItr< CandidateClass >::indexedCandidates ( ) const
protected

◆ operator!=() [1/2]

template<class CandidateClass >
bool dchain::WholeCandidateItr< CandidateClass >::operator!= ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 282 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

283{
284 return ( ( m_index != aOtherItr.index() ) ||
285 ( m_indexedCandidates != aOtherItr.indexedCandidates() ) ) ;
286}

◆ operator!=() [2/2]

template<class CandidateClass >
bool dchain::WholeCandidateItr< CandidateClass >::operator!= ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const

◆ operator*() [1/2]

template<class CandidateClass >
const LabeledCandidate< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator*
inline

Definition at line 252 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

253{
254 return ( (*m_indexedCandidates).labeledCandidateClass( m_index ) ) ;
255}

◆ operator*() [2/2]

template<class CandidateClass >
const LabeledCandidate< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator* ( ) const

◆ operator+() [1/2]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > dchain::WholeCandidateItr< CandidateClass >::operator+ ( difference_type  n)
inline

Definition at line 224 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

225{
226 WholeCandidateItr tmp( *this ) ;
227 return ( tmp += n ) ;
228}
const Int_t n

◆ operator+() [2/2]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > dchain::WholeCandidateItr< CandidateClass >::operator+ ( difference_type  n)

◆ operator++() [1/4]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator++
inline

Definition at line 182 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

183{
184 ++m_index ;
185 return ( *this ) ;
186}

Referenced by dchain::WholeItr< T >::operator++().

◆ operator++() [2/4]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator++ ( )

◆ operator++() [3/4]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > dchain::WholeCandidateItr< CandidateClass >::operator++ ( int  )
inline

Definition at line 190 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

191{
192 WholeCandidateItr tmp( *this ) ;
193 ++m_index ;
194 return ( tmp ) ;
195}

◆ operator++() [4/4]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > dchain::WholeCandidateItr< CandidateClass >::operator++ ( int  )

◆ operator+=() [1/2]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator+= ( difference_type  n)
inline

Definition at line 216 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

217{
218 m_index += n ;
219 return( *this ) ;
220}

◆ operator+=() [2/2]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator+= ( difference_type  n)

◆ operator-() [1/4]

template<class CandidateClass >
WholeCandidateItr< CandidateClass >::difference_type dchain::WholeCandidateItr< CandidateClass >::operator- ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 267 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

268{
269 return ( m_index - aOtherItr.index() ) ;
270}

◆ operator-() [2/4]

template<class CandidateClass >
difference_type dchain::WholeCandidateItr< CandidateClass >::operator- ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const

◆ operator-() [3/4]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > dchain::WholeCandidateItr< CandidateClass >::operator- ( difference_type  n)
inline

Definition at line 240 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

241{
242 WholeCandidateItr tmp( *this ) ;
243 return ( tmp -= n ) ;
244}

◆ operator-() [4/4]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > dchain::WholeCandidateItr< CandidateClass >::operator- ( difference_type  n)

◆ operator--() [1/4]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator--
inline

Definition at line 199 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

200{
201 --m_index ;
202 return ( *this ) ;
203}

Referenced by dchain::WholeItr< T >::operator--().

◆ operator--() [2/4]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator-- ( )

◆ operator--() [3/4]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > dchain::WholeCandidateItr< CandidateClass >::operator-- ( int  )
inline

Definition at line 207 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

208{
209 WholeCandidateItr tmp( *this ) ;
210 --m_index ;
211 return ( tmp ) ;
212}

◆ operator--() [4/4]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > dchain::WholeCandidateItr< CandidateClass >::operator-- ( int  )

◆ operator-=() [1/2]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator-= ( difference_type  n)
inline

Definition at line 232 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

233{
234 m_index -= n ;
235 return( *this ) ;
236}

Referenced by dchain::WholeItr< T >::operator-=().

◆ operator-=() [2/2]

template<class CandidateClass >
WholeCandidateItr< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator-= ( difference_type  n)

◆ operator<() [1/2]

template<class CandidateClass >
bool dchain::WholeCandidateItr< CandidateClass >::operator< ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 290 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

291{
292 return ( ( m_index < aOtherItr.index() ) &&
293 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
294}

◆ operator<() [2/2]

template<class CandidateClass >
bool dchain::WholeCandidateItr< CandidateClass >::operator< ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const

◆ operator<=() [1/2]

template<class CandidateClass >
bool dchain::WholeCandidateItr< CandidateClass >::operator<= ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 314 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

315{
316 return ( ( m_index <= aOtherItr.index() ) &&
317 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
318}

◆ operator<=() [2/2]

template<class CandidateClass >
bool dchain::WholeCandidateItr< CandidateClass >::operator<= ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const

◆ operator=() [1/2]

template<class CandidateClass >
const WholeCandidateItr< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator= ( const WholeCandidateItr< CandidateClass > &  aOtherItr)
inline

Definition at line 169 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

170{
171 m_indexedCandidates = aOtherItr.indexedCandidates() ;
172 m_index = aOtherItr.index() ;
173 return ( *this ) ;
174}

Referenced by dchain::WholeItr< T >::operator=().

◆ operator=() [2/2]

template<class CandidateClass >
const WholeCandidateItr & dchain::WholeCandidateItr< CandidateClass >::operator= ( const WholeCandidateItr< CandidateClass > &  aOtherItr)

◆ operator==() [1/2]

template<class CandidateClass >
bool dchain::WholeCandidateItr< CandidateClass >::operator== ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 274 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

275{
276 return ( ( m_index == aOtherItr.index() ) &&
277 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
278}

◆ operator==() [2/2]

template<class CandidateClass >
bool dchain::WholeCandidateItr< CandidateClass >::operator== ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const

◆ operator>() [1/2]

template<class CandidateClass >
bool dchain::WholeCandidateItr< CandidateClass >::operator> ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 298 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

299{
300 return ( ( m_index > aOtherItr.index() ) &&
301 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
302}

◆ operator>() [2/2]

template<class CandidateClass >
bool dchain::WholeCandidateItr< CandidateClass >::operator> ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const

◆ operator>=() [1/2]

template<class CandidateClass >
bool dchain::WholeCandidateItr< CandidateClass >::operator>= ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 306 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

307{
308 return ( ( m_index >= aOtherItr.index() ) &&
309 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
310}

◆ operator>=() [2/2]

template<class CandidateClass >
bool dchain::WholeCandidateItr< CandidateClass >::operator>= ( const WholeCandidateItr< CandidateClass > &  aOtherItr) const

◆ operator[]() [1/2]

template<class CandidateClass >
const LabeledCandidate< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator[] ( size_type  n) const
inline

Definition at line 259 of file Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/Iterator/WholeCandidateItr.h.

260{
261 return ( (*m_indexedCandidates).labeledCandidateClass( m_index + n ) ) ;
262}

◆ operator[]() [2/2]

template<class CandidateClass >
const LabeledCandidate< CandidateClass > & dchain::WholeCandidateItr< CandidateClass >::operator[] ( size_type  n) const

Friends And Related Function Documentation

◆ LabeledCandidateList< CandidateClass >

template<class CandidateClass >
LabeledCandidateList< CandidateClass >
friend

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