@@ -22,14 +22,10 @@ /** * \brief A class for storing, adding and removing objects in an array. */ @interface OFMutableArray: OFArray -{ - unsigned long mutations; -} - /** * \brief Adds an object to the OFArray. * * \param object An object to add */ @@ -101,17 +97,15 @@ * \param nObjects The number of objects to remove */ - (void)removeNObjects: (size_t)nObjects; /** - * \brief Removes the specified amount of objects at the specified index. + * \brief Removes the object in the specified range. * - * \param nobjects The number of objects to remove - * \param index The index at which the objects are removed + * \param range The range of the objects to remove */ -- (void)removeNObjects: (size_t)nObjects - atIndex: (size_t)index; +- (void)removeObjectsInRange: (of_range_t)range; /** * \brief Removes the last object. */ - (void)removeLastObject; @@ -122,6 +116,14 @@ * * \param block The block which returns a new object for each object */ - (void)replaceObjectsUsingBlock: (of_array_replace_block_t)block; #endif + +/** + * \brief Converts the mutable array to an immutable array. + */ +- (OFArray*)makeImmutable; +@end + +@interface OFMutableArrayPlaceholder: OFMutableArray @end