Extends the TList class to add processing functions. The TListCollection assumes you are passing TObjects into the list and will free them on destruction if you have not emptied it first.
Note
|
This unit has the dubious distinction of being the earliest class that RiverSoftAVG created and that is still distributed.
|
Namespace: ListColl
TList
ListColl.TListCollection
|
Delphi
|
type
TListCollection = class(TList)
end;
|
|
Name
|
Description
|
|
FirstThat(TFirstLastFunc)
|
Iterate through the list and for each item in the list call the TestFunc, passing in the item.
When the TestFunc returns true, the iteration stops and the method returns the item that it was processing.
|
|
ForEach(TForEachProc)
|
Iterate through the list and for each item in the list call the TestFunc, passing in the item.
|
|
LastThat(TFirstLastFunc)
|
Iterate backwards through the list and for each item in the list call the TestFunc, passing in the item.
When the TestFunc returns true, the iteration stops and the method returns the item that it was processing.
|
|
NextThat(TObject,TFirstLastFunc)
|
Iterate through the list starting at the current AnObject item, and for each item in the list call the TestFunc, passing in the item.
When the TestFunc returns true, the iteration stops and the method returns the item that it was processing.
|
|
PrevThat(TObject,TFirstLastFunc)
|
Iterate backwards through the list starting at the current AnObject item, and for each item in the list call the TestFunc, passing in the item.
When the TestFunc returns true, the iteration stops and the method returns the item that it was processing.
|
Top
|