TAVLTree.FindNearest¶
Find the node closest to the data in the tree.
Declaration¶
Source position: avl_tree.pp line 155
public
function TAVLTree.FindNearest(Data: Pointer) : TAVLTreeNode;
Description¶
FindNearest searches the node in the data tree that is closest to the specified Data. If Data appears in the tree, then its node is returned.
See also¶
| Name | Description |
|---|---|
| FindHighest | Find the highest (rightmost) node in the tree. |
| FindLowest | Find the lowest (leftmost) node in the tree. |
| Find | Find a data item in the tree. |
| FindKey | Find a data item in the tree using alternate compare mechanism. |