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;
123 - initWithObject: (
id)object
134 - initWithObjects: (
OFArray*)objects
146 - initWithObjects: (
id const*)objects
147 forKeys: (
id const*)keys
148 count: (
size_t)count;
157 - initWithKeysAndObjects: (
id)firstKey, ... OF_SENTINEL;
167 - initWithKey: (
id)firstKey
168 arguments: (va_list)arguments;
179 - (id)objectForKey: (
id)key;
180 - (id)objectForKeyedSubscript: (
id)key;
190 - (BOOL)containsObjectIdenticalTo: (
id)object;
213 #ifdef OF_HAVE_BLOCKS
219 - (void)enumerateKeysAndObjectsUsingBlock:
220 (of_dictionary_enumeration_block_t)block;
229 - (
OFDictionary*)mappedDictionaryUsingBlock: (of_dictionary_map_block_t)block;
240 (of_dictionary_filter_block_t)block;
244 #import "OFMutableDictionary.h"
246 #ifndef NSINTEGER_DEFINED