Structure

CFBinaryHeapCallBacks

Structure containing the callbacks for values for a CFBinaryHeap object.

Declaration

struct CFBinaryHeapCallBacks

Topics

Instance Properties

var compare: ((UnsafeRawPointer?, UnsafeRawPointer?, UnsafeMutableRawPointer?) -> CFComparisonResult)!

The callback used to compare values in the binary heap in some operations. This field cannot be NULL.

var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!

The callback used to create a descriptive string representation of each value in the binary heap. This is used by the CFCopyDescription(_:) function. If this field is NULL, the binary heap constructs a CFString object describing the value based on its pointer value.

var release: ((CFAllocator?, UnsafeRawPointer?) -> Void)!

The callback used to remove a retain previously added for the binary heap from values as they are removed from the binary heap. If this field is NULL, the binary heap does nothing to release a value being removed.

var retain: ((CFAllocator?, UnsafeRawPointer?) -> UnsafeRawPointer?)!

The callback used to add a retain for the binary heap on values as they are put into the binary heap. This callback returns the value to use as the value in the binary heap, which is usually the value parameter passed to this callback, but may be a different value if a different value should be added to the binary heap. If this field is NULL, the binary heap does nothing to retain a value being added.

var version: CFIndex

The version number of the structure type being passed in as a parameter to the CFBinaryHeap creation functions. This structure is version 0.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software