Skip to main content

reset

Short summary​

This method resets the iterator. After a reset the iterator points to the first element if available.

Example:

iterator.reset();
WHILE(iterator.moveNext())DO
foo := iterator.current.hashCode;
bar := iterator.current.name;
END_WHILE

Parameters​

none

Code​

Declaration​

METHOD reset

Implementation​

THIS^.iterate(FALSE);
THIS^.nodeList.clear();
THIS^.nodeList.append(THIS^.root);
THIS^.currentNode := THIS^.root;
THIS^.currentObject := 0;