Skip to content

TFPHashObjectList

Declaration

Source position: contnrs.pp line 309

type

  TFPHashObjectList = class(TObject)
  public
    constructor Create;
    destructor Destroy;
    procedure Clear;
    function Add : Integer;
    function NameOfIndex : RawByteString;
    function HashOfIndex : LongWord;
    function GetNextCollision : Integer;
    procedure Delete;
    function Extract : TObject;
    function Remove : Integer;
    function IndexOf : Integer;
    function Find : TObject;
    function FindIndexOf : Integer;
    function FindWithHash : Pointer;
    function Rename : Integer;
    function FindInstanceOf : Integer;
    procedure Pack;
    procedure ForEachCall(proc2call: TObjectListCallback; arg: pointer);
    procedure ForEachCall(proc2call: TObjectListStaticCallback; 
                     arg: pointer);
    property Capacity: Integer; {rw}
    property Count: Integer; {r}
    property OwnsObjects: Boolean; {rw}
    property Items[Index : Integer]: TObject; {rw}
    property List: TFPHashList; {r}
  end;

Properties

Member Visibility Description
Capacity public Capacity of the list.
Count read only public Current number of elements in the list.
Items public Indexed array with object instances.
List read only public Low-level hash list.
OwnsObjects public Does the list own the objects it contains.
See all Properties

Methods

Member Visibility Description
Add public Add a new key/data pair to the list.
Clear public Clear the list.
Create public Create a new instance of the hashlist.
Delete public Delete an object from the list.
Destroy public Removes an instance of the hashlist from the heap.
Extract public Extract a object instance from the list.
Find public Find data associated with key.
FindIndexOf public Return index of named object.
FindInstanceOf public Search an instance of a certain class.
FindWithHash public Find first element with given name and hash value.
ForEachCall public Call a procedure for each object in the list.
GetNextCollision public Get next collision number.
HashOfIndex public Return the hash value of an object by index.
IndexOf public Return the index of the object instance.
NameOfIndex public Returns the key name of an object by index.
Pack public Remove nil object instances from the list.
Remove public Remove first occurrence of a object instance.
Rename public Rename a key.
See all Methods