Function

CFBinaryHeapGetCountOfValue

Counts the number of times a given value occurs in a binary heap.

Declaration

CFIndex CFBinaryHeapGetCountOfValue(CFBinaryHeapRef heap, const void *value);

Parameters

heap

The binary heap to search.

value

The value for which to find matches in the binary heap. The compare callback provided in the CFBinaryHeapCallBacks structure when the binary heap was created is used to compare. If value, or any of the values in the binary heap, are not understood by the compare callback, the behavior is undefined.

Return Value

The number of times value occurs in heap.

See Also

CFBinaryHeap Miscellaneous Functions

CFBinaryHeapAddValue

Adds a value to a binary heap.

CFBinaryHeapApplyFunction

Iteratively applies a function to all the values in a binary heap.

CFBinaryHeapContainsValue

Returns whether a given value is in a binary heap.

CFBinaryHeapCreate

Creates a new mutable or fixed-mutable binary heap.

CFBinaryHeapCreateCopy

Creates a new mutable or fixed-mutable binary heap with the values from a pre-existing binary heap.

CFBinaryHeapGetCount

Returns the number of values currently in a binary heap.

CFBinaryHeapGetMinimum

Returns the minimum value in a binary heap.

CFBinaryHeapGetMinimumIfPresent

Returns the minimum value in a binary heap, if present.

CFBinaryHeapGetTypeID

Returns the type identifier of the CFBinaryHeap opaque type.

CFBinaryHeapGetValues

Copies all the values from a binary heap into a sorted C array.

CFBinaryHeapRemoveAllValues

Removes all values from a binary heap, making it empty.

CFBinaryHeapRemoveMinimumValue

Removes the minimum value from a binary heap.