|
ModErn Text Analysis
META Enumerates Textual Applications
|
Iterator to traverse the generic range. More...
#include <range.h>
Public Types | |
| using | self_type = iterator_t |
| convenience typedef for the current iterator type | |
| using | value_type = T |
| convenience typedef for the contained value of the range | |
| using | reference = const T & |
| a reference to the contained type | |
| using | pointer = const T * |
| a pointer to the contained type | |
| using | iterator_category = std::forward_iterator_tag |
| the category for this iterator | |
| using | difference_type = std::ptrdiff_t |
| the difference type for this iterator | |
Public Member Functions | |
| self_type & | operator++ () |
| Prefix increment. More... | |
| self_type | operator++ (int) |
| Postfix increment. More... | |
| reference | operator* () |
| Dereference operator. More... | |
| pointer | operator-> () |
| Member access operator. More... | |
Private Member Functions | |
| iterator_t (const basic_range< T > *range, const T &start, size_t idx) | |
| Constructs a new iterator. More... | |
Private Attributes | |
| T | _curr |
| the current value | |
| size_t | _idx |
| the current index into the ragne | |
| Plus | _plus |
| the functor to be used for incrementing the current value | |
| const basic_range< T > * | _range |
| a back-pointer to the range this iterator is operating over | |
Friends | |
| class | basic_range< T > |
| bool | operator== (const iterator_t &lhs, const iterator_t &rhs) |
| Equality operator. More... | |
| bool | operator!= (const iterator_t &lhs, const iterator_t &rhs) |
| Inequality operator. More... | |
Iterator to traverse the generic range.
|
inlineprivate |
Constructs a new iterator.
| range | The range we are iterating over |
| start | The start of the range |
| idx | The index to begin from |
|
inline |
Prefix increment.
|
inline |
Postfix increment.
|
inline |
Dereference operator.
|
inline |
Member access operator.
|
friend |
Equality operator.
| lhs | |
| rhs |
|
friend |
Inequality operator.
| lhs | |
| rhs |
1.8.9.1