Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/iter-adapter.hpp"
Enumerate all "numbers" within a range.
This allows to build pipelines based on all numbers "for `i` from `1...N`". This range is half open, i.e. the start is inclusive and the end point is exclusive.
INT | a number like type, which can be incremented and compared. |
operator->
Definition at line 919 of file iter-adapter.hpp.
Public Types | |
typedef INT * | pointer |
typedef INT & | reference |
typedef INT | value_type |
Public Member Functions | |
NumIter (INT start, INT end) | |
template<typename X > | |
NumIter (X &&start, X &&end) | |
bool | empty () const |
ENABLE_USE_IN_STD_RANGE_FOR_LOOPS (NumIter) | |
INT & | getEnd () const |
INT & | getPos () const |
access wrapped index elements | |
bool | isValid () const |
operator bool () const | |
bool | operator!= (NumIter const &o) const |
Supporting equality comparisons... | |
value_type | operator* () const |
NumIter & | operator++ () |
bool | operator== (NumIter const &o) const |
Private Member Functions | |
void | _maybe_throw () const |
Private Attributes | |
INT | e_ |
INT | i_ |