TFPGListEnumerator
[Properties (by Name)][Methods (by Name)][Events (by Name)]
Generic list enumerator
Declaration
Source position: fgl.pp line 110
Type
generic TFPGListEnumerator<T> = class (TObject)
protected
FList : TFPSList;
FPosition : Integer;
function GetCurrent : T;
public
constructor Create(AList: TFPSList);
function MoveNext : Boolean;
Current : T;
end
;
Description
TFPGListEnumerator is a generic list enumerator. It is used in the TFPGList class to implement the enumerator for the list.
Normally there should be no need to instantiate or use this class directly.
Members
Member | Type | Visibility | Description |
---|---|---|---|
Create | Method | public | Create a new list enumerator |
Current | Property | public | Current enumerated element |
FList | Field | protected | |
FPosition | Field | protected | |
GetCurrent | Method | protected | |
MoveNext | Method | public | Move to next element in the list |
Inheritance
Class | Description |
---|---|
TFPGListEnumerator | Generic list enumerator |
See also
Name | Description |
---|---|
Integer | A signed 16-bits integer |
TFPGList | Generic list |
TFPSList | Basic list of memory blocks |