Unit 'AVL_Tree' Package
[Overview][Types][Classes][Variables][Index] [#fcl]

TAVLTree.FindKey

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

Declaration

Source position: avl_tree.pp line 139

public function TAVLTree.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

OnCompare

  

Compare function used when comparing nodes.

Find

  

Find a data item in the tree.


Documentation generated on: Jul 24 2023