1#ifndef DCHAIN_WHOLECANDIDATEITR_H
2#define DCHAIN_WHOLECANDIDATEITR_H
42template <
class Cand
idateClass >
class LabeledCandidateList ;
44template <
class Cand
idateClass >
45class WholeCandidateItr
48 friend class LabeledCandidateList< CandidateClass > ;
126template <
class Cand
idateClass >
130 return ( m_indexedCandidates ) ;
133template <
class Cand
idateClass >
144template <
class Cand
idateClass >
147 m_indexedCandidates( aOtherItr.indexedCandidates() ) ,
148 m_index( aOtherItr.index() )
152template <
class Cand
idateClass >
167template <
class Cand
idateClass >
171 m_indexedCandidates = aOtherItr.indexedCandidates() ;
172 m_index = aOtherItr.index() ;
180template <
class Cand
idateClass >
188template <
class Cand
idateClass >
197template <
class Cand
idateClass >
205template <
class Cand
idateClass >
214template <
class Cand
idateClass >
222template <
class Cand
idateClass >
227 return ( tmp +=
n ) ;
230template <
class Cand
idateClass >
238template <
class Cand
idateClass >
243 return ( tmp -=
n ) ;
250template <
class Cand
idateClass >
254 return ( (*m_indexedCandidates).labeledCandidateClass( m_index ) ) ;
257template <
class Cand
idateClass >
261 return ( (*m_indexedCandidates).labeledCandidateClass( m_index +
n ) ) ;
264template <
class Cand
idateClass >
269 return ( m_index - aOtherItr.index() ) ;
272template <
class Cand
idateClass >
276 return ( ( m_index == aOtherItr.index() ) &&
277 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
280template <
class Cand
idateClass >
284 return ( ( m_index != aOtherItr.index() ) ||
285 ( m_indexedCandidates != aOtherItr.indexedCandidates() ) ) ;
288template <
class Cand
idateClass >
292 return ( ( m_index < aOtherItr.index() ) &&
293 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
296template <
class Cand
idateClass >
300 return ( ( m_index > aOtherItr.index() ) &&
301 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
304template <
class Cand
idateClass >
308 return ( ( m_index >= aOtherItr.index() ) &&
309 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
312template <
class Cand
idateClass >
316 return ( ( m_index <= aOtherItr.index() ) &&
317 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
WholeCandidateItr< CandidateClass > operator--(int)
const LabeledCandidate< CandidateClass > & operator[](size_type n) const
const LabeledCandidate< CandidateClass > value_type
WholeCandidateItr< CandidateClass > & operator+=(difference_type n)
std::random_access_iterator_tag iterator_category
const LabeledCandidate< CandidateClass > * pointer
const WholeCandidateItr & operator=(const WholeCandidateItr< CandidateClass > &aOtherItr)
WholeCandidateItr< CandidateClass > operator++(int)
WholeCandidateItr< CandidateClass > & operator--()
bool operator>(const WholeCandidateItr< CandidateClass > &aOtherItr) const
dchain::candidateitr::difference_type difference_type
WholeCandidateItr< CandidateClass > & operator++()
bool operator<=(const WholeCandidateItr< CandidateClass > &aOtherItr) const
bool operator<(const WholeCandidateItr< CandidateClass > &aOtherItr) const
const LabeledCandidate< CandidateClass > & reference
virtual ~WholeCandidateItr()
const LabeledCandidate< CandidateClass > & operator*() const
WholeCandidateItr(const IndexedLabeledCandidates< CandidateClass > *aList, const size_type aIndex)
dchain::candidateitr::size_type distance_type
bool operator!=(const WholeCandidateItr< CandidateClass > &aOtherItr) const
bool operator>=(const WholeCandidateItr< CandidateClass > &aOtherItr) const
IndexedLabeledCandidates< CandidateClass > * indexedCandidates() const
dchain::candidateitr::size_type size_type
WholeCandidateItr(const WholeCandidateItr< CandidateClass > &aOtherItr)
bool operator==(const WholeCandidateItr< CandidateClass > &aOtherItr) const
WholeCandidateItr< CandidateClass > operator+(difference_type n)
difference_type operator-(const WholeCandidateItr< CandidateClass > &aOtherItr) const
WholeCandidateItr< CandidateClass > operator-(difference_type n)
WholeCandidateItr< CandidateClass > & operator-=(difference_type n)