Function

CFBinaryHeapAddValue

Adds a value to a binary heap.

Declaration

void CFBinaryHeapAddValue(CFBinaryHeapRef heap, const void *value);

Parameters

heap

The binary heap to use.

value

The value to add to the binary heap. The value is retained by the binary heap using the retain callback provided in the CFBinaryHeapCallBacks structure when the binary heap was created.

See Also

CFBinaryHeap Miscellaneous Functions

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.

CFBinaryHeapGetCountOfValue

Counts the number of times a given value occurs 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.