author | snej@snej-mbp.mtv.corp.google.com |
Tue Apr 07 11:13:25 2009 -0700 (2009-04-07) | |
changeset 23 | a910102a1c9d |
permissions | -rw-r--r-- |
jens@15 | 1 |
// |
jens@15 | 2 |
// IntegerArray.h |
jens@15 | 3 |
// Cloudy |
jens@15 | 4 |
// |
jens@15 | 5 |
// Created by Jens Alfke on 6/23/08. |
jens@15 | 6 |
// Copyright 2008 Jens Alfke. All rights reserved. |
jens@15 | 7 |
// |
jens@15 | 8 |
|
jens@15 | 9 |
#import <Cocoa/Cocoa.h> |
jens@15 | 10 |
|
jens@15 | 11 |
|
jens@15 | 12 |
@interface IntegerArray : NSObject { |
jens@15 | 13 |
NSMutableData *_storage; |
jens@15 | 14 |
SInt32 *_integers; |
jens@15 | 15 |
NSUInteger _count; |
jens@15 | 16 |
} |
jens@15 | 17 |
|
jens@15 | 18 |
- (NSUInteger)count; |
jens@15 | 19 |
- (const SInt32*) allIntegers; |
jens@15 | 20 |
|
jens@15 | 21 |
- (SInt32) integerAtIndex: (NSUInteger)index; |
jens@15 | 22 |
- (void) setInteger: (SInt32)value atIndex: (NSUInteger)index; |
jens@15 | 23 |
- (void) addInteger: (SInt32)value; |
jens@15 | 24 |
|
jens@15 | 25 |
@end |