IntegerArray.h
changeset 20 5a71993a1a70
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/IntegerArray.h	Sat Mar 28 09:36:46 2009 -0700
     1.3 @@ -0,0 +1,25 @@
     1.4 +//
     1.5 +//  IntegerArray.h
     1.6 +//  Cloudy
     1.7 +//
     1.8 +//  Created by Jens Alfke on 6/23/08.
     1.9 +//  Copyright 2008 Jens Alfke. All rights reserved.
    1.10 +//
    1.11 +
    1.12 +#import <Cocoa/Cocoa.h>
    1.13 +
    1.14 +
    1.15 +@interface IntegerArray : NSObject {
    1.16 +    NSMutableData *_storage;
    1.17 +    SInt32 *_integers;
    1.18 +    NSUInteger _count;
    1.19 +}
    1.20 +
    1.21 +- (NSUInteger)count;
    1.22 +- (const SInt32*) allIntegers;
    1.23 +
    1.24 +- (SInt32) integerAtIndex: (NSUInteger)index;
    1.25 +- (void) setInteger: (SInt32)value atIndex: (NSUInteger)index;
    1.26 +- (void) addInteger: (SInt32)value;
    1.27 +
    1.28 +@end