MemoisedEnumerator.h 426 B

12345678910111213141516171819
  1. #import <Foundation/Foundation.h>
  2. @interface MemoisedEnumerator : NSEnumerator
  3. -(int)previousIndex;
  4. -(int)nextIndex;
  5. -(id)previousObject;
  6. - (MemoisedEnumerator *)initWith:(NSEnumerator *)anEnumerator memory:(NSMutableArray *)aMemory;
  7. - (id)firstObject;
  8. - (void)reset;
  9. + (MemoisedEnumerator *)with:(NSEnumerator *)enumerator;
  10. + (MemoisedEnumerator *)with:(NSEnumerator *)enumerator memory:(NSMutableArray *)memory;
  11. @end