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

TAVLTree.CreateObjectCompare

Create an instance of the tree with extended compare method.

Declaration

Source position: avl_tree.pp line 114

public constructor TAVLTree.CreateObjectCompare(

  const OnCompareMethod: TObjectSortCompare

);

Arguments

OnCompareMethod

  

The value for the OnObjectCompare.

Description

CreateObjectCompare is an alternative constructor that accepts a TObjectSortCompare compare function instead of a regular TListSortCompare compare function. The compare function can still be set in the TAVLTree.OnObjectCompare property.

See also

TAVLTree.OnObjectCompare

  

Compare handler.


Documentation generated on: Dec 22 2024