[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'AvgLvlTree' (#lcl)

TStringToStringTree

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TStringToStringTree - an associative array of StringToString Items, or a tree of trees

Declaration

Source position: avglvltree.pas line 180

type TStringToStringTree = class

public

  procedure Create();

  

The instance of the Create constructor that allows the programmer to specify how items in the list are to be compared

  destructor Destroy; override;

  

Destroy - destructor for TStringToStringTree: calls Clear, frees items then calls inherited Destroy

  procedure Clear;

  

Clear - removes all items leaving an empty tree

  function Contains();

  

Returns True if the tree Contains the specified string

  procedure Add();

  

Add an item to the tree (specified by its name, value or delimiter)

  procedure AddNameValues();

  

AddNameValues add the specified named values to the tree

  procedure AddValues();

  

AddValues - adds the specified values to the tree

  function GetFirst();

  

GetFirst - finds the matching first item; returns True if successful

  function GetLast();

  

GetLast - finds the last matching item; returns True if successful

  function GetNext();

  

GetNext - finds the next matching item; returns True if successful

  function GetPrev();

  

GetPrev - finds the previous matching item; returns True if successful

  property Count: Integer; [r]

  

Count - the number of items

  property Values: String; default; [rw]

  

The Values of the strings corresponding to the supplied name

  property Tree: TAvgLvlTree; [r]

  

The Tree that forms the basis of the associative array

  property CompareItems: TListSortCompare; [r]

  

CompareItems - the items for comparison

  property CompareNameWithItem: TListSortCompare; [r]

  

CompareNameWithItem - the name for comparison with the item

end;

Inheritance

TStringToStringTree

  

TStringToStringTree - an associative array of StringToString Items, or a tree of trees

|

TObject

Description

TStringToStringTree - an associative array of StringToString Items, or a tree of trees. This class uses strings to identify strings within the array, unlike the TPointerToPointerTree, which uses pointers to identify pointers.