![]() |
Lumiera 0.pre.04~rc.1
»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 Attributes | |
| N * | node |
Public Member Functions | |
| IterationState (N *p=nullptr) | |
| void | iterNext () |
| Iteration-logic: switch to next position. | |
| bool | checkPoint () const |
| Iteration-logic: detect iteration end. | |
| N & | yield () const |
Friends | |
| bool | operator== (IterationState const &il, IterationState const &ir) |
|
inline |
Definition at line 358 of file linked-elements.hpp.
|
inline |
Iteration-logic: switch to next position.
Definition at line 370 of file linked-elements.hpp.
References LinkedElements< N, ALO >::IterationState::node.
|
inline |
Iteration-logic: detect iteration end.
Definition at line 377 of file linked-elements.hpp.
References LinkedElements< N, ALO >::IterationState::node.
|
inline |
Definition at line 383 of file linked-elements.hpp.
References LinkedElements< N, ALO >::IterationState::node.
| N* node |
Definition at line 356 of file linked-elements.hpp.
Referenced by LinkedElements< N, ALO >::IterationState::checkPoint(), LinkedElements< N, ALO >::IterationState::iterNext(), and LinkedElements< N, ALO >::IterationState::yield().
|
friend |
Definition at line 390 of file linked-elements.hpp.
Collaboration diagram for LinkedElements< N, ALO >::IterationState: