28 #ifndef __COREFOUNDATION_CFARRAY_H__
29 #define __COREFOUNDATION_CFARRAY_H__
31 #include <CoreFoundation/CFBase.h>
56 typedef void (*CFArrayApplierFunction) (
const void *value,
void *context);
57 typedef CFStringRef (*CFArrayCopyDescriptionCallBack) (
const void *value);
58 typedef void (*CFArrayReleaseCallBack) (CFAllocatorRef allocator,
60 typedef const void *(*CFArrayRetainCallBack) (CFAllocatorRef allocator,
62 typedef Boolean (*CFArrayEqualCallBack) (
const void *value1,
75 CFArrayReleaseCallBack release;
76 CFArrayCopyDescriptionCallBack copyDescription;
77 CFArrayEqualCallBack equal;
83 CF_EXPORT
const CFArrayCallBacks kCFTypeArrayCallBacks;
92 CFArrayCreate (CFAllocatorRef allocator,
const void **values,
93 CFIndex numValues,
const CFArrayCallBacks * callBacks);
96 CFArrayCreateCopy (CFAllocatorRef allocator,
CFArrayRef theArray);
103 CFArrayBSearchValues (
CFArrayRef theArray, CFRange range,
const void *value,
104 CFComparatorFunction comparator,
void *context);
107 CFArrayContainsValue (
CFArrayRef theArray, CFRange range,
const void *value);
109 CF_EXPORT CFIndex CFArrayGetCount (
CFArrayRef theArray);
112 CFArrayGetCountOfValue (
CFArrayRef theArray, CFRange range,
const void *value);
115 CFArrayGetFirstIndexOfValue (
CFArrayRef theArray, CFRange range,
119 CFArrayGetLastIndexOfValue (
CFArrayRef theArray, CFRange range,
123 CFArrayGetValues (
CFArrayRef theArray, CFRange range,
const void **values);
125 CF_EXPORT
const void *CFArrayGetValueAtIndex (
CFArrayRef theArray, CFIndex idx);
132 CFArrayApplyFunction (
CFArrayRef theArray, CFRange range,
133 CFArrayApplierFunction applier,
void *context);
139 CF_EXPORT CFTypeID CFArrayGetTypeID (
void);
156 CFArrayCreateMutable (CFAllocatorRef allocator, CFIndex capacity,
157 const CFArrayCallBacks * callBacks);
160 CFArrayCreateMutableCopy (CFAllocatorRef allocator, CFIndex capacity,
178 const void **newValues, CFIndex newCount);
186 CFComparatorFunction comparator,
void *context);
CFArrayRetainCallBack retain
Definition: CFArray.h:72
CFIndex version
Definition: CFArray.h:71
const struct __CFArray * CFArrayRef
Reference to an immutable array object.
Definition: CFArray.h:37
Structure with CFArray callbacks.
Definition: CFArray.h:70
struct __CFArray * CFMutableArrayRef
Reference to a mutable array object.
Definition: CFArray.h:42