TAVLTree.FindKey function
Find a data item in the tree using alternate compare mechanism.
Declaration
function FindKey(Key: Pointer;
const OnCompareKeyWithData: TListSortCompare)
: TAVLTreeNodeArguments
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.
