Enumeration PushIterationModeConst

Push iteration mode.

This is a hint passed as second argument of PushIterator__symbol method. It declares what element acceptor shall do, and can be used to optimize the iteration algorithm.

Enumeration Members

Enumeration Members

All: 2

Push all elements.

The element acceptor shall not suspend or abort iteration by returning boolean value in this mode.

Next: 1

Push the next element if exists, then suspend or abort.

This value is typically set in compatibility mode. I.e. when standard iterator used to iterate over push iterator.

Only: 1

Push only some subset of elements, then abort iteration.

The element acceptor shall not suspend iteration by returning true value in this mode.

Some: 0

Push some elements. Iteration may be suspended or aborted at any moment.

This iteration mode is used by default.

Generated using TypeDoc