jens@15: // jens@15: // IntegerArray.h jens@15: // Cloudy jens@15: // jens@15: // Created by Jens Alfke on 6/23/08. jens@15: // Copyright 2008 Jens Alfke. All rights reserved. jens@15: // jens@15: jens@15: #import jens@15: jens@15: jens@15: @interface IntegerArray : NSObject { jens@15: NSMutableData *_storage; jens@15: SInt32 *_integers; jens@15: NSUInteger _count; jens@15: } jens@15: jens@15: - (NSUInteger)count; jens@15: - (const SInt32*) allIntegers; jens@15: jens@15: - (SInt32) integerAtIndex: (NSUInteger)index; jens@15: - (void) setInteger: (SInt32)value atIndex: (NSUInteger)index; jens@15: - (void) addInteger: (SInt32)value; jens@15: jens@15: @end