Sign in Join
FPDoc Onlineexperiment

TAVLTree.FindNearest function

Member of TAVLTreepublicIn unit AVL_Tree

Find the node closest to the data in the tree.

Declaration

pascal
function FindNearest(Data: Pointer): TAVLTreeNode

Arguments

Data

The data item to search for.

Function result

The node that is closest to Data.

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

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