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

TAvgLvlTreeNode

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

TAvgLvlTreeNode - a node, the basic structural element of a TAvgLvlTree

Declaration

Source position: avglvltree.pas line 42

type TAvgLvlTreeNode = class

public

  Parent: TAvgLvlTreeNode;

  

Parent - the previous level in the tree

  Left: TAvgLvlTreeNode;

  

The Left descendant branch node in the tree

  Right: TAvgLvlTreeNode;

  

The Right descendant branch node in the tree

  Balance: Integer;

  

Balance - should be 0 for perfect balance, -1 or +1 for one extra node on either side, more than (+ or -) 1 means tree is unbalanced and needs to be fixed

  Data: Pointer;

  

A pointer to the actual Data associated with the node

  procedure Clear;

  

Clear - remove all the branches leaving an empty tree

  function TreeDepth;

  

TreeDepth - the number of levels in the tree structure, by the longest way down

end;

Inheritance

TAvgLvlTreeNode

  

TAvgLvlTreeNode - a node, the basic structural element of a TAvgLvlTree

|

TObject

The latest version of this document can be found at lazarus-ccr.sourceforge.net.