forked from pmougin/F-Script
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathArrayRepBooleanPacked.h
29 lines (23 loc) · 968 Bytes
/
ArrayRepBooleanPacked.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* ArrayRepBoolean.h Copyright (c) 1998-2009 Philippe Mougin. */
/* This software is open source. See the license. */
#import <Foundation/Foundation.h>
#import "ArrayRep.h"
@interface ArrayRepBoolean : NSObject <ArrayRep>
{
NSUInteger retainCount;
@public
NSUInteger *t; // the booleans, represented by an array of unsigned
NSUInteger count;
NSUInteger capacity;
}
- (void)addBoolean:(char)aBoolean;
- (char *)booleansPtr;
- init;
- initFilledWithBoolean:(char)elem count:(NSUInteger)nb; // contract: a return value of nil means not enough memory
- initWithCapacity:(NSUInteger)aNumItems; // contract: a return value of nil means not enough memory
- initWithBooleans:(NSUInteger *)elems count:(NSUInteger)nb;
- initWithBooleansNoCopy:(char *)tab count:(NSUInteger)nb;
- copyWithZone:(NSZone *)zone;
- (void)replaceBooleanAtIndex:(NSUInteger)index withBoolean:(char)aBoolean;
- (enum ArrayRepType)repType;
@end