TIterator

Abstract base class for facilities that allow iteration over elements of type TElement.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TIterator

Source

Iterator.pas (24)

Description

Upon creation a TIterator<TElement> is initialized at the first element. Current retrieves the current element if the iterator IsValid. GotoNext advances the iterator to the next element.

Methods

ScopeVisibilityResultNameDescription
InstanceprotectedTElementGetCurrent()
InstancepublicTBooleanIsValid()Returns whether the iterator is at a valid position and an evaluation of Current will succeed
InstancepublicGotoNext()Advances the iterator to the next position.
InstancepublicTIterator<TElement>Copy()Returns a new iterator at the same position
InstancepublicTElementRead()Returns Current and then calls GotoNext