Sign in Join
FPDoc Onlineexperiment

TMapIterator class

In unit Maps

Implements an iterator for items in a map.

Declaration

pascal
TMapIterator = class(TBaseMapIterator)

Inheritance

  1. TMapIterator
  2. TBaseMapIterator
  3. TObject

Descends from it: TLockedMapIterator

Description

TMapIterator is a TBaseMapIterator descendant that implements an iterator for items in a map. TMapIterator provides methods to initialize the iterator for a map. It also provides methods to read the IDs for map items, and to read and write the Data in map items. TMapIterator also provides an implementation of the Locate method.

See also

Methods

CreatepublicConstructor for the class instance.
DataPtrpublicGets the Pointer to the Data in a map item.
GetDatapublicGets the Data for a map item.
GetIDpublicGets the ID for a map item.
LocatepublicLocates a map item with the specified ID.
SetDatapublicSets the Data for a map item.

Inherited

From TBaseMapIterator (15)

AddToMap BOM Current Destroy EOM First InternalCreate InternalLocate Last Next Previous RemoveFromMap Valid Validate ValidateMap

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.