TListenersIterator
Iterator over
TListenersRegistration
that supports removal during traversalInheritance
Level | Ancestor | Description |
---|---|---|
1 | TObject | Ultimate ancestor in a class hierarchy |
2 | TListenersIterator |
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
Scope | Visibility | Type | Name | Description |
---|---|---|---|---|
Instance | protected | TInteger32 | Index | |
Instance | protected | TInteger32 | Count | |
Instance | protected | TList<TListenersRegistration> | Registrations |
Methods
Scope | Visibility | Result | Name | Description |
---|---|---|---|---|
Instance | public | Create(Registrations: TList<TListenersRegistration>) | ||
Instance | public | TBaseObject | Current() | |
Instance | public | TBoolean | IsValid() | |
Instance | public | GotoNext() | ||
Instance | public | RemoveAt(Index: TInteger32) |