THashTreeObject

From Ultibo.org
Jump to: navigation, search

Return to Unit UltiboClasses


Description


To be documented

Class definitions



THashTreeObject = class(TTreeObject)

Note: A TObject with KeyPrev/KeyNext/KeyHash for use in HashTrees
 
constructor Create(AKeyBits:Byte);  
destructor Destroy; override;  
private
FKeyBits:Byte;  
FKeyMask:LongWord;  
FKeyShift:LongWord;  
FKeyBuckets:Pointer;  
FKeyTree:THashLinkedTree;  
FKeyPrev:THashTreeObject;  
FKeyNext:THashTreeObject;  
protected
FKeyHash:LongWord; {Publish in descendants if required}  
procedure SetKeyHash(AKeyHash:LongWord);  
function KeyLink(AValue:THashTreeObject):Boolean;  
function KeyUnlink(AValue:THashTreeObject):Boolean;  
public
function KeyFirst(AKeyHash:LongWord):THashTreeObject;  
 
property KeyTree:THashLinkedTree read FKeyTree write FKeyTree;  
property KeyPrev:THashTreeObject read FKeyPrev write FKeyPrev;  
property KeyNext:THashTreeObject read FKeyNext write FKeyNext;  


Function declarations



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


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


procedure THashTreeObject.SetKeyHash(AKeyHash:LongWord);
Description: To be documented
Note None documented


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


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


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


Return to Unit Reference