First NIT release and new clean mercurial repository
[nit.git] / c_src / abstract_collection._sep.h
1 #ifndef abstract_collection__sep
2 #define abstract_collection__sep
3 #include "kernel._sep.h"
4 #include <nit_common.h>
5
6 extern const classtable_elt_t VFT_Collection[];
7
8 extern const classtable_elt_t VFT_NaiveCollection[];
9
10 extern const classtable_elt_t VFT_Iterator[];
11
12 extern const classtable_elt_t VFT_Container[];
13
14 extern const classtable_elt_t VFT_ContainerIterator[];
15
16 extern const classtable_elt_t VFT_RemovableCollection[];
17
18 extern const classtable_elt_t VFT_SimpleCollection[];
19
20 extern const classtable_elt_t VFT_Set[];
21
22 extern const classtable_elt_t VFT_Map[];
23
24 extern const classtable_elt_t VFT_MapIterator[];
25
26 extern const classtable_elt_t VFT_IndexedCollection[];
27
28 extern const classtable_elt_t VFT_IndexedIterator[];
29
30 extern const classtable_elt_t VFT_CoupleMap[];
31
32 extern const classtable_elt_t VFT_CoupleMapIterator[];
33
34 extern const classtable_elt_t VFT_Couple[];
35 extern const int SFT_abstract_collection[];
36 #define ID_Collection SFT_abstract_collection[0]
37 #define COLOR_Collection SFT_abstract_collection[1]
38 #define INIT_TABLE_POS_Collection SFT_abstract_collection[2]
39 #define COLOR_abstract_collection___Collection___iterator SFT_abstract_collection[3]
40 #define COLOR_abstract_collection___Collection___is_empty SFT_abstract_collection[4]
41 #define COLOR_abstract_collection___Collection___length SFT_abstract_collection[5]
42 #define COLOR_abstract_collection___Collection___has SFT_abstract_collection[6]
43 #define COLOR_abstract_collection___Collection___has_only SFT_abstract_collection[7]
44 #define COLOR_abstract_collection___Collection___count SFT_abstract_collection[8]
45 #define COLOR_abstract_collection___Collection___first SFT_abstract_collection[9]
46 #define ID_NaiveCollection SFT_abstract_collection[10]
47 #define COLOR_NaiveCollection SFT_abstract_collection[11]
48 #define INIT_TABLE_POS_NaiveCollection SFT_abstract_collection[12]
49 #define ID_Iterator SFT_abstract_collection[13]
50 #define COLOR_Iterator SFT_abstract_collection[14]
51 #define INIT_TABLE_POS_Iterator SFT_abstract_collection[15]
52 #define COLOR_abstract_collection___Iterator___item SFT_abstract_collection[16]
53 #define COLOR_abstract_collection___Iterator___next SFT_abstract_collection[17]
54 #define COLOR_abstract_collection___Iterator___is_ok SFT_abstract_collection[18]
55 #define ID_Container SFT_abstract_collection[19]
56 #define COLOR_Container SFT_abstract_collection[20]
57 #define COLOR_abstract_collection___Container____item SFT_abstract_collection[21]
58 #define INIT_TABLE_POS_Container SFT_abstract_collection[22]
59 #define COLOR_abstract_collection___Container___init SFT_abstract_collection[23]
60 #define COLOR_abstract_collection___Container___item SFT_abstract_collection[24]
61 #define COLOR_abstract_collection___Container___item__eq SFT_abstract_collection[25]
62 #define ID_ContainerIterator SFT_abstract_collection[26]
63 #define COLOR_ContainerIterator SFT_abstract_collection[27]
64 #define COLOR_abstract_collection___ContainerIterator____is_ok SFT_abstract_collection[28]
65 #define COLOR_abstract_collection___ContainerIterator____container SFT_abstract_collection[29]
66 #define INIT_TABLE_POS_ContainerIterator SFT_abstract_collection[30]
67 #define COLOR_abstract_collection___ContainerIterator___init SFT_abstract_collection[31]
68 #define ID_RemovableCollection SFT_abstract_collection[32]
69 #define COLOR_RemovableCollection SFT_abstract_collection[33]
70 #define INIT_TABLE_POS_RemovableCollection SFT_abstract_collection[34]
71 #define COLOR_abstract_collection___RemovableCollection___clear SFT_abstract_collection[35]
72 #define COLOR_abstract_collection___RemovableCollection___remove SFT_abstract_collection[36]
73 #define COLOR_abstract_collection___RemovableCollection___remove_all SFT_abstract_collection[37]
74 #define ID_SimpleCollection SFT_abstract_collection[38]
75 #define COLOR_SimpleCollection SFT_abstract_collection[39]
76 #define INIT_TABLE_POS_SimpleCollection SFT_abstract_collection[40]
77 #define COLOR_abstract_collection___SimpleCollection___add SFT_abstract_collection[41]
78 #define COLOR_abstract_collection___SimpleCollection___add_all SFT_abstract_collection[42]
79 #define ID_Set SFT_abstract_collection[43]
80 #define COLOR_Set SFT_abstract_collection[44]
81 #define INIT_TABLE_POS_Set SFT_abstract_collection[45]
82 #define ID_Map SFT_abstract_collection[46]
83 #define COLOR_Map SFT_abstract_collection[47]
84 #define INIT_TABLE_POS_Map SFT_abstract_collection[48]
85 #define COLOR_abstract_collection___Map_____bra SFT_abstract_collection[49]
86 #define COLOR_abstract_collection___Map_____braeq SFT_abstract_collection[50]
87 #define COLOR_abstract_collection___Map___has_key SFT_abstract_collection[51]
88 #define COLOR_abstract_collection___Map___remove_at SFT_abstract_collection[52]
89 #define COLOR_abstract_collection___Map___recover_with SFT_abstract_collection[53]
90 #define ID_MapIterator SFT_abstract_collection[54]
91 #define COLOR_MapIterator SFT_abstract_collection[55]
92 #define INIT_TABLE_POS_MapIterator SFT_abstract_collection[56]
93 #define COLOR_abstract_collection___MapIterator___key SFT_abstract_collection[57]
94 #define COLOR_abstract_collection___MapIterator___item__eq SFT_abstract_collection[58]
95 #define ID_IndexedCollection SFT_abstract_collection[59]
96 #define COLOR_IndexedCollection SFT_abstract_collection[60]
97 #define INIT_TABLE_POS_IndexedCollection SFT_abstract_collection[61]
98 #define COLOR_abstract_collection___IndexedCollection___first__eq SFT_abstract_collection[62]
99 #define COLOR_abstract_collection___IndexedCollection___last SFT_abstract_collection[63]
100 #define COLOR_abstract_collection___IndexedCollection___last__eq SFT_abstract_collection[64]
101 #define COLOR_abstract_collection___IndexedCollection___push SFT_abstract_collection[65]
102 #define COLOR_abstract_collection___IndexedCollection___append SFT_abstract_collection[66]
103 #define COLOR_abstract_collection___IndexedCollection___pop SFT_abstract_collection[67]
104 #define COLOR_abstract_collection___IndexedCollection___unshift SFT_abstract_collection[68]
105 #define COLOR_abstract_collection___IndexedCollection___shift SFT_abstract_collection[69]
106 #define COLOR_abstract_collection___IndexedCollection___index_of SFT_abstract_collection[70]
107 #define ID_IndexedIterator SFT_abstract_collection[71]
108 #define COLOR_IndexedIterator SFT_abstract_collection[72]
109 #define INIT_TABLE_POS_IndexedIterator SFT_abstract_collection[73]
110 #define COLOR_abstract_collection___IndexedIterator___index SFT_abstract_collection[74]
111 #define ID_CoupleMap SFT_abstract_collection[75]
112 #define COLOR_CoupleMap SFT_abstract_collection[76]
113 #define INIT_TABLE_POS_CoupleMap SFT_abstract_collection[77]
114 #define COLOR_abstract_collection___CoupleMap___couple_at SFT_abstract_collection[78]
115 #define ID_CoupleMapIterator SFT_abstract_collection[79]
116 #define COLOR_CoupleMapIterator SFT_abstract_collection[80]
117 #define COLOR_abstract_collection___CoupleMapIterator____iter SFT_abstract_collection[81]
118 #define INIT_TABLE_POS_CoupleMapIterator SFT_abstract_collection[82]
119 #define COLOR_abstract_collection___CoupleMapIterator___init SFT_abstract_collection[83]
120 #define ID_Couple SFT_abstract_collection[84]
121 #define COLOR_Couple SFT_abstract_collection[85]
122 #define COLOR_abstract_collection___Couple____first SFT_abstract_collection[86]
123 #define COLOR_abstract_collection___Couple____second SFT_abstract_collection[87]
124 #define INIT_TABLE_POS_Couple SFT_abstract_collection[88]
125 #define COLOR_abstract_collection___Couple___first SFT_abstract_collection[89]
126 #define COLOR_abstract_collection___Couple___first__eq SFT_abstract_collection[90]
127 #define COLOR_abstract_collection___Couple___second SFT_abstract_collection[91]
128 #define COLOR_abstract_collection___Couple___second__eq SFT_abstract_collection[92]
129 #define COLOR_abstract_collection___Couple___init SFT_abstract_collection[93]
130 typedef val_t (* abstract_collection___Collection___iterator_t)(val_t self);
131 val_t abstract_collection___Collection___iterator(val_t self);
132 typedef val_t (* abstract_collection___Collection___is_empty_t)(val_t self);
133 val_t abstract_collection___Collection___is_empty(val_t self);
134 typedef val_t (* abstract_collection___Collection___length_t)(val_t self);
135 val_t abstract_collection___Collection___length(val_t self);
136 typedef val_t (* abstract_collection___Collection___has_t)(val_t self, val_t param0);
137 val_t abstract_collection___Collection___has(val_t self, val_t param0);
138 typedef val_t (* abstract_collection___Collection___has_only_t)(val_t self, val_t param0);
139 val_t abstract_collection___Collection___has_only(val_t self, val_t param0);
140 typedef val_t (* abstract_collection___Collection___count_t)(val_t self, val_t param0);
141 val_t abstract_collection___Collection___count(val_t self, val_t param0);
142 typedef val_t (* abstract_collection___Collection___first_t)(val_t self);
143 val_t abstract_collection___Collection___first(val_t self);
144 typedef val_t (* abstract_collection___NaiveCollection___is_empty_t)(val_t self);
145 val_t abstract_collection___NaiveCollection___is_empty(val_t self);
146 typedef val_t (* abstract_collection___NaiveCollection___length_t)(val_t self);
147 val_t abstract_collection___NaiveCollection___length(val_t self);
148 typedef val_t (* abstract_collection___NaiveCollection___has_t)(val_t self, val_t param0);
149 val_t abstract_collection___NaiveCollection___has(val_t self, val_t param0);
150 typedef val_t (* abstract_collection___NaiveCollection___has_only_t)(val_t self, val_t param0);
151 val_t abstract_collection___NaiveCollection___has_only(val_t self, val_t param0);
152 typedef val_t (* abstract_collection___NaiveCollection___count_t)(val_t self, val_t param0);
153 val_t abstract_collection___NaiveCollection___count(val_t self, val_t param0);
154 typedef val_t (* abstract_collection___NaiveCollection___first_t)(val_t self);
155 val_t abstract_collection___NaiveCollection___first(val_t self);
156 typedef val_t (* abstract_collection___Iterator___item_t)(val_t self);
157 val_t abstract_collection___Iterator___item(val_t self);
158 typedef void (* abstract_collection___Iterator___next_t)(val_t self);
159 void abstract_collection___Iterator___next(val_t self);
160 typedef val_t (* abstract_collection___Iterator___is_ok_t)(val_t self);
161 val_t abstract_collection___Iterator___is_ok(val_t self);
162 typedef val_t (* abstract_collection___Container___first_t)(val_t self);
163 val_t abstract_collection___Container___first(val_t self);
164 typedef val_t (* abstract_collection___Container___is_empty_t)(val_t self);
165 val_t abstract_collection___Container___is_empty(val_t self);
166 typedef val_t (* abstract_collection___Container___length_t)(val_t self);
167 val_t abstract_collection___Container___length(val_t self);
168 typedef val_t (* abstract_collection___Container___has_t)(val_t self, val_t param0);
169 val_t abstract_collection___Container___has(val_t self, val_t param0);
170 typedef val_t (* abstract_collection___Container___has_only_t)(val_t self, val_t param0);
171 val_t abstract_collection___Container___has_only(val_t self, val_t param0);
172 typedef val_t (* abstract_collection___Container___count_t)(val_t self, val_t param0);
173 val_t abstract_collection___Container___count(val_t self, val_t param0);
174 typedef val_t (* abstract_collection___Container___iterator_t)(val_t self);
175 val_t abstract_collection___Container___iterator(val_t self);
176 typedef void (* abstract_collection___Container___init_t)(val_t self, val_t param0, int* init_table);
177 void abstract_collection___Container___init(val_t self, val_t param0, int* init_table);
178 val_t NEW_abstract_collection___Container___init(val_t param0);
179 #define ATTR_abstract_collection___Container____item(recv) ATTR(recv, COLOR_abstract_collection___Container____item)
180 typedef val_t (* abstract_collection___Container___item_t)(val_t self);
181 val_t abstract_collection___Container___item(val_t self);
182 typedef void (* abstract_collection___Container___item__eq_t)(val_t self, val_t param0);
183 void abstract_collection___Container___item__eq(val_t self, val_t param0);
184 typedef val_t (* abstract_collection___ContainerIterator___item_t)(val_t self);
185 val_t abstract_collection___ContainerIterator___item(val_t self);
186 typedef void (* abstract_collection___ContainerIterator___next_t)(val_t self);
187 void abstract_collection___ContainerIterator___next(val_t self);
188 typedef void (* abstract_collection___ContainerIterator___init_t)(val_t self, val_t param0, int* init_table);
189 void abstract_collection___ContainerIterator___init(val_t self, val_t param0, int* init_table);
190 val_t NEW_abstract_collection___ContainerIterator___init(val_t param0);
191 #define ATTR_abstract_collection___ContainerIterator____is_ok(recv) ATTR(recv, COLOR_abstract_collection___ContainerIterator____is_ok)
192 typedef val_t (* abstract_collection___ContainerIterator___is_ok_t)(val_t self);
193 val_t abstract_collection___ContainerIterator___is_ok(val_t self);
194 #define ATTR_abstract_collection___ContainerIterator____container(recv) ATTR(recv, COLOR_abstract_collection___ContainerIterator____container)
195 typedef void (* abstract_collection___RemovableCollection___clear_t)(val_t self);
196 void abstract_collection___RemovableCollection___clear(val_t self);
197 typedef void (* abstract_collection___RemovableCollection___remove_t)(val_t self, val_t param0);
198 void abstract_collection___RemovableCollection___remove(val_t self, val_t param0);
199 typedef void (* abstract_collection___RemovableCollection___remove_all_t)(val_t self, val_t param0);
200 void abstract_collection___RemovableCollection___remove_all(val_t self, val_t param0);
201 typedef void (* abstract_collection___SimpleCollection___add_t)(val_t self, val_t param0);
202 void abstract_collection___SimpleCollection___add(val_t self, val_t param0);
203 typedef void (* abstract_collection___SimpleCollection___add_all_t)(val_t self, val_t param0);
204 void abstract_collection___SimpleCollection___add_all(val_t self, val_t param0);
205 typedef val_t (* abstract_collection___Set___has_only_t)(val_t self, val_t param0);
206 val_t abstract_collection___Set___has_only(val_t self, val_t param0);
207 typedef val_t (* abstract_collection___Set___count_t)(val_t self, val_t param0);
208 val_t abstract_collection___Set___count(val_t self, val_t param0);
209 typedef void (* abstract_collection___Set___remove_all_t)(val_t self, val_t param0);
210 void abstract_collection___Set___remove_all(val_t self, val_t param0);
211 typedef val_t (* abstract_collection___Map_____bra_t)(val_t self, val_t param0);
212 val_t abstract_collection___Map_____bra(val_t self, val_t param0);
213 typedef void (* abstract_collection___Map_____braeq_t)(val_t self, val_t param0, val_t param1);
214 void abstract_collection___Map_____braeq(val_t self, val_t param0, val_t param1);
215 typedef val_t (* abstract_collection___Map___has_key_t)(val_t self, val_t param0);
216 val_t abstract_collection___Map___has_key(val_t self, val_t param0);
217 typedef void (* abstract_collection___Map___remove_at_t)(val_t self, val_t param0);
218 void abstract_collection___Map___remove_at(val_t self, val_t param0);
219 typedef void (* abstract_collection___Map___recover_with_t)(val_t self, val_t param0);
220 void abstract_collection___Map___recover_with(val_t self, val_t param0);
221 typedef val_t (* abstract_collection___Map___iterator_t)(val_t self);
222 val_t abstract_collection___Map___iterator(val_t self);
223 typedef val_t (* abstract_collection___MapIterator___key_t)(val_t self);
224 val_t abstract_collection___MapIterator___key(val_t self);
225 typedef void (* abstract_collection___MapIterator___item__eq_t)(val_t self, val_t param0);
226 void abstract_collection___MapIterator___item__eq(val_t self, val_t param0);
227 typedef val_t (* abstract_collection___IndexedCollection___first_t)(val_t self);
228 val_t abstract_collection___IndexedCollection___first(val_t self);
229 typedef void (* abstract_collection___IndexedCollection___first__eq_t)(val_t self, val_t param0);
230 void abstract_collection___IndexedCollection___first__eq(val_t self, val_t param0);
231 typedef val_t (* abstract_collection___IndexedCollection___last_t)(val_t self);
232 val_t abstract_collection___IndexedCollection___last(val_t self);
233 typedef void (* abstract_collection___IndexedCollection___last__eq_t)(val_t self, val_t param0);
234 void abstract_collection___IndexedCollection___last__eq(val_t self, val_t param0);
235 typedef void (* abstract_collection___IndexedCollection___add_t)(val_t self, val_t param0);
236 void abstract_collection___IndexedCollection___add(val_t self, val_t param0);
237 typedef void (* abstract_collection___IndexedCollection___push_t)(val_t self, val_t param0);
238 void abstract_collection___IndexedCollection___push(val_t self, val_t param0);
239 typedef void (* abstract_collection___IndexedCollection___append_t)(val_t self, val_t param0);
240 void abstract_collection___IndexedCollection___append(val_t self, val_t param0);
241 typedef val_t (* abstract_collection___IndexedCollection___pop_t)(val_t self);
242 val_t abstract_collection___IndexedCollection___pop(val_t self);
243 typedef void (* abstract_collection___IndexedCollection___unshift_t)(val_t self, val_t param0);
244 void abstract_collection___IndexedCollection___unshift(val_t self, val_t param0);
245 typedef val_t (* abstract_collection___IndexedCollection___shift_t)(val_t self);
246 val_t abstract_collection___IndexedCollection___shift(val_t self);
247 typedef val_t (* abstract_collection___IndexedCollection___index_of_t)(val_t self, val_t param0);
248 val_t abstract_collection___IndexedCollection___index_of(val_t self, val_t param0);
249 typedef val_t (* abstract_collection___IndexedCollection___iterator_t)(val_t self);
250 val_t abstract_collection___IndexedCollection___iterator(val_t self);
251 typedef val_t (* abstract_collection___IndexedIterator___index_t)(val_t self);
252 val_t abstract_collection___IndexedIterator___index(val_t self);
253 typedef val_t (* abstract_collection___IndexedIterator___key_t)(val_t self);
254 val_t abstract_collection___IndexedIterator___key(val_t self);
255 typedef val_t (* abstract_collection___CoupleMap___couple_at_t)(val_t self, val_t param0);
256 val_t abstract_collection___CoupleMap___couple_at(val_t self, val_t param0);
257 typedef val_t (* abstract_collection___CoupleMap_____bra_t)(val_t self, val_t param0);
258 val_t abstract_collection___CoupleMap_____bra(val_t self, val_t param0);
259 typedef val_t (* abstract_collection___CoupleMap___has_key_t)(val_t self, val_t param0);
260 val_t abstract_collection___CoupleMap___has_key(val_t self, val_t param0);
261 typedef val_t (* abstract_collection___CoupleMapIterator___item_t)(val_t self);
262 val_t abstract_collection___CoupleMapIterator___item(val_t self);
263 typedef void (* abstract_collection___CoupleMapIterator___item__eq_t)(val_t self, val_t param0);
264 void abstract_collection___CoupleMapIterator___item__eq(val_t self, val_t param0);
265 typedef val_t (* abstract_collection___CoupleMapIterator___key_t)(val_t self);
266 val_t abstract_collection___CoupleMapIterator___key(val_t self);
267 typedef val_t (* abstract_collection___CoupleMapIterator___is_ok_t)(val_t self);
268 val_t abstract_collection___CoupleMapIterator___is_ok(val_t self);
269 typedef void (* abstract_collection___CoupleMapIterator___next_t)(val_t self);
270 void abstract_collection___CoupleMapIterator___next(val_t self);
271 #define ATTR_abstract_collection___CoupleMapIterator____iter(recv) ATTR(recv, COLOR_abstract_collection___CoupleMapIterator____iter)
272 typedef void (* abstract_collection___CoupleMapIterator___init_t)(val_t self, val_t param0, int* init_table);
273 void abstract_collection___CoupleMapIterator___init(val_t self, val_t param0, int* init_table);
274 val_t NEW_abstract_collection___CoupleMapIterator___init(val_t param0);
275 #define ATTR_abstract_collection___Couple____first(recv) ATTR(recv, COLOR_abstract_collection___Couple____first)
276 typedef val_t (* abstract_collection___Couple___first_t)(val_t self);
277 val_t abstract_collection___Couple___first(val_t self);
278 typedef void (* abstract_collection___Couple___first__eq_t)(val_t self, val_t param0);
279 void abstract_collection___Couple___first__eq(val_t self, val_t param0);
280 #define ATTR_abstract_collection___Couple____second(recv) ATTR(recv, COLOR_abstract_collection___Couple____second)
281 typedef val_t (* abstract_collection___Couple___second_t)(val_t self);
282 val_t abstract_collection___Couple___second(val_t self);
283 typedef void (* abstract_collection___Couple___second__eq_t)(val_t self, val_t param0);
284 void abstract_collection___Couple___second__eq(val_t self, val_t param0);
285 typedef void (* abstract_collection___Couple___init_t)(val_t self, val_t param0, val_t param1, int* init_table);
286 void abstract_collection___Couple___init(val_t self, val_t param0, val_t param1, int* init_table);
287 val_t NEW_abstract_collection___Couple___init(val_t param0, val_t param1);
288 #endif