Class LinkListIterator<T>

Type Parameters

  • T

Hierarchy

Properties

Accessors

Methods

Properties

iteratorType: IteratorType

Description

Iterator's type.

Example

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

Description

The container pointed to by the iterator.

Accessors

  • get pointer(): T
  • Description

    Pointers to element.

    Returns

    The value of the pointer's element.

    Example

    const val = container.begin().pointer;
    

    Returns T

  • set pointer(newValue: T): void
  • Description

    Set pointer's value (some containers are unavailable).

    Example

    (<LinkList<number>>container).begin().pointer = 1;
    

    Parameters

    • newValue: T

      The new value you want to set.

    Returns void

Methods

Generated using TypeDoc