Class THashTable (unit EZDSLHsh)

Inherits from

TAbstractContainer

Constructors


constructor Clone(Source : TAbstractContainer; DataOwner : boolean; NewCompare : TCompareFunc);

--------

constructor Create(DataOwner : boolean);

====================================================================} {===THashTable=======================================================


Functions

procedure Delete(const aKey : string);

--------

destructor Destroy;

--------

procedure Empty;

--------

procedure Erase(const aKey : string);

--------

function Examine(const aKey : string) : pointer;

--------

procedure Insert(const aKey : string; aData : pointer);

--------

function Iterate(Action : TIterator; Backwards : boolean; ExtraData : pointer) : pointer;

--------

procedure Join(HashTable : THashTable);

--------

function Search(const aKey : string; var aData : pointer) : boolean;

--------

procedure htlDeletePrim(const aKey : string; AndErase : boolean);

--------

function htlFindPrim(const aKey : string; var aIndex : integer) : boolean;

--------

procedure htlGrowTable;

--------

function htlHash(const aKey : string) : integer;

--------

procedure htlMakeNewTable(aNewTableSize : integer);

--------

procedure htlSetHashFunction(HF : THashFunction);

--------

procedure htlSetIgnoreCase(IC : boolean);

--------

procedure htlSetTableSize(aNewTableSize : integer);

--------

procedure htlShrinkTable;

--------

Properties

property HashFunction : THashFunction


property IgnoreCase : boolean


property TableSize : integer


Events

Variables

htlArray : pointer;


htlHashFunc : THashFunction;


htlIgnoreCase : boolean;


htlTableSize : integer;



Constructors


constructor Clone(Source : TAbstractContainer; DataOwner : boolean; NewCompare : TCompareFunc);

--------


constructor Create(DataOwner : boolean);

====================================================================} {===THashTable=======================================================


Functions


procedure Delete(const aKey : string);

--------


destructor Destroy;

--------


procedure Empty;

--------


procedure Erase(const aKey : string);

--------


function Examine(const aKey : string) : pointer;

--------


procedure Insert(const aKey : string; aData : pointer);

--------


function Iterate(Action : TIterator; Backwards : boolean; ExtraData : pointer) : pointer;

--------


procedure Join(HashTable : THashTable);

--------


function Search(const aKey : string; var aData : pointer) : boolean;

--------


procedure htlDeletePrim(const aKey : string; AndErase : boolean);

--------


function htlFindPrim(const aKey : string; var aIndex : integer) : boolean;

--------


procedure htlGrowTable;

--------


function htlHash(const aKey : string) : integer;

--------


procedure htlMakeNewTable(aNewTableSize : integer);

--------


procedure htlSetHashFunction(HF : THashFunction);

--------


procedure htlSetIgnoreCase(IC : boolean);

--------


procedure htlSetTableSize(aNewTableSize : integer);

--------


procedure htlShrinkTable;

--------


Properties


property HashFunction : THashFunction


property IgnoreCase : boolean


property TableSize : integer


Events


Variables


htlArray : pointer;


htlHashFunc : THashFunction;


htlIgnoreCase : boolean;


htlTableSize : integer;