1#ifndef DCHAIN_MUTEWHOLECANDIDATEITR_H
2#define DCHAIN_MUTEWHOLECANDIDATEITR_H
39template <
class Cand
idateClass>
class LabeledCandidate ;
40template <
class Cand
idateClass >
class LabeledCandidateList ;
42template <
class Cand
idateClass >
43class MuteWholeCandidateItr
46 friend class LabeledCandidateList< CandidateClass > ;
115template <
class Cand
idateClass >
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 >
165template <
class Cand
idateClass >
169 m_indexedCandidates = aOtherItr.indexedCandidates() ;
170 m_index = aOtherItr.index() ;
178template <
class Cand
idateClass >
186template <
class Cand
idateClass >
195template <
class Cand
idateClass >
203template <
class Cand
idateClass >
212template <
class Cand
idateClass >
220template <
class Cand
idateClass >
225 return ( tmp +=
n ) ;
228template <
class Cand
idateClass >
236template <
class Cand
idateClass >
241 return ( tmp -=
n ) ;
248template <
class Cand
idateClass >
252 return ( (*m_indexedCandidates).labeledCandidateClass( m_index ) ) ;
255template <
class Cand
idateClass >
259 return ( (*m_indexedCandidates).labeledCandidateClass( m_index +
n ) ) ;
262template <
class Cand
idateClass >
266 return ( m_index - aOtherItr.index() ) ;
269template <
class Cand
idateClass >
273 return ( ( m_index == aOtherItr.index() ) &&
274 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
277template <
class Cand
idateClass >
281 return ( ( m_index != aOtherItr.index() ) ||
282 ( m_indexedCandidates != aOtherItr.indexedCandidates() ) ) ;
285template <
class Cand
idateClass >
289 return ( ( m_index < aOtherItr.index() ) &&
290 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
293template <
class Cand
idateClass >
297 return ( ( m_index > aOtherItr.index() ) &&
298 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
301template <
class Cand
idateClass >
305 return ( ( m_index >= aOtherItr.index() ) &&
306 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
309template <
class Cand
idateClass >
313 return ( ( m_index <= aOtherItr.index() ) &&
314 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
317template <
class Cand
idateClass >
321 return ( (CandidateClass*)0 ) ;
const LabeledCandidate< CandidateClass > * pointer
MuteWholeCandidateItr< CandidateClass > & operator++()
bool operator==(const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
IndexedLabeledCandidates< CandidateClass > * indexedCandidates() const
MuteWholeCandidateItr< CandidateClass > & operator+=(difference_type n)
candidateitr::size_type size_type
const MuteWholeCandidateItr< CandidateClass > & operator=(const MuteWholeCandidateItr< CandidateClass > &aOtherItr)
bool operator>(const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
MuteWholeCandidateItr< CandidateClass > operator+(difference_type n)
virtual ~MuteWholeCandidateItr()
MuteWholeCandidateItr< CandidateClass > operator-(difference_type n)
const LabeledCandidate< CandidateClass > value_type
bool operator>=(const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
candidateitr::difference_type difference_type
MuteWholeCandidateItr(IndexedLabeledCandidates< CandidateClass > *aList, const size_type aIndex)
const LabeledCandidate< CandidateClass > & reference
candidateitr::size_type distance_type
bool operator<(const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
bool operator!=(const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
LabeledCandidate< CandidateClass > & operator[](size_type n) const
MuteWholeCandidateItr< CandidateClass > & operator-=(difference_type n)
LabeledCandidate< CandidateClass > & operator*() const
MuteWholeCandidateItr< CandidateClass > operator++(int)
MuteWholeCandidateItr< CandidateClass > operator--(int)
bool operator<=(const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
MuteWholeCandidateItr< CandidateClass > & operator--()
MuteWholeCandidateItr(const MuteWholeCandidateItr< CandidateClass > &aOtherItr)
std::random_access_iterator_tag iterator_category
difference_type operator-(const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
LabeledCandidate< CandidateClass > * value_type(const MuteWholeCandidateItr< CandidateClass > &)