Sign in Join
FPDoc Onlineexperiment

TAVLTree.FindKey function

Member of TAVLTreepublicIn unit AVL_Tree

Find a data item in the tree using alternate compare mechanism.

Declaration

pascal
function FindKey(Key: Pointer; 
 const OnCompareKeyWithData: TListSortCompare)
: TAVLTreeNode

Arguments

Key

Data item to search for.

OnCompareKeyWithData

Data pointer comparison callback.

Function result

Tree node corresponding to Key item.

Description

FindKey uses the specified OnCompareKeyWithData comparing function to find the Key pointer in the tree It returns the TAVLTreeNode instance that matches the Data pointer, or Nil if none is found.

See also

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