![]() |
Lumiera 0.pre.04
»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 920 of file iter-adapter.hpp.
Public Types | |
| using | pointer = INT * |
| using | reference = INT & |
| using | value_type = INT |
Public Member Functions | |
| NumIter (INT start, INT end) | |
| template<typename X > | |
| NumIter (X &&start, X &&end) | |
| NumIter () | |
| operator bool () const | |
| value_type | operator* () const |
| NumIter & | operator++ () |
| bool | isValid () const |
| bool | empty () const |
| INT & | getPos () const |
| access wrapped index elements | |
| INT & | getEnd () const |
| ENABLE_USE_IN_STD_RANGE_FOR_LOOPS (NumIter) | |
| bool | operator!= (NumIter const &o) const |
| Supporting equality comparisons... | |
| bool | operator== (NumIter const &o) const |
Private Member Functions | |
| void | _maybe_throw () const |
Private Attributes | |
| INT | i_ |
| INT | e_ |
|
inline |
Definition at line 930 of file iter-adapter.hpp.
Definition at line 936 of file iter-adapter.hpp.
|
inline |
Definition at line 941 of file iter-adapter.hpp.
| using pointer = INT* |
Definition at line 926 of file iter-adapter.hpp.
| using reference = INT& |
Definition at line 927 of file iter-adapter.hpp.
| using value_type = INT |
Definition at line 928 of file iter-adapter.hpp.
|
inlineexplicit |
Definition at line 949 of file iter-adapter.hpp.
References NumIter< INT >::isValid().
Here is the call graph for this function:
|
inline |
Definition at line 959 of file iter-adapter.hpp.
References NumIter< INT >::_maybe_throw(), and NumIter< INT >::i_.
Here is the call graph for this function:
|
inline |
Definition at line 966 of file iter-adapter.hpp.
References NumIter< INT >::_maybe_throw(), and NumIter< INT >::i_.
Here is the call graph for this function:
|
inline |
Definition at line 974 of file iter-adapter.hpp.
References NumIter< INT >::e_, and NumIter< INT >::i_.
Referenced by NumIter< INT >::_maybe_throw(), NumIter< INT >::empty(), and NumIter< INT >::operator bool().
Here is the caller graph for this function:
|
inline |
Definition at line 980 of file iter-adapter.hpp.
References NumIter< INT >::isValid().
Referenced by NumIter< INT >::operator==().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
access wrapped index elements
Definition at line 987 of file iter-adapter.hpp.
References NumIter< INT >::i_.
|
inline |
Definition at line 988 of file iter-adapter.hpp.
References NumIter< INT >::e_.
| ENABLE_USE_IN_STD_RANGE_FOR_LOOPS | ( | NumIter< INT > | ) |
|
inline |
Supporting equality comparisons...
Definition at line 995 of file iter-adapter.hpp.
References NumIter< INT >::operator==().
Here is the call graph for this function:
|
inline |
Definition at line 996 of file iter-adapter.hpp.
References NumIter< INT >::e_, NumIter< INT >::empty(), and NumIter< INT >::i_.
Referenced by NumIter< INT >::operator!=().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
Definition at line 1001 of file iter-adapter.hpp.
References NumIter< INT >::isValid().
Referenced by NumIter< INT >::operator*(), and NumIter< INT >::operator++().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 922 of file iter-adapter.hpp.
Referenced by NumIter< INT >::getPos(), NumIter< INT >::isValid(), NumIter< INT >::operator*(), NumIter< INT >::operator++(), and NumIter< INT >::operator==().
|
private |
Definition at line 923 of file iter-adapter.hpp.
Referenced by NumIter< INT >::getEnd(), NumIter< INT >::isValid(), and NumIter< INT >::operator==().
Collaboration diagram for NumIter< INT >: