Provides access to items in a CircularList. Call nextValue to get to the first item.
To do incremental drawing, we need to know about our place in the circular list. So we need the getIndex method to remember where we left off during the iteration.
the CircularList to iterate over
Optional
the index to start the iteration at; undefined or -1 will start at oldest entry
Private
Flag indicates we are at start of the iteration.
Returns the index of the current value. In a HistoryList the index starts at zero and increases as each value is added to the HistoryList.
the index of the current value
when the index number exceeds the maximum representable integer
Returns the current value that this iterator points to in the HistoryList.
the current value in the HistoryList
if there is no current value
Returns true if there is a next value in this iteration of the HistoryList.
true
true if there is a next value in this iteration
Returns true if there is a previous value in this iteration of the HistoryList.
true if there is a previous value in this iteration
Moves to the next value in the HistoryList.
the next value in the HistoryList
if there is no next value
Moves to the previous value in the HistoryList.
the previous value in the HistoryList
if there is no previous value
Generated using TypeDoc
Provides access to items in a CircularList. Call nextValue to get to the first item.
To do incremental drawing, we need to know about our place in the circular list. So we need the getIndex method to remember where we left off during the iteration.