quakeforge/ruamoko/include/List.h

32 lines
612 B
C
Raw Normal View History

2003-07-29 16:01:35 +00:00
#ifndef __ruamoko_List_h
#define __ruamoko_List_h
#include "Object.h"
struct list_bucket_t = {
list_bucket_t [] next;
list_bucket_t [][] prev;
id obj;
};
@interface List: Object
{
integer count;
list_bucket_t [] head;
list_bucket_t [][] tail;
}
- (id) init;
- (void) free;
- (id) getItemAt: (integer) index;
- (id) head;
- (id) tail;
- (void) addItemAtHead: (id) item;
- (void) addItemAtTail: (id) item;
- (void) removeItem: (id) item;
- (integer) count;
-(void)makeObjectsPerformSelector:(SEL)selector;
-(void)makeObjectsPerformSelector:(SEL)selector withObject:(id)arg;
@end
#endif//__ruamoko_List_h