forked from pmougin/F-Script
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathArrayRepBooleanAltivec.h
33 lines (28 loc) · 1.02 KB
/
ArrayRepBooleanAltivec.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
31
32
33
/* ArrayRepBoolean.h Copyright (c) 1998-2009 Philippe Mougin. */
/* This software is open source. See the license. */
#import <Foundation/Foundation.h>
#import "ArrayRep.h"
/*typedef union
{
vector bool char vec;
BOOL elements[16];
} booleanVector;*/
@interface ArrayRepBoolean : NSObject /*<ArrayRep> */
{
NSUInteger retainCount;
@public
char *t; // the booleans, represented by an array of chars
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:(char *)elems count:(NSUInteger)nb;
- initWithBooleansNoCopy:(char *)tab count:(NSUInteger)nb;
- copyWithZone:(NSZone *)zone;
- (void)replaceBooleanAtIndex:(NSUInteger)index withBoolean:(char)aBoolean;
- (enum ArrayRepType)repType;
@end