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

TAVLTree.Compare

Compare 2 nodes.

Declaration

Source position: avl_tree.pp line 145

public function TAVLTree.Compare(

  Data1: Pointer;

  Data2: Pointer

):Integer;

Arguments

Data1

  

First data pointer.

Data2

  

Second data pointer.

Function result

Result of the comparison.

Description

Compare compares the keys from 2 data pointers. It uses the appropriate compare function TAVLtree.OnCompare or TAVLTree.OnObjectCompare to do so. The result is

See also

TAVLTree.OnObjectCompare

  

Compare handler.

TAVLtree.OnCompare

  

Compare function used when comparing nodes.


Documentation generated on: Dec 22 2024