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

TFPDataHashTable

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

Hash table for data pointers

Declaration

Source position: contnrs.pp line 410

type TFPDataHashTable = class(TFPCustomHashTable)

protected

  function CreateNewNode(); override;

  procedure AddNode(); override;

  procedure SetData(); virtual;

  function GetData(); virtual;

  function ForEachCall(); virtual;

public

  procedure Add(); virtual;

  

Add a data pointer to the list.

  property Items: Pointer; default; [rw]

  

Key-based access to the items in the table

end;

Inheritance

TFPDataHashTable

  

Hash table for data pointers

|

TFPCustomHashTable

  

Hash class

|

TObject

Description

TFPDataHashTable is a TFPCustomHashTable descendent which stores simple data pointers together with the keys. In case the data associated with the keys are objects, it's better to use TFPObjectHashTable, or for string data, TFPStringHashTable is more suitable. The data pointers are exposed with their keys through the Items property.

See also

TFPObjectHashTable

  

Hash table for object instances

TFPStringHashTable

  

Hash table for string data.

Items

  

Key-based access to the items in the table

The latest version of this document can be found at lazarus-ccr.sourceforge.net.