Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (29 sloc) 766 Bytes
//
// MPWIntArray.h
// MPWFoundation
//
// Created by Marcel Weiher on Sat Dec 27 2003.
/*
Copyright (c) 2003-2017 by Marcel Weiher. All rights reserved.
*/
//
#import "MPWObject.h"
@interface MPWIntArray : MPWObject {
int *data;
unsigned long count,capacity;
}
+array;
-(int)integerAtIndex:(unsigned)index;
-(instancetype)initFrom:(int)start to:(int)stop step:(int)step;
-(void)addIntegers:(int*)intArray count:(unsigned long)numIntsToAdd;
-(void)addInteger:(int)anInt;
-(void)addObject:anObject;
-(void)replaceIntegerAtIndex:(unsigned long)anIndex withInteger:(int)anInt;
-(NSUInteger)count;
-(void)reset;
-(int*)integers;
-(int)lastInteger;
-(void)removeLastObject;
-(void)do:(void(^)(int))block;
-(instancetype)select:(BOOL(^)(int))block;
@end