IntegerArray.h
author Jens Alfke <jens@mooseyard.com>
Sun Jul 13 10:45:42 2008 -0700 (2008-07-13)
changeset 16 ce9c83f7ec14
permissions -rw-r--r--
* Minor fixes to glitches detected by the clang static analyzer.
* Added MYAnimatingSplitView class.
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