Sign in Join
FPDoc Onlineexperiment

TFPHashObject class

In unit Contnrs

Hash-list aware object.

Declaration

pascal
TFPHashObject = class

Description

TFPHashObject is a TObject descendent which is aware of the TFPHashObjectList class. It has a name property and an owning list: if the name is changed, it will reposition itself in the list which owns it. It offers methods to change the owning list: the object will correctly remove itself from the list which currently owns it, and insert itself in the new list.

See also

Properties

NamepublicCurrent name of the object.
HashpublicHash value.
OwnerListpublic

Methods

GetNameprotected
GetHashprotected
CreateNotOwnedpublicCreate an instance not owned by any list.
CreatepublicCreate a named instance, and insert in a hash list.
ChangeOwnerpublicChange the list owning the object.
ChangeOwnerAndNamepublicSimultaneously change the list owning the object and the name of the object.
RenamepublicRename the object.

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