TFPHashList class
Hash list class for pointer data.
Declaration
TFPHashList = class(TObject)Inheritance
- TFPHashList
- TObject
Description
TFPHashList implements a fast hash class. The class is built for
speed, therefore the key values can be shortstrings only, and the data can
only be non-nil pointers.
if a base class for an own hash class is wanted, the TFPCustomHashTable class can be used. If a hash class for objects is needed instead of pointers, the TFPHashObjectList class can be used.
See also
Properties
Count | public | Current number of elements in the list. |
Capacity | public | Capacity of the list. |
Items | public | Indexed array with pointers. |
List | public | Low-level hash list. |
Methods
Create | public | Create a new instance of the hashlist. |
Destroy | public | Removes an instance of the hashlist from the heap. |
Add | public | Add a new key/data pair to the list. |
Clear | public | Clear the list. |
NameOfIndex | public | Returns the key name of an item by index. |
HashOfIndex | public | Return the hash value of an item by index. |
GetNextCollision | public | Get next collision number. |
Delete | public | Delete an item from the list. |
Error | public | Raise an error. |
Extract | public | Extract a pointer from the list. |
IndexOf | public | Return the index of the data pointer. |
Find | public | Find data associated with key. |
FindIndexOf | public | Return index of named item. |
FindWithHash | public | Find first element with given name and hash value. |
Rename | public | Rename a key. |
Remove | public | Remove first instance of a pointer. |
Pack | public | Remove nil pointers from the list. |
ForEachCall | public | Call a procedure for each element in the list. |
Inherited
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.
