Skip to content

TFPStringHashTable

Hash table for string data.

Declaration

Source position: contnrs.pp line 459

type

  TFPStringHashTable = class(TFPCustomHashTable)
  public
    function Iterate(aMethod: TStringIteratorMethod) : AnsiString;
    function Iterate(aMethod: TStringIteratorCallback) : AnsiString;
    procedure Add;
    property Items[const  index : AnsiString]: AnsiString; {rw}
  end;

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.

Properties

Member Visibility Description
Items public Key based access to the strings in the hash table.
See all Properties

Methods

Member Visibility Description
Add public Add a new string to the hash list.
Iterate public Iterate over the strings in the hash table.
See all Methods

See also

Name Description
TFPObjectHashTable Hash table for object instances.
TFPDataHashTable Hash table for data pointers.
Items Key based access to the strings in the hash table.