Sign in Join
FPDoc Onlineexperiment

TAVLTree.Delete procedure

Member of TAVLTreepublicIn unit AVL_Tree

Delete a node from the tree.

Declaration

pascal
procedure Delete(ANode: TAVLTreeNode)

Arguments

ANode

The node to delete from the tree.

Description

Delete removes the node from the tree. The node is not freed, but is passed to a TAVLTreeNodeMemManager instance for future reuse. The data that the node represents is also not freed.

The tree is rebalanced after the node was deleted.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.