THashLinkedStringList

From Ultibo.org
Revision as of 05:27, 21 June 2023 by Ultibo (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Return to Unit UltiboClasses


Description


To be documented

Class definitions



THashLinkedStringList = class(TLinkedStringListEx)

Note: A List of TStringObjects with automatic hash buckets
 
constructor Create(AKeyBits:Byte);  
public (Public destructor for FPC RTL)
destructor Destroy; override;  
private
FKeyBits:Byte;  
FKeyMask:LongWord;  
FKeyShift:LongWord;  
FKeyBuckets:Pointer;  
function KeyLink(AValue:THashStringObject):Boolean;  
function KeyUnlink(AValue:THashStringObject):Boolean;  
protected
procedure ClearList; override;  
public
function KeyFirst(AKeyHash:LongWord):THashStringObject;  
 
function Add(const S:String):Integer; override;  
procedure Delete(Index:Integer); override;  
function IndexOf(const S:String):Integer; override;  
procedure Insert(Index:Integer; const S:String); override;  


Function declarations



constructor THashLinkedStringList.Create(AKeyBits:Byte);
Description: To be documented
Note None documented


destructor THashLinkedStringList.Destroy;
Description: To be documented
Note None documented


function THashLinkedStringList.KeyLink(AValue:THashStringObject):Boolean;
Description: Link AValue to Prev,Next Keys and Adjust First
Note None documented


function THashLinkedStringList.KeyUnlink(AValue:THashStringObject):Boolean;
Description: Unlink AValue from Prev,Next Keys and Adjust First
Note None documented


procedure THashLinkedStringList.ClearList;
Description: To be documented
Note None documented


function THashLinkedStringList.KeyFirst(AKeyHash:LongWord):THashStringObject;
Description: To be documented
Note None documented


function THashLinkedStringList.Add(const S:String):Integer;
Description: To be documented
Note None documented


procedure THashLinkedStringList.Delete(Index:Integer);
Description: To be documented
Note None documented


function THashLinkedStringList.IndexOf(const S:String):Integer;
Description: Uses IndexOfItem within the Block of the matched String Object
Note Cannot use Counted Index method due to use of Hash Buckets


procedure THashLinkedStringList.Insert(Index:Integer; const S:String);
Description: To be documented
Note None documented


Return to Unit Reference