|
Expression Templates Library (ETL)
|
Configurable iterator for ETL expressions. More...
#include <iterator.hpp>
Public Types | |
| using | iterator_category = std::random_access_iterator_tag |
| using | value_type = value_t< Expr > |
| The value type. | |
| using | reference = decltype(std::declval< Expr >()[i]) |
| The type of reference. | |
| using | pointer = std::add_pointer_t< decltype(std::declval< Expr >()[i])> |
| The type of pointer. | |
| using | difference_type = size_t |
| The type used for subtracting two iterators. | |
Public Member Functions | |
| iterator (Expr &expr, size_t i) | |
| Construct a new iterator. More... | |
| reference | operator* () |
| Dereference the iterator to get the current value. More... | |
| reference | operator[] (difference_type n) |
| Dereferences the iterator at n forward position. More... | |
| auto | operator-> () |
| Dereference the iterator to get the current value. More... | |
| iterator & | operator-- () |
| Predecrement the iterator. More... | |
| iterator | operator-- (int) |
| Postdecrement the iterator. More... | |
| iterator & | operator++ () |
| Preincrement the iterator. More... | |
| iterator | operator++ (int) |
| Postincrement the iterator. More... | |
| iterator & | operator+= (difference_type n) |
| Advances the iterator n positions. More... | |
| iterator & | operator-= (difference_type n) |
| Back away the iterator n positions. More... | |
| iterator | operator+ (difference_type n) |
| Creates a new iterator poiting to the current position plus n. More... | |
| iterator | operator- (difference_type n) |
| Creates a new iterator poiting to the current position minus n. More... | |
| difference_type | operator- (const iterator &it) |
| Computes the difference between two iterators. More... | |
| bool | operator== (const iterator &other) const |
| Compare two iterators. More... | |
| bool | operator!= (const iterator &other) const |
| Compare two iterators. More... | |
| bool | operator> (const iterator &other) const |
| Compare two iterators. More... | |
| bool | operator>= (const iterator &other) const |
| Compare two iterators. More... | |
| bool | operator< (const iterator &other) const |
| Compare two iterators. More... | |
| bool | operator<= (const iterator &other) const |
| Compare two iterators. More... | |
Configurable iterator for ETL expressions.
| Expr | The type of expr for which the iterator is working |
|
inline |
Construct a new iterator.
| expr | The expr to iterate over. |
| i | The starting position |
|
inline |
Compare two iterators.
| other | The other iterator |
|
inline |
Dereference the iterator to get the current value.
|
inline |
Creates a new iterator poiting to the current position plus n.
| n | The number of position to advance |
|
inline |
Preincrement the iterator.
|
inline |
Postincrement the iterator.
|
inline |
Advances the iterator n positions.
| n | The number of position to advance |
|
inline |
Creates a new iterator poiting to the current position minus n.
| n | The number of position to back away |
|
inline |
Computes the difference between two iterators.
| it | the other iterator |
|
inline |
Predecrement the iterator.
|
inline |
Postdecrement the iterator.
|
inline |
Back away the iterator n positions.
| n | The number of position to back |
|
inline |
Dereference the iterator to get the current value.
|
inline |
Compare two iterators.
| other | The other iterator |
|
inline |
Compare two iterators.
| other | The other iterator |
|
inline |
Compare two iterators.
| other | The other iterator |
|
inline |
Compare two iterators.
| other | The other iterator |
|
inline |
Compare two iterators.
| other | The other iterator |
|
inline |
Dereferences the iterator at n forward position.
| n | The number of forward position to advance |
1.8.13