TAVLTree.Add procedure
Add a new node to the tree.
Declaration
procedure Add(ANode: TAVLTreeNode)
function Add(Data: Pointer): TAVLTreeNodeArguments
ANode | Node to add to the tree. |
Data | Data item to add to the tree. |
Function result
Resulting node in case a data pointer is added.
Description
Add adds a new
Data or
Node to the tree.
It inserts the node so that the tree is maximally balanced by rebalancing
the tree after the insert. In case a
data pointer is added to
the tree, then the node that was created is returned.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
