BOSS 6.6.4.p01
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
 

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
 

Protected Member Functions

 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 WholeCandidateItr.h.

Member Typedef Documentation

◆ difference_type

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

Definition at line 55 of file WholeCandidateItr.h.

◆ distance_type

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

Definition at line 53 of file WholeCandidateItr.h.

◆ iterator_category

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

Definition at line 56 of file WholeCandidateItr.h.

◆ pointer

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

Definition at line 57 of file WholeCandidateItr.h.

◆ reference

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

Definition at line 58 of file WholeCandidateItr.h.

◆ size_type

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

Definition at line 54 of file WholeCandidateItr.h.

◆ value_type

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

Definition at line 52 of file WholeCandidateItr.h.

Constructor & Destructor Documentation

◆ WholeCandidateItr() [1/2]

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

Definition at line 146 of file WholeCandidateItr.h.

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

◆ ~WholeCandidateItr()

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

Definition at line 63 of file WholeCandidateItr.h.

63{}

◆ WholeCandidateItr() [2/2]

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

Definition at line 154 of file 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}

Member Function Documentation

◆ index()

◆ indexedCandidates()

◆ operator!=()

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

Definition at line 282 of file WholeCandidateItr.h.

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

◆ operator*()

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

Definition at line 252 of file WholeCandidateItr.h.

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

◆ operator+()

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

Definition at line 224 of file WholeCandidateItr.h.

225{
226 WholeCandidateItr tmp( *this ) ;
227 return ( tmp += n ) ;
228}
const Int_t n
WholeCandidateItr(const WholeCandidateItr< CandidateClass > &aOtherItr)

◆ operator++() [1/2]

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

Definition at line 182 of file WholeCandidateItr.h.

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

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

◆ operator++() [2/2]

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

Definition at line 190 of file WholeCandidateItr.h.

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

◆ operator+=()

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

Definition at line 216 of file WholeCandidateItr.h.

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

◆ operator-() [1/2]

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

Definition at line 267 of file WholeCandidateItr.h.

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

◆ operator-() [2/2]

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

Definition at line 240 of file WholeCandidateItr.h.

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

◆ operator--() [1/2]

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

Definition at line 199 of file WholeCandidateItr.h.

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

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

◆ operator--() [2/2]

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

Definition at line 207 of file WholeCandidateItr.h.

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

◆ operator-=()

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

Definition at line 232 of file WholeCandidateItr.h.

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

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

◆ operator<()

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

Definition at line 290 of file WholeCandidateItr.h.

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

◆ operator<=()

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

Definition at line 314 of file WholeCandidateItr.h.

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

◆ operator=()

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

Definition at line 169 of file WholeCandidateItr.h.

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

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

◆ operator==()

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

Definition at line 274 of file WholeCandidateItr.h.

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

◆ operator>()

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

Definition at line 298 of file WholeCandidateItr.h.

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

◆ operator>=()

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

Definition at line 306 of file WholeCandidateItr.h.

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

◆ operator[]()

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

Definition at line 259 of file WholeCandidateItr.h.

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

Friends And Related Function Documentation

◆ LabeledCandidateList< CandidateClass >

template<class CandidateClass >
friend class LabeledCandidateList< CandidateClass >
friend

Definition at line 314 of file WholeCandidateItr.h.


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