This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
| namespace | Tumble |
| namespace | Tumble::iterators |
Classes | |
| class | Tumble::iterators::caster< old_iterator, output_type, output_ref > |
| Wrap an iterator, changing the output type to a subclass. So we can take a list<Mammal*> and iterate over it as if it were a list<Cow*> using a: caster<list<Mammal*>::iterator, Cow*>. More... | |
| class | Tumble::iterators::dereferencer< old_iterator, output_type, output_ref > |
| Take in an iterator and dereference it. So we can take a list<int*> and iterate over it as if it were a list<int> using a: dereferencer<list<int*>::iterator, int>. More... | |
| class | Tumble::iterators::dedereferencer< old_iterator, output_type, output_ref > |
| Take in an iterator and dereference it twice. So we can take a list<int**> and iterate over it as if it were a list<int> using a: dedereferencer<list<int**>::iterator, int>. More... | |
Defines | |
| #define | define_move_operators |
| #define | define_relational_operators |
| #define define_move_operators |
Value:
iterator& operator++ () { ++it_; return *this; } \
iterator& operator+= (int i) { it_ += i; return *this; } \
iterator operator+ (int i) const { return iterator(it_ + i); } \
\
iterator& operator-- () { --it_; return *this; } \
iterator& operator-= (int i) { it_ -= i; return *this; } \
iterator operator- (int i) const { return iterator(it_ - i); }
Definition at line 13 of file iterator_wrapper.h.
| #define define_relational_operators |
Value:
difference_type operator- (const iterator& other) const { \ return it_ - other.it_; \ } \ bool operator<(const iterator& other) const { \ return it_ < other.it_; \ } \ bool operator<=(const iterator& other) const { \ return it_ <= other.it_; \ } \ bool operator==(const iterator& other) const { \ return it_ == other.it_; \ } \ bool operator!=(const iterator& other) const { \ return it_ != other.it_; \ } \ bool operator>(const iterator& other) const { \ return it_ > other.it_; \ } \ bool operator>=(const iterator& other) const { \ return it_ >= other.it_; \ }
Definition at line 24 of file iterator_wrapper.h.
1.5.2