IteratorClass.InterruptibleIterator

Interruptible iterator

template IteratorClass(alias ParentIterator, alias IteratorTemplate)
class InterruptibleIterator : Iterator {}

Constructors

this
this()

Constructor

Members

Functions

finished
bool finished()

Whether iteration finished

reset
void reset()

Prepare the iterator to restart the iteration from the beginning

resetIterator
void resetIterator(bool interrupted)

Set the finished flag.

Variables

_finished
bool _finished;

Whether the iteration finished, set by resetIterator(), reset by reset()

Inherited Members

From Iterator

opApply
int opApply(IteratorTemplate.Dgi dgi)

Foreach support with counter

opApply
int opApply(IteratorTemplate.Dg dg)

Foreach support

Meta