Class OrderedSetIterator<K>

Type Parameters

  • K

Hierarchy

Properties

Accessors

Methods

Constructors

Properties

iteratorType: IteratorType

Description

Iterator's type.

Example

console.log(container.end().iteratorType === IteratorType.NORMAL);  // true
container: OrderedSet<K>

Description

The container pointed to by the iterator.

Accessors

  • get index(): number
  • Description

    Get the sequential index of the iterator in the tree container.
    Note: This function only takes effect when the specified tree container enableIndex = true.

    Returns

    The index subscript of the node in the tree.

    Example

    const st = new OrderedSet([1, 2, 3], true);
    console.log(st.begin().next().index); // 1

    Returns number

Methods

Constructors

Generated using TypeDoc