#include <GeneratorIter.h>
Public Member Functions | |
GeneratorIter (const Callable &func) | |
void | advance () |
Value | operator* () const |
GeneratorIter & | operator++ () |
GeneratorIter | operator++ (int) |
bool | operator== (const GeneratorIter &rhs) const |
bool | operator!= (const GeneratorIter &rhs) const |
operator bool () const | |
Public Attributes | |
size_t | count |
Callable | func |
Value | last_val |
A generator iterator using a Callable.
Requirements on Callable
Inspired by: http://stackoverflow.com/questions/27604201/implement-lazy-generator-as-forward-iterator-in-c
Definition at line 31 of file GeneratorIter.h.
|
inline |
Definition at line 37 of file GeneratorIter.h.
|
inline |
Definition at line 42 of file GeneratorIter.h.
|
inline |
Definition at line 66 of file GeneratorIter.h.
|
inline |
Definition at line 62 of file GeneratorIter.h.
|
inline |
Definition at line 47 of file GeneratorIter.h.
|
inline |
Definition at line 50 of file GeneratorIter.h.
|
inline |
Definition at line 54 of file GeneratorIter.h.
|
inline |
Definition at line 59 of file GeneratorIter.h.
size_t WireCell::GeneratorIter< Callable, Value >::count |
Definition at line 70 of file GeneratorIter.h.
Callable WireCell::GeneratorIter< Callable, Value >::func |
Definition at line 71 of file GeneratorIter.h.
Value WireCell::GeneratorIter< Callable, Value >::last_val |
Definition at line 72 of file GeneratorIter.h.