17 #ifndef __STDC_LIMIT_MACROS
18 # define __STDC_LIMIT_MACROS
20 #ifndef __STDC_CONSTANT_MACROS
21 # define __STDC_CONSTANT_MACROS
27 #import "OFCollection.h"
28 #import "OFEnumerator.h"
29 #import "OFSerialization.h"
30 #import "OFJSONRepresentation.h"
35 typedef void (^of_dictionary_enumeration_block_t)(
id key,
id object,
37 typedef BOOL (^of_dictionary_filter_block_t)(
id key,
id object);
38 typedef id (^of_dictionary_map_block_t)(
id key,
id object);
64 + (instancetype)dictionaryWithDictionary: (
OFDictionary*)dictionary;
73 + (instancetype)dictionaryWithObject: (
id)object
83 + (instancetype)dictionaryWithObjects: (
OFArray*)objects
94 + (instancetype)dictionaryWithObjects: (
id const*)objects
95 forKeys: (
id const*)keys
104 + (instancetype)dictionaryWithKeysAndObjects: (
id)firstKey, ... OF_SENTINEL;
130 - initWithObject: (
id)object
141 - initWithObjects: (
OFArray*)objects
153 - initWithObjects: (
id const*)objects
154 forKeys: (
id const*)keys
155 count: (
size_t)count;
164 - initWithKeysAndObjects: (
id)firstKey, ... OF_SENTINEL;
174 - initWithKey: (
id)firstKey
175 arguments: (va_list)arguments;
186 - (id)objectForKey: (
id)key;
187 - (id)objectForKeyedSubscript: (
id)key;
197 - (BOOL)containsObjectIdenticalTo: (
id)object;
220 #ifdef OF_HAVE_BLOCKS
226 - (void)enumerateKeysAndObjectsUsingBlock:
227 (of_dictionary_enumeration_block_t)block;
236 - (
OFDictionary*)mappedDictionaryUsingBlock: (of_dictionary_map_block_t)block;
247 (of_dictionary_filter_block_t)block;
251 #import "OFMutableDictionary.h"
253 #ifndef NSINTEGER_DEFINED