![]() |
![]() |
#include <iterator.h>
Public Types | |
typedef ptrdiff_t | difference_type |
typedef std::vector< int > ::iterator::iterator_category | iterator_category |
typedef Candidate * | pointer |
typedef Candidate & | reference |
typedef Candidate | value_type |
Public Member Functions | |
iterator () | |
iterator (iterator_imp *it) | |
iterator (const iterator &it) | |
bool | operator!= (const iterator &ci) const |
Candidate & | operator* () const |
iterator | operator+ (difference_type n) const |
iterator & | operator++ () |
iterator | operator++ (int) |
iterator & | operator+= (difference_type d) |
difference_type | operator- (const iterator &o) const |
iterator | operator- (difference_type n) const |
iterator & | operator-- () |
iterator | operator-- (int) |
iterator & | operator-= (difference_type d) |
Candidate * | operator-> () const |
bool | operator< (const iterator &o) |
iterator & | operator= (const iterator &it) |
bool | operator== (const iterator &ci) const |
~iterator () | |
Private Member Functions | |
friend | const_iterator::const_iterator (const iterator &) |
Private Attributes | |
iterator_imp * | i |
Definition at line 15 of file iterator.h.
typedef ptrdiff_t reco::candidate::iterator::difference_type |
Definition at line 19 of file iterator.h.
typedef std::vector<int>::iterator::iterator_category reco::candidate::iterator::iterator_category |
Definition at line 20 of file iterator.h.
Definition at line 17 of file iterator.h.
Definition at line 18 of file iterator.h.
Definition at line 16 of file iterator.h.
reco::candidate::iterator::iterator | ( | ) | [inline] |
reco::candidate::iterator::iterator | ( | iterator_imp * | it | ) | [inline] |
Definition at line 22 of file iterator.h.
: i( it ) { }
reco::candidate::iterator::iterator | ( | const iterator & | it | ) | [inline] |
Definition at line 23 of file iterator.h.
: i( it.i->clone() ) { }
reco::candidate::iterator::~iterator | ( | ) | [inline] |
reco::candidate::iterator::const_iterator::const_iterator | ( | const iterator & | ) | [private] |
bool reco::candidate::iterator::operator!= | ( | const iterator & | ci | ) | const [inline] |
Definition at line 41 of file iterator.h.
References reco::candidate::iterator_imp::equal_to(), and i.
{ return ! i->equal_to( ci.i ); }
Candidate& reco::candidate::iterator::operator* | ( | ) | const [inline] |
Definition at line 42 of file iterator.h.
References reco::candidate::iterator_imp::deref(), and i.
Referenced by operator->().
{ return i->deref(); }
iterator reco::candidate::iterator::operator+ | ( | difference_type | n | ) | const [inline] |
Definition at line 31 of file iterator.h.
References reco::candidate::iterator_imp::clone(), i, reco::candidate::iterator_imp::increase(), and iterator().
iterator& reco::candidate::iterator::operator++ | ( | ) | [inline] |
Definition at line 26 of file iterator.h.
References i, and reco::candidate::iterator_imp::increase().
{ i->increase(); return *this; }
iterator reco::candidate::iterator::operator++ | ( | int | ) | [inline] |
Definition at line 27 of file iterator.h.
References i, and reco::candidate::iterator_imp::increase().
iterator& reco::candidate::iterator::operator+= | ( | difference_type | d | ) | [inline] |
Definition at line 44 of file iterator.h.
References i, and reco::candidate::iterator_imp::increase().
{ i->increase( d ); return *this; }
iterator reco::candidate::iterator::operator- | ( | difference_type | n | ) | const [inline] |
Definition at line 35 of file iterator.h.
References reco::candidate::iterator_imp::clone(), reco::candidate::iterator_imp::decrease(), i, and iterator().
difference_type reco::candidate::iterator::operator- | ( | const iterator & | o | ) | const [inline] |
Definition at line 30 of file iterator.h.
References reco::candidate::iterator_imp::difference(), and i.
iterator& reco::candidate::iterator::operator-- | ( | ) | [inline] |
Definition at line 28 of file iterator.h.
References i, and reco::candidate::iterator_imp::increase().
{ i->increase(); return *this; }
iterator reco::candidate::iterator::operator-- | ( | int | ) | [inline] |
Definition at line 29 of file iterator.h.
References reco::candidate::iterator_imp::decrease(), and i.
iterator& reco::candidate::iterator::operator-= | ( | difference_type | d | ) | [inline] |
Definition at line 45 of file iterator.h.
References reco::candidate::iterator_imp::decrease(), and i.
{ i->decrease( d ); return *this; }
Candidate* reco::candidate::iterator::operator-> | ( | ) | const [inline] |
bool reco::candidate::iterator::operator< | ( | const iterator & | o | ) | [inline] |
Definition at line 39 of file iterator.h.
References i, and reco::candidate::iterator_imp::less_than().
Definition at line 25 of file iterator.h.
References reco::candidate::iterator_imp::assign(), and i.
{ i->assign( it.i ); return *this; }
bool reco::candidate::iterator::operator== | ( | const iterator & | ci | ) | const [inline] |
Definition at line 40 of file iterator.h.
References reco::candidate::iterator_imp::equal_to(), and i.
{ return i->equal_to( ci.i ); }
iterator_imp* reco::candidate::iterator::i [private] |
Definition at line 47 of file iterator.h.
Referenced by operator!=(), operator*(), operator+(), operator++(), operator+=(), operator-(), operator--(), operator-=(), operator<(), operator=(), operator==(), and ~iterator().