00001
00014 #ifndef CLIST_H_INCLUDED
00015 #define CLIST_H_INCLUDED
00016
00017 #include <Coconut/coconut-sysdep.h>
00018
00024 @interface CList : NSObject
00025 {
00027 id current_obj ;
00029 CList * list_next ;
00031 CList * list_prev ;
00032 }
00033
00048 + (CList *) appendObject: (id) obj after: (CList *) list ;
00049
00062 + (void) link: (CList *) src1 after: (CList *) src2 ;
00063
00073 - initList: (id) obj ;
00074
00080 - (void) dealloc ;
00081
00087 - setNextNode: (CList *) node ;
00088
00094 - setPrevNode: (CList *) node ;
00095
00101 - (id) obj ;
00102
00110 - set: (id) obj ;
00111
00118 - (uint_t) num ;
00119
00127 - (CList *) next ;
00128
00136 - (CList *) prev ;
00137
00145 - (CList *) first ;
00146
00154 - (CList *) last ;
00155
00163 - (CList *) addObject: (id) obj ;
00164
00172 - (CList *) insertObject: (id) obj ;
00173
00181 - (CList *) appendObject: (id) obj ;
00182
00190 - (CList *) prependObject: (id) obj ;
00191
00192 @end
00193
00194 #endif
00195