Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttributeValueCursor

This is a utility class that holds a position among a list of elements (representing attributes, in our usage).

Hierarchy

  • AttributeValueCursor

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private current

current: number

Private direction

direction: Direction

The direction to iterate over.

Private values

values: Element[]

The values to iterate over.

Accessors

hasNext

  • get hasNext(): boolean
  • Returns boolean

    true if we have not reached the end of the array.

next

  • get next(): Element
  • This is the next element in iteration order. Moves the iterator in the direction of travel.

    Returns Element

Methods

inc

  • inc(): void
  • Moves the iterator in the direction of travel.

    Returns void

reset

  • reset(value: number): void
  • Parameters

    • value: number

      The index to reset this iterator to.

    Returns void

resetToStart

  • resetToStart(): void

Generated using TypeDoc