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.
boost::irange
without any boost #include
INT | a number like type, which can be incremented and compared. |
Definition at line 832 of file iter-adapter.hpp.
Public Types | |
typedef const INT * | pointer |
typedef const 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) | |
const INT & | getEnd () const |
const INT & | getPos () const |
access wrapped index elements | |
bool | isValid () const |
operator bool () const | |
reference | operator* () const |
NumIter & | operator++ () |
pointer | operator-> () const |
Private Member Functions | |
void | _maybe_throw () const |
Private Attributes | |
INT | e_ |
INT | i_ |