Sign in Join
FPDoc Onlineexperiment

Maps unit

Implements a map for unique IDs to arbitrary data.

maps.pp implements a map for unique IDs to arbitrary data. The ID-to-Data mapping is stored in an Average Level Binary Tree for fast indexing. The map also maintains a linked list between the ordered items for fast iteration through its elements. The ID can be signed or unsigned, with a size of 1, 2, 4, 8, 16 or 32 bytes. The data can be of any (constant) size.

Author: Marc Weustink

maps.pp is part of the LazUtils package.

Classes and records

TBaseMapclassImplements the base class for a map for unique IDs to arbitrary data.
TBaseMapIteratorclassSpecifies the interface used for map item iterators.
TLockedMapIteratorclassImplements a map iterator with thread-safe locking in the associated map.
TLockedMapModifyExceptionclassException raised when a modification is made to a locked Map.
TMapclassImplements a map for unique IDs to arbitrary data.
TMapIDrecordRepresents an ID in a map association.
TMapItemrecordRepresents the ID and order of items in the linked list for the map.
TMapIteratorclassImplements an iterator for items in a map.
TMapLinkrecordRecord type used to build the linked list for items in the map.
TTypedMapclassImplements a map with support for reference counted Type Information in the Data.
TTypedMapIteratorclassImplements an iterator for items in a map.

Procedures and functions

MapReportfunctionGets information about the AVL Tree in the specified map.

Types

PMapIDtypePointer to a TMapID type.
PMapItemtypePointer to a TMapItem data type.
PMapLinktypePointer to a TMapLink data type.
TMapIdTypeenumerationIdentifies the data type used for map IDs.

Constants

itsPtrSizeconstantConstant that indicates the size of a signed Pointer in the map.
ituPtrSizeconstantConstant that indicates the size of an unsigned Pointer in the map.

Uses

  • Classes
  • SysUtils
  • Math
  • TypInfo
  • AVL_Tree
  • FPCAdds

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