Sign in Join
FPDoc Onlineexperiment

TFPObjectHashTable class

In unit Contnrs

Hash table for object instances.

Declaration

pascal
TFPObjectHashTable = class(TFPCustomHashTable)

Inheritance

  1. TFPObjectHashTable
  2. TFPCustomHashTable
  3. 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

Properties

ItemspublicKey-based access to the objects.
OwnsObjectspublicDoes the hash table own the objects ?

Methods

CreateNewNodeprotected
AddNodeprotected
SetDataprotected
GetDataprotected
ForEachCallprotected
CreatepublicCreate a new instance of TFPObjectHashTable.
CreateWithpublicCreate a new hash table with given size and hash function.
IteratepublicIterate over the objects in the hash table.
AddpublicAdd a new object to the hash table.

Inherited

From TFPCustomHashTable (21)

AVGChainLen Chain ChainLength ChangeTableSize Clear Count Delete Density Destroy Find FindChainForAdd FindOrCreateNew HashFunction HashTable HashTableSize IsEmpty LoadFactor MaxChainLength NumberOfCollisions SetHashFunction VoidSlots

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.