quakeforge/ruamoko/include/Array.h
Brian Koropoff f9ff908157 Changed the Array class to use object ids instead of null pointers for easy
and safe freeing of elements when an Array is disposed.
2003-05-23 04:27:30 +00:00

24 lines
548 B
Objective-C

#ifndef __ruamoko_Array_h
#define __ruamoko_Array_h
#include "Object.h"
@interface Array: Object
{
integer count, size;
integer incr;
id [] array;
}
- (id) init;
- (id) initWithIncrement: (integer) inc;
- (void) free;
- (void []) getItemAt: (integer) index;
- (void) setItemAt: (integer) index item:(void []) item;
- (void) addItem: (void []) item;
- (void) removeItem: (void []) item;
- (void []) removeItemAt: (integer) index;
- (void []) insertItemAt: (integer) index item:(void []) item;
- (integer) count;
@end
#endif//__ruamoko_Array_h