#include <assert.h>
import "OOPriorityQueue.h"
import "OOFunctionAttributes.h"
Go to the source code of this file.
|
typedef NSComparisonResult(* | CompareIMP) (id self, SEL _cmd, id other) |
|
◆ CompareIMP
typedef NSComparisonResult(* CompareIMP) (id self, SEL _cmd, id other) |
◆ anonymous enum
◆ PQCompare()
OOINLINE NSComparisonResult PQCompare |
( |
id | a, |
|
|
id | b, |
|
|
SEL | comparator ) |
Definition at line 92 of file OOPriorityQueue.m.
93{
95 NSComparisonResult result;
96
97
98 compare = (
CompareIMP)[a methodForSelector:comparator];
99 result = compare(a, comparator, b);
100 return result;
101}
NSComparisonResult(* CompareIMP)(id self, SEL _cmd, id other)
◆ PQLeftChild()
OOINLINE NSUInteger PQLeftChild |
( |
NSUInteger | n | ) |
|
◆ PQParent()
OOINLINE NSUInteger PQParent |
( |
NSUInteger | n | ) |
|
◆ PQRightChild()
OOINLINE NSUInteger PQRightChild |
( |
NSUInteger | n | ) |
|