Differences From Artifact [dbe3c67ed9]:
- File src/OFDictionary.h — part of check-in [23c798d4f1] at 2013-02-21 19:35:34 on branch trunk — Add support for generating BinaryPack. (user: js, size: 6847) [annotate] [blame] [check-ins using]
To Artifact [ecacbc0808]:
- File
src/OFDictionary.h
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 6848) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
30 31 32 33 34 35 36 | #import "OFJSONRepresentation.h" #import "OFBinaryPackRepresentation.h" @class OFArray; #ifdef OF_HAVE_BLOCKS typedef void (^of_dictionary_enumeration_block_t)(id key, id object, | | | | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #import "OFJSONRepresentation.h" #import "OFBinaryPackRepresentation.h" @class OFArray; #ifdef OF_HAVE_BLOCKS typedef void (^of_dictionary_enumeration_block_t)(id key, id object, bool *stop); typedef bool (^of_dictionary_filter_block_t)(id key, id object); typedef id (^of_dictionary_map_block_t)(id key, id object); #endif /*! * @brief An abstract class for storing objects in a dictionary. * * Keys are copied and thus must conform to the OFCopying protocol. |
︙ | ︙ | |||
184 185 186 187 188 189 190 | * @brief Checks whether the dictionary contains an object with the specified * address. * * @param object The object which is checked for being in the dictionary * @return A boolean whether the dictionary contains an object with the * specified address. */ | | | 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | * @brief Checks whether the dictionary contains an object with the specified * address. * * @param object The object which is checked for being in the dictionary * @return A boolean whether the dictionary contains an object with the * specified address. */ - (bool)containsObjectIdenticalTo: (id)object; /*! * @brief Returns an array of all keys. * * @return An array of all keys */ - (OFArray*)allKeys; |
︙ | ︙ | |||
227 228 229 230 231 232 233 | * @param block A block which maps an object for each object * @return A new autoreleased OFDictionary */ - (OFDictionary*)mappedDictionaryUsingBlock: (of_dictionary_map_block_t)block; /*! * @brief Creates a new dictionary, only containing the objects for which the | | | 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | * @param block A block which maps an object for each object * @return A new autoreleased OFDictionary */ - (OFDictionary*)mappedDictionaryUsingBlock: (of_dictionary_map_block_t)block; /*! * @brief Creates a new dictionary, only containing the objects for which the * block returns true. * * @param block A block which determines if the object should be in the new * dictionary * @return A new autoreleased OFDictionary */ - (OFDictionary*)filteredDictionaryUsingBlock: (of_dictionary_filter_block_t)block; |
︙ | ︙ |