Class OrderedMapIterator<K, V>

Type Parameters

  • K

  • V

Hierarchy

Properties

Accessors

Methods

Constructors

Properties

iteratorType: IteratorType

Description

Iterator's type.

Example

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

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

  • get pointer(): [K, V]
  • Description

    Pointers to element.

    Returns

    The value of the pointer's element.

    Example

    const val = container.begin().pointer;
    

    Returns [K, V]

Methods

Constructors

Generated using TypeDoc