help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

TFPObjectHashTable

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

Hash table for object instances

Declaration

Source position: contnrs.pp line 457

type TFPObjectHashTable = class(TFPCustomHashTable)

public

  constructor Create();

  

Create a new instance of TFPObjectHashTable

  constructor CreateWith();

  

Create a new hash table with given size and hash function

  procedure Add(); virtual;

  

Add a new object to the hash table

  property Items: TObject; default; [rw]

  

Key-based access to the objects

  property OwnsObjects: Boolean; [rw]

  

Does the hash table own the objects ?

end;

Inheritance

TFPObjectHashTable

  

Hash table for object instances

|

TFPCustomHashTable

  

Hash class

|

TObject

Description

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

See also

TFPStringHashTable

  

Hash table for string data.

TFPDataHashTable

  

Hash table for data pointers

TFPObjectHashTable.Items

  

Key-based access to the objects

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505