mirror of
https://gitlab.com/klmp200/LO41.git
synced 2025-07-11 12:19:25 +00:00
Les lists font des trucs à peut près
J'ai rajouté le friendly aussi, comme ne C++
This commit is contained in:
17
List/List.h
17
List/List.h
@ -18,12 +18,21 @@ struct o_List {
|
||||
PRIVATE Element *tail;
|
||||
PRIVATE int size;
|
||||
|
||||
PUBLIC Element *(*get_head)(O_THIS(List));
|
||||
PUBLIC Element *(*get_tail)(O_THIS(List));
|
||||
PUBLIC int (*get_size)(O_THIS(List));
|
||||
PUBLIC void (*$_free_)(O_THIS(List));
|
||||
PUBLIC Element *(*get_head)(_THIS(List));
|
||||
PUBLIC Element *(*get_tail)(_THIS(List));
|
||||
PUBLIC int (*get_size)(_THIS(List));
|
||||
PUBLIC void (*clear)(_THIS(List));
|
||||
PUBLIC void (*remove_head)(_THIS(List));
|
||||
PUBLIC void (*remove_tail)(_THIS(List));
|
||||
|
||||
|
||||
DESTRUCTOR(List);
|
||||
};
|
||||
|
||||
FRIENDLY(head, Element)
|
||||
FRIENDLY(tail, Element)
|
||||
FRIENDLY(size, Element)
|
||||
|
||||
List *$_init_List();
|
||||
|
||||
#endif //LO41_LIST_H
|
||||
|
Reference in New Issue
Block a user