Skip to content

TAVLTree.Delete

Delete a node from the tree.

Declaration

Source position: avl_tree.pp line 130

public 
procedure TAVLTree.Delete(ANode: TAVLTreeNode);

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

Name Description
TAVLTree.Remove Remove a data item from the list.
TAVLTree.RemovePointer Remove a pointer item from the list.
TAVLTree.Clear Clears the tree.