27#ifndef __COREFOUNDATION_CFDICTIONARY_H__
28#define __COREFOUNDATION_CFDICTIONARY_H__ 1
30#include <CoreFoundation/CFBase.h>
34typedef const struct __CFDictionary *CFDictionaryRef;
36typedef struct __CFDictionary *CFMutableDictionaryRef;
41typedef void (*CFDictionaryApplierFunction) (
const void *key,
42 const void *value,
void *context);
44typedef CFStringRef (*CFDictionaryCopyDescriptionCallBack) (
const void *value);
45typedef Boolean (*CFDictionaryEqualCallBack) (
const void *value1,
47typedef CFHashCode (*CFDictionaryHashCallBack) (
const void *value);
48typedef void (*CFDictionaryReleaseCallBack) (
CFAllocatorRef allocator,
50typedef const void *(*CFDictionaryRetainCallBack) (
CFAllocatorRef allocator,
57 CFDictionaryRetainCallBack retain;
58 CFDictionaryReleaseCallBack release;
59 CFDictionaryCopyDescriptionCallBack copyDescription;
60 CFDictionaryEqualCallBack equal;
61 CFDictionaryHashCallBack hash;
68 CFDictionaryRetainCallBack retain;
69 CFDictionaryReleaseCallBack release;
70 CFDictionaryCopyDescriptionCallBack copyDescription;
71 CFDictionaryEqualCallBack equal;
74CF_EXPORT
const CFDictionaryKeyCallBacks kCFCopyStringDictionaryKeyCallBacks;
75CF_EXPORT
const CFDictionaryKeyCallBacks kCFTypeDictionaryKeyCallBacks;
76CF_EXPORT
const CFDictionaryValueCallBacks kCFTypeDictionaryValueCallBacks;
81CF_EXPORT CFDictionaryRef
83 const void **values,
CFIndex numValues,
84 const CFDictionaryKeyCallBacks * keyCallBacks,
85 const CFDictionaryValueCallBacks * valueCallBacks);
87CF_EXPORT CFDictionaryRef
88CFDictionaryCreateCopy (
CFAllocatorRef allocator, CFDictionaryRef theDict);
95CFDictionaryContainsKey (CFDictionaryRef theDict,
const void *key);
98CFDictionaryContainsValue (CFDictionaryRef theDict,
const void *value);
100CF_EXPORT
CFIndex CFDictionaryGetCount (CFDictionaryRef theDict);
103CFDictionaryGetCountOfKey (CFDictionaryRef theDict,
const void *key);
106CFDictionaryGetCountOfValue (CFDictionaryRef theDict,
const void *value);
109CFDictionaryGetKeysAndValues (CFDictionaryRef theDict,
const void **keys,
110 const void **values);
112CF_EXPORT
const void *CFDictionaryGetValue (CFDictionaryRef theDict,
116CFDictionaryGetValueIfPresent (CFDictionaryRef theDict,
const void *key,
124CFDictionaryApplyFunction (CFDictionaryRef theDict,
125 CFDictionaryApplierFunction applier,
void *context);
131CF_EXPORT CFTypeID CFDictionaryGetTypeID (
void);
141CF_EXPORT CFMutableDictionaryRef
143 const CFDictionaryKeyCallBacks * keyCallBacks,
144 const CFDictionaryValueCallBacks * valueCallBacks);
146CF_EXPORT CFMutableDictionaryRef
148 CFDictionaryRef theDict);
155CFDictionaryAddValue (CFMutableDictionaryRef theDict,
const void *key,
158CF_EXPORT
void CFDictionaryRemoveAllValues (CFMutableDictionaryRef theDict);
161CFDictionaryRemoveValue (CFMutableDictionaryRef theDict,
const void *key);
164CFDictionaryReplaceValue (CFMutableDictionaryRef theDict,
const void *key,
168CFDictionarySetValue (CFMutableDictionaryRef theDict,
const void *key,
signed long CFIndex
Definition CFBase.h:165
unsigned long CFHashCode
Definition CFBase.h:159
const struct __CFAllocator * CFAllocatorRef
A reference to a CFAllocator object.
Definition CFBase.h:301
Definition CFDictionary.h:55
Definition CFDictionary.h:66