//
//  NSIndexSetEnumerator.h
// Darren Ford
//

#import <Foundation/Foundation.h>

#define NSIndexSetEnumerator DarrenFord_NSIndexSetEnumerator

@interface NSIndexSetEnumerator : NSObject 
{
    unsigned int m_uCurrentPosition;

    unsigned int m_uIndexCount;
    unsigned int *m_puIndexes;
}

// Basic initializer and deallocator

- (id)initWithIndexSet:(NSIndexSet *)theSet;
- (id)initWithIndexSet:(NSIndexSet *)theSet range:(NSRange)myRange;

- (void)reset;
- (unsigned int)count;
- (BOOL)nextIndex:(unsigned int *)pValue;
- (unsigned int)indexAtIndex:(unsigned int)i;

@end
