forked from pmougin/F-Script
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathArrayRepBoolean.h
30 lines (24 loc) · 1.04 KB
/
ArrayRepBoolean.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
30
/* 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
char *t; // the booleans, represented by an array of char
NSUInteger count;
NSUInteger capacity;
}
- (void)addBoolean:(char)aBoolean;
- (char *)booleansPtr;
- (NSUInteger)indexOfObject:(id)anObject inRange:(NSRange)range identical:(BOOL)identical;
- (id)init;
- (id)initFilledWithBoolean:(char)elem count:(NSUInteger)nb; // contract: a return value of nil means not enough memory
- (id)initWithCapacity:(NSUInteger)aNumItems; // contract: a return value of nil means not enough memory
- (id)initWithBooleans:(char *)elems count:(NSUInteger)nb;
- (id)initWithBooleansNoCopy:(char *)tab count:(NSUInteger)nb;
- (id)copyWithZone:(NSZone *)zone;
- (void)replaceBooleanAtIndex:(NSUInteger)index withBoolean:(char)aBoolean;
- (enum ArrayRepType)repType;
@end