Sign in Join
FPDoc Onlineexperiment

TFPDataHashTable.Iterate function

Member of TFPDataHashTablepublicIn unit Contnrs

Iterate over the pointers in the hash table.

Declaration

pascal
function Iterate(aMethod: TDataIteratorMethod): Pointer; virtual
function Iterate(aMethod: TDataIteratorCallBack): Pointer; virtual

Arguments

aMethod

Method to call for each pointer in the hash table.

Function result

Nil or the pointer that caused the iteration to abort.

Description

Iterate iterates over all elements in the array, calling aMethod for each pointer, or until the method returns False in its continue parameter. It returns Nil if all elements were processed, or the pointer that was being processed when aMethod returned False in the Continue parameter.

The aMethod callback can be a method of an object, or a normal, static procedure.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.