TLinkedStringListEx

From Ultibo.org
Jump to: navigation, search

Return to Unit UltiboClasses


Description


To be documented

Class definitions



TLinkedStringListEx = class(TLinkedStringList)

Note: A TLinkedStringList with block list for entry Indexing
 
constructor Create;  
public (Public destructor for FPC RTL)
destructor Destroy; override;  
private
FRecent:TStringBlock;  
FBlocks:TLinkedObjList;  
 
FCapacity:Integer;  
 
function GetBlock(Index:Integer):TStringBlock;  
function AddBlock(Block:TStringBlock; Index:Integer):TStringBlock;  
function DeleteBlock(Block:TStringBlock):Boolean;  
function UpdateBlocks(Block:TStringBlock):Boolean;  
 
function GetItem(Block:TStringBlock; Index:Integer):TStringObjectEx;  
function AddItem(Block:TStringBlock; Index:Integer; Item:TStringObjectEx):Boolean;  
function DeleteItem(Block:TStringBlock; Index:Integer; Item:TStringObjectEx):Boolean;  
 
function IndexOfItem(Block:TStringBlock; Item:TStringObjectEx):Integer;  
protected
function Get(Index:Integer):String; override;  
function GetCapacity:Integer; override;  
function GetObject(Index:Integer):TObject; override;  
procedure Put(Index:Integer; const S:String); override;  
procedure PutObject(Index:Integer; AObject:TObject); override;  
public
function Add(const S:String):Integer; override;  
procedure Clear; override;  
procedure Delete(Index:Integer); override;  
procedure Exchange(Index1,Index2:Integer); override;  
function IndexOf(const S:String):Integer; override;  
procedure Insert(Index:Integer; const S:String); override;  


Function declarations



constructor TLinkedStringListEx.Create;
Description: To be documented
Note None documented


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


function TLinkedStringListEx.GetBlock(Index:Integer):TStringBlock;
Description: To be documented
Note None documented


function TLinkedStringListEx.AddBlock(Block:TStringBlock; Index:Integer):TStringBlock;
Description: To be documented
Index Starting Index of Block to be Added
Block Current Block containing Index or nil


function TLinkedStringListEx.DeleteBlock(Block:TStringBlock):Boolean;
Description: To be documented
Note None documented


function TLinkedStringListEx.UpdateBlocks(Block:TStringBlock):Boolean;
Description: To be documented
Note None documented


function TLinkedStringListEx.GetItem(Block:TStringBlock; Index:Integer):TStringObjectEx;
Description: To be documented
Note None documented


function TLinkedStringListEx.AddItem(Block:TStringBlock; Index:Integer; Item:TStringObjectEx):Boolean;
Description: To be documented
Note None documented


function TLinkedStringListEx.DeleteItem(Block:TStringBlock;Index:Integer; Item:TStringObjectEx):Boolean;
Description: To be documented
Note None documented


function TLinkedStringListEx.IndexOfItem(Block:TStringBlock; Item:TStringObjectEx):Integer;
Description: To be documented
Note None documented


function TLinkedStringListEx.Get(Index:Integer):String;
Description: To be documented
Note None documented


function TLinkedStringListEx.GetCapacity:Integer;
Description: To be documented
Note None documented


function TLinkedStringListEx.GetObject(Index:Integer):TObject;
Description: To be documented
Note None documented


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


procedure TLinkedStringListEx.PutObject(Index:Integer; AObject:TObject);
Description: To be documented
Note None documented


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


procedure TLinkedStringListEx.Clear;
Description: To be documented
Note None documented


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


procedure TLinkedStringListEx.Exchange(Index1,Index2:Integer);
Description: To be documented
Note None documented


function TLinkedStringListEx.IndexOf(const S:String):Integer;
Description: Uses IndexOfItem within the Block of the matched String Object
Note Could use Counted Index method of TLinkedStringList instead


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


Return to Unit Reference