org.rococoa.cocoa.carboncore
Interface CarbonCoreLibrary.AVLCompareItemsProcPtr
- All Superinterfaces:
- Callback
- Enclosing interface:
- CarbonCoreLibrary
public static interface CarbonCoreLibrary.AVLCompareItemsProcPtr
- extends Callback
AVLCompareItemsProcPtr
Summary:
A callback function which compares two data items and returns
their ordering.
Discussion:
Every tree must have a function which compares the data for two
items and returns < 0, 0, or >0 for the items - < 0 if the first
item is 'before' the second item according to some criteria, == 0
if the two items are identical according to the criteria, or > 0
if the first item is 'after' the second item according to the
criteria. The comparison function is also passed the node type,
but most of the time this can be ignored.
Parameters:
tree:
The tree which contains the items being compared
i1:
A pointer to the first item
i2:
A pointer to the second item
nd_typ:
The type of the nodes being compared. This is not terribly
useful most of the time.
Result:
A value < 0 if i1 is 'before' i2, > 0 if i1 is 'after' i2, or ==
0 if i1 is equal to i2.
native declaration : /System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/CarbonCore.framework/Headers/AVLTree.h
invoke
int invoke(AVLTreeStruct tree,
Pointer i1,
Pointer i2,
short nd_typ)
Copyright © 2009. All Rights Reserved.