Lumiera
0.pre.03
»edit your freedom«
|
Iteration is just following the single linked list.
We encapsulate this simple pointer into a dedicated marker type to ease the handling and mixing of iterators and const iterators. (Explanation: IterationState depends on our type parameters...)
Definition at line 354 of file linked-elements.hpp.
Public Member Functions | |
IterationState (N *p=nullptr) | |
bool | checkPoint () const |
Iteration-logic: detect iteration end. More... | |
void | iterNext () |
Iteration-logic: switch to next position. More... | |
N & | yield () const |
Public Attributes | |
N * | node |
Friends | |
bool | operator== (IterationState const &il, IterationState const &ir) |
|
inline |
Iteration-logic: switch to next position.
Definition at line 370 of file linked-elements.hpp.
|
inline |
Iteration-logic: detect iteration end.
Definition at line 377 of file linked-elements.hpp.