Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/iter-explorer.hpp"
Decorator for IterExplorer to cut iteration once a predicate ceases to be true. Similar to Filter, the given functor is adapted as appropriate, yet is required to yield a bool convertible result. The functor will be evaluated whenever the »exhausted« state of the resulting iterator is checked, on each access and before iteration; this evaluation is not cached (and thus could also detect ongoing state changes by side-effect).
expandChildern()
) Definition at line 1379 of file iter-explorer.hpp.
Public Member Functions | |
template<typename FUN > | |
StopTrigger (SRC &&dataSrc, FUN &&condition) | |
bool | checkPoint () const |
adapt the iteration control API for IterableDecorator: check the stop condition first and block eventually | |
Public Member Functions inherited from IterStateCore< SRC > | |
bool | checkPoint () const |
void | iterNext () |
SRC ::reference | yield () const |
Private Types | |
using | Cond = function< bool(SRC &)> |
using | Core = IterStateCore< SRC > |
Private Attributes | |
Cond | whileCondition_ |
Additional Inherited Members | |
Protected Member Functions inherited from IterStateCore< SRC > | |
SRC & | srcIter () const |