Differences From Artifact [fbd6a9a1ad]:
- File src/OFArray.h — part of check-in [23c798d4f1] at 2013-02-21 19:35:34 on branch trunk — Add support for generating BinaryPack. (user: js, size: 10682) [annotate] [blame] [check-ins using]
To Artifact [ecde9fadf5]:
- File
src/OFArray.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: 10683) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
34 35 36 37 38 39 40 | enum { OF_SORT_OPTIONS_DESCENDING = 1 }; #ifdef OF_HAVE_BLOCKS typedef void (^of_array_enumeration_block_t)(id object, size_t index, | | | | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | enum { OF_SORT_OPTIONS_DESCENDING = 1 }; #ifdef OF_HAVE_BLOCKS typedef void (^of_array_enumeration_block_t)(id object, size_t index, bool *stop); typedef bool (^of_array_filter_block_t)(id odject, size_t index); typedef id (^of_array_map_block_t)(id object, size_t index); typedef id (^of_array_fold_block_t)(id left, id right); #endif /*! * @brief An abstract class for storing objects in an array. */ |
︙ | ︙ | |||
192 193 194 195 196 197 198 | * @brief Checks whether the array contains an object with the specified * address. * * @param object The object which is checked for being in the array * @return A boolean whether the array contains an object with the specified * address. */ | | | 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | * @brief Checks whether the array contains an object with the specified * address. * * @param object The object which is checked for being in the array * @return A boolean whether the array contains an object with the specified * address. */ - (bool)containsObjectIdenticalTo: (id)object; /*! * @brief Returns the first object of the array or nil. * * @warning The returned object is *not* retained and autoreleased for * performance reasons! * |
︙ | ︙ | |||
327 328 329 330 331 332 333 | * @param block A block which maps an object for each object * @return A new, autoreleased OFArray */ - (OFArray*)mappedArrayUsingBlock: (of_array_map_block_t)block; /*! * @brief Creates a new array, only containing the objects for which the block | | | 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 | * @param block A block which maps an object for each object * @return A new, autoreleased OFArray */ - (OFArray*)mappedArrayUsingBlock: (of_array_map_block_t)block; /*! * @brief Creates a new array, only containing the objects for which the block * returns true. * * @param block A block which determines if the object should be in the new * array * @return A new, autoreleased OFArray */ - (OFArray*)filteredArrayUsingBlock: (of_array_filter_block_t)block; |
︙ | ︙ |