[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

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

public

  constructor Create();

  

Initialize a new instance of TFPListEnumerator

  function GetCurrent;

  

Return the current pointer in the list

  function MoveNext;

  

Move the position of the enumerator to the next position in the list.

  property Current: Pointer; [r]

  

Current pointer in the list

end;

Inheritance

TFPListEnumerator

  

Implements IEnumerator for the TFPList class.

|

TObject

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.

See also

TFPList

  

Class to manage collections of pointers.

TFPList.GetEnumerator

  

Create an IEnumerator instance

#rtl.system.IEnumerator

  

Enumerator support interface


Documentation generated on: Jun 23 2021