2003-07-29 16:01:35 +00:00
|
|
|
#ifndef __ruamoko_List_h
|
|
|
|
#define __ruamoko_List_h
|
|
|
|
|
|
|
|
#include "Object.h"
|
|
|
|
|
|
|
|
@interface List: Object
|
|
|
|
{
|
2011-03-25 07:46:32 +00:00
|
|
|
int count;
|
2011-02-13 12:25:36 +00:00
|
|
|
struct list_bucket_s *head;
|
|
|
|
struct list_bucket_s **tail;
|
2003-07-29 16:01:35 +00:00
|
|
|
}
|
|
|
|
- (id) init;
|
2011-03-25 07:46:32 +00:00
|
|
|
- (id) getItemAt: (int) index;
|
2003-07-29 16:01:35 +00:00
|
|
|
- (id) head;
|
|
|
|
- (id) tail;
|
|
|
|
- (void) addItemAtHead: (id) item;
|
|
|
|
- (void) addItemAtTail: (id) item;
|
2003-07-29 17:43:42 +00:00
|
|
|
- (id) removeItem: (id) item;
|
|
|
|
- (id) removeItemAtHead;
|
|
|
|
- (id) removeItemAtTail;
|
2011-03-25 07:46:32 +00:00
|
|
|
- (int) count;
|
2003-07-29 16:01:35 +00:00
|
|
|
-(void)makeObjectsPerformSelector:(SEL)selector;
|
|
|
|
-(void)makeObjectsPerformSelector:(SEL)selector withObject:(id)arg;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif//__ruamoko_List_h
|