Iterators.PartIterator

Provides 'foreach' and 'foreach_reverse' iteration over the nodes in the tree, starting with the first node whose key is greater or less than a reference key, respectively.

template Iterators(Node)
class PartIterator : Iterator {}

Constructors

this
this(Key key, bool unique)

Constructor

Members

Functions

first
Node* first()
last
Node* last()

Variables

key
Key key;

Reference key. May be changed at any time but becomes effective on the next iteration start.

Inherited Members

From Iterator

unique
bool unique;

Set to true to skip key duplicates. This flag may be changed during iteration.

opApply
int opApply(int delegate(ref Node node) dg)

foreach iterator over nodes in the tree. Any tree modification is permitted during iteration.

opApplyReverse
int opApplyReverse(int delegate(ref Node node) dg)

foreach_reverse iterator over nodes in the tree. Any tree modification is permitted during iteration.

host
typeof(this.outer) host()
first
Node* first()
last
Node* last()

Meta