Class thashdatalist

Unit

Declaration

type thashdatalist = class(TObject)

Description

Hierarchy

Overview

Fields

Protected fdata: pointer;
Protected fmask: hashvaluety;
Protected fhashtable: hashoffsetarty;
Protected fstate: hashliststatesty;

Methods

Protected function getdatapoornil(const aoffset: hashoffsetty): pointer; inline;
Protected function getdatapo(const aoffset: hashoffsetty): pointer; inline;
Protected function getdataoffs(const adata: pointer): hashoffsetty; inline;
Protected function internaladd(const akey): phashdataty;
Protected function internaladdhash(hash1: hashvaluety): phashdataty;
Protected procedure inserthash(ahash: hashvaluety; const adata: phashdataty);
Protected procedure removehash(aitem: phashdataty);
Protected procedure internaldeleteitem(const aitem: phashdataty); overload;
Protected procedure internaldelete(const aoffset: hashoffsetty);
Protected function internaldelete(const akey; const all: boolean): boolean;
Protected function internalfind(const akey): phashdataty; overload;
Protected function internalfind(const akey; hash1: hashvaluety): phashdataty; overload;
Protected function internalfind(const akey; out acount: integer): phashdataty; overload;
Protected function internalfind(const akey; const acheckproc: findcheckprocty): phashdataty; overload;
Protected function internalfind(const akey; const acheckproc: findcheckprocty; out acount: integer): phashdataty; overload;
Protected function internalfindexact(const akey): phashdataty; overload;
Protected function internalfindexact(const akey; out acount: integer): phashdataty; overload;
Protected procedure checkexact(const aitem: phashdataty; var accept: boolean) virtual;
Protected function hashkey(const akey): hashvaluety; virtual; abstract;
Protected function checkkey(const akey; const aitem: phashdataty): boolean; virtual; abstract;
Protected function getrecordsize(): int32 virtual abstract;
Protected procedure rehash;
Protected procedure grow;
Protected procedure inititem(const aitem: phashdataty) virtual;
Protected procedure finalizeitem(const aitem: phashdataty) virtual;
Protected procedure internaliterate( const aiterator: internalhashiteratorprocty); overload;
Protected procedure iterate(const akey; const aiterator: keyhashiteratorprocty); overload;
Protected function internalfirstx: phashdataty;
Protected function internallastx: phashdataty;
Protected function internalnextx: phashdataty;
Protected function internalprevx: phashdataty;
Public constructor create();
Public destructor destroy; override;
Public procedure clear; virtual;
Public procedure reset;
Public procedure mark(out ref: hashoffsetty);
Public procedure release(const ref: hashoffsetty);
Public function absdata(const ref: ptrint): pointer;
Public procedure iterate(const aiterator: hashiteratorprocty); overload;

Properties

Protected property data: pointer read fdata;
Protected property assignedfirst: hashoffsetty read fassignedfirst;
Protected property assignedlast: hashoffsetty read fassignedlast;
Public property datasize: int32 read getdatasize;
Public property capacity: integer read fcapacity write setcapacity;
Public property count: integer read fcount;
Public property recsize: int32 read frecsize;

Description

Fields

Protected fdata: pointer;
 
Protected fmask: hashvaluety;
 
Protected fhashtable: hashoffsetarty;
 
Protected fstate: hashliststatesty;
 

Methods

Protected function getdatapoornil(const aoffset: hashoffsetty): pointer; inline;
 
Protected function getdatapo(const aoffset: hashoffsetty): pointer; inline;
 
Protected function getdataoffs(const adata: pointer): hashoffsetty; inline;
 
Protected function internaladd(const akey): phashdataty;
 
Protected function internaladdhash(hash1: hashvaluety): phashdataty;
 
Protected procedure inserthash(ahash: hashvaluety; const adata: phashdataty);
 
Protected procedure removehash(aitem: phashdataty);
 
Protected procedure internaldeleteitem(const aitem: phashdataty); overload;
 
Protected procedure internaldelete(const aoffset: hashoffsetty);
 
Protected function internaldelete(const akey; const all: boolean): boolean;
 
Protected function internalfind(const akey): phashdataty; overload;
 
Protected function internalfind(const akey; hash1: hashvaluety): phashdataty; overload;
 
Protected function internalfind(const akey; out acount: integer): phashdataty; overload;
 
Protected function internalfind(const akey; const acheckproc: findcheckprocty): phashdataty; overload;
 
Protected function internalfind(const akey; const acheckproc: findcheckprocty; out acount: integer): phashdataty; overload;
 
Protected function internalfindexact(const akey): phashdataty; overload;
 
Protected function internalfindexact(const akey; out acount: integer): phashdataty; overload;
 
Protected procedure checkexact(const aitem: phashdataty; var accept: boolean) virtual;
 
Protected function hashkey(const akey): hashvaluety; virtual; abstract;
 
Protected function checkkey(const akey; const aitem: phashdataty): boolean; virtual; abstract;
 
Protected function getrecordsize(): int32 virtual abstract;
 
Protected procedure rehash;
 
Protected procedure grow;
 
Protected procedure inititem(const aitem: phashdataty) virtual;
 
Protected procedure finalizeitem(const aitem: phashdataty) virtual;
 
Protected procedure internaliterate( const aiterator: internalhashiteratorprocty); overload;
 
Protected procedure iterate(const akey; const aiterator: keyhashiteratorprocty); overload;
 
Protected function internalfirstx: phashdataty;
 
Protected function internallastx: phashdataty;
 
Protected function internalnextx: phashdataty;
 
Protected function internalprevx: phashdataty;
 
Public constructor create();
 
Public destructor destroy; override;
 
Public procedure clear; virtual;
 
Public procedure reset;
 
Public procedure mark(out ref: hashoffsetty);
 
Public procedure release(const ref: hashoffsetty);
 
Public function absdata(const ref: ptrint): pointer;
 
Public procedure iterate(const aiterator: hashiteratorprocty); overload;
 

Properties

Protected property data: pointer read fdata;
 
Protected property assignedfirst: hashoffsetty read fassignedfirst;
 
Protected property assignedlast: hashoffsetty read fassignedlast;
 
Public property datasize: int32 read getdatasize;
 
Public property capacity: integer read fcapacity write setcapacity;
 
Public property count: integer read fcount;
 
Public property recsize: int32 read frecsize;
 

Generated by PasDoc 0.16.0.