@@ -10,10 +10,11 @@ */ #include #import "OFObject.h" +#import "OFEnumerator.h" #import "OFFastEnumeration.h" @class OFDataArray; @class OFString; @@ -140,8 +141,26 @@ * * \param separator The string with which the objects should be joined * \return A string containing all objects joined by the separator */ - (OFString*)componentsJoinedByString: (OFString*)separator; + +/** + * \return An OFEnumerator to enumarate through the array's objects + */ +- (OFEnumerator*)enumerator; +@end + +@interface OFArrayEnumerator: OFEnumerator +{ + OFDataArray *array; + size_t count; + unsigned long mutations; + unsigned long *mutations_ptr; + size_t pos; +} + +- initWithDataArray: (OFDataArray*)data + mutationsPointer: (unsigned long*)mutations_ptr; @end #import "OFMutableArray.h"