Skip to content

TFPDataHashTable

Hash table for data pointers.

Declaration

Source position: contnrs.pp line 431

type

  TFPDataHashTable = class(TFPCustomHashTable)
  public
    function Iterate(aMethod: TDataIteratorMethod) : Pointer;
    function Iterate(aMethod: TDataIteratorCallBack) : Pointer;
    procedure Add;
    property Items[const  index : AnsiString]: Pointer; {rw}
  end;

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.

Properties

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

Methods

Member Visibility Description
Add public Add a data pointer to the list.
Iterate public Iterate over the pointers in the hash table.
See all Methods

See also

Name Description
TFPObjectHashTable Hash table for object instances.
TFPStringHashTable Hash table for string data.
Items Key-based access to the items in the table.