[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Hash table for object instances
Source position: contnrs.pp line 459
type TFPObjectHashTable = class(TFPCustomHashTable) |
||
protected |
||
function CreateNewNode(); override; |
||
procedure AddNode(); override; |
||
procedure SetData(); virtual; |
||
function GetData(); virtual; |
||
function ForEachCall(); virtual; |
||
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 |
|
Key-based access to the objects |
|
property OwnsObjects: Boolean; [rw] |
|
Does the hash table own the objects ? |
end; |
|
Hash table for object instances |
|
| | ||
|
Hash class |
|
| | ||
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.
|
Hash table for string data. |
|
|
Hash table for data pointers |
|
|
Key-based access to the objects |
lazarus-ccr.sourceforge.net |