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

TFPStringHashTable

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

Hash table for string data.

Declaration

Source position: contnrs.pp line 431

type TFPStringHashTable = class(TFPCustomHashTable)

protected

  function CreateNewNode(); override;

  procedure AddNode(); override;

  procedure SetData(); virtual;

  function GetData(); virtual;

  function ForEachCall(); virtual;

public

  procedure Add(); virtual;

  

Add a new string to the hash list

  property Items: String; default; [rw]

  

Key based access to the strings in the hash table

end;

Inheritance

TFPStringHashTable

  

Hash table for string data.

|

TFPCustomHashTable

  

Hash class

|

TObject

Description

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

See also

TFPObjectHashTable

  

Hash table for object instances

TFPDataHashTable

  

Hash table for data pointers

Items

  

Key based access to the strings in the hash table

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