TFPListEnumerator
[Properties (by Name)][Methods (by Name)][Events (by Name)]
Implements IEnumerator for the TFPList class.
Declaration
Source position: classesh.inc line 206
Type
TFPListEnumerator = class
private
FList : TFPList;
FPosition : Integer;
public
constructor Create(AList: TFPList);
function GetCurrent : Pointer;
function MoveNext : Boolean;
Current : Pointer;
end
;
Description
TFPListEnumerator implements the #rtl.system.IEnumerator interface for the TFPList class, so the TFPList class can be used in a for ... in loop. It is returned by the TFPList.GetEnumerator method of TFPList.
Members
Member | Type | Visibility | Description |
---|---|---|---|
Create | Method | public | Initialize a new instance of TFPListEnumerator |
Current | Property | public | Current pointer in the list |
FList | Field | private | |
FPosition | Field | private | |
GetCurrent | Method | public | Return the current pointer in the list |
MoveNext | Method | public | Move the position of the enumerator to the next position in the list. |
Inheritance
Class | Description |
---|---|
TFPListEnumerator | Implements IEnumerator for the TFPList class. |
See also
Name | Description |
---|---|
Integer | A signed 16-bits integer |
#rtl.system.IEnumerator | Enumerator support interface |
TFPList | Class to manage collections of pointers. |
TFPList | Class to manage collections of pointers. |
TFPList.GetEnumerator | Create an IEnumerator instance |