TListenersIterator

Iterator over TListenersRegistration that supports removal during traversal

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TListenersIterator

Source

Listeners.Iterator.pas (28)

Description

As sometimes listeners can be unregistered during the handling of an event, this iterator supports removal of a listener during the iteration.

Fields

ScopeVisibilityTypeNameDescription
InstanceprotectedTInteger32Index
InstanceprotectedTInteger32Count
InstanceprotectedTList<TListenersRegistration>Registrations

Methods

ScopeVisibilityResultNameDescription
InstancepublicCreate(Registrations: TList<TListenersRegistration>)
InstancepublicTBaseObjectCurrent()
InstancepublicTBooleanIsValid()
InstancepublicGotoNext()
InstancepublicRemoveAt(Index: TInteger32)