ForwardArrayIterator |
Iterates through an array by starting with ‘0’ and then incrementing the index until the array length is reached.
com.boostworthy.collections.iterators.IIterator
ForwardArrayIterator | Iterates through an array by starting with ‘0’ and then incrementing the index until the array length is reached. |
Variables | |
m_aData | Holds the array of data to be iterated through. |
m_uIndex | Stores the current index for the iteration process. |
Functions | |
ForwardArrayIterator | Constructor. |
hasNext | Returns a boolean value indicating whether or not the collection has another element beyond the current index. |
next | Returns the element at the current index and then moves on to the next. |
reset | Resets this iterator back to an index of ‘0’. |
Holds the array of data to be iterated through.
private var m_aData: Array
Stores the current index for the iteration process.
private var m_uIndex: uint
Constructor.
public function ForwardArrayIterator( aData: Array )
Returns a boolean value indicating whether or not the collection has another element beyond the current index.
public function hasNext():Boolean
Returns the element at the current index and then moves on to the next.
public function next():Object
Resets this iterator back to an index of ‘0’.
public function reset():void