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

TTypedMap

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements a map with support for reference counted Type Information in the Data.

Declaration

Source position: maps.pp line 200

type TTypedMap = class(TBaseMap)

protected

  function InternalSetData();

  

Stores the data for the specified map item.

  procedure ReleaseData(); override;

  

Frees resources allocated for the data in the map item.

public

  procedure Add();

  

Adds a map item with the specified ID and Data values.

  constructor Create();

  

Constructor for the class instance.

  destructor Destroy; override;

  

Destructor for the class instance.

  function HasId();

  

Checks for the specified ID is in the AVL Tree for the map.

  function GetData();

  

Gets the Data for the map item with the specified ID.

  function GetDataPtr();

  

Gets a Pointer to the data for the specified map item.

  function SetData();

  

Stores the data for the specified map item.

end;

Inheritance

TTypedMap

  

Implements a map with support for reference counted Type Information in the Data.

|

TBaseMap

  

Implements the base class for a map for unique IDs to arbitrary data.

|

TPersistent,IFPObserved

|

TObject

Description

TTypedMap is a TBaseMap map descendant that implements a map with support for reference counted Type Information in the Data for map items.

See also

TBaseMap

  

Implements the base class for a map for unique IDs to arbitrary data.


Version 3.2 Generated 2024-02-25 Home