Update Changelog
[profile/ivi/libgee.git] / gee / readonlybidirlist.c
1 /* readonlybidirlist.c generated by valac 0.18.0, the Vala compiler
2  * generated from readonlybidirlist.vala, do not modify */
3
4 /* readonlybidirlist.vala
5  *
6  * Copyright (C) 2011  Maciej Piechotka
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
21  *
22  * Author:
23  *      Maciej Piechotka <uzytkownik2@gmail.com>
24  */
25
26 #include <glib.h>
27 #include <glib-object.h>
28
29
30 #define GEE_TYPE_TRAVERSABLE (gee_traversable_get_type ())
31 #define GEE_TRAVERSABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_TRAVERSABLE, GeeTraversable))
32 #define GEE_IS_TRAVERSABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_TRAVERSABLE))
33 #define GEE_TRAVERSABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_TRAVERSABLE, GeeTraversableIface))
34
35 typedef struct _GeeTraversable GeeTraversable;
36 typedef struct _GeeTraversableIface GeeTraversableIface;
37
38 #define GEE_TRAVERSABLE_TYPE_STREAM (gee_traversable_stream_get_type ())
39
40 #define GEE_TYPE_LAZY (gee_lazy_get_type ())
41 #define GEE_LAZY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_LAZY, GeeLazy))
42 #define GEE_LAZY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_LAZY, GeeLazyClass))
43 #define GEE_IS_LAZY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_LAZY))
44 #define GEE_IS_LAZY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_LAZY))
45 #define GEE_LAZY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_LAZY, GeeLazyClass))
46
47 typedef struct _GeeLazy GeeLazy;
48 typedef struct _GeeLazyClass GeeLazyClass;
49
50 #define GEE_TYPE_ITERATOR (gee_iterator_get_type ())
51 #define GEE_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_ITERATOR, GeeIterator))
52 #define GEE_IS_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_ITERATOR))
53 #define GEE_ITERATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_ITERATOR, GeeIteratorIface))
54
55 typedef struct _GeeIterator GeeIterator;
56 typedef struct _GeeIteratorIface GeeIteratorIface;
57
58 #define GEE_TYPE_ITERABLE (gee_iterable_get_type ())
59 #define GEE_ITERABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_ITERABLE, GeeIterable))
60 #define GEE_IS_ITERABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_ITERABLE))
61 #define GEE_ITERABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_ITERABLE, GeeIterableIface))
62
63 typedef struct _GeeIterable GeeIterable;
64 typedef struct _GeeIterableIface GeeIterableIface;
65
66 #define GEE_TYPE_COLLECTION (gee_collection_get_type ())
67 #define GEE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_COLLECTION, GeeCollection))
68 #define GEE_IS_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_COLLECTION))
69 #define GEE_COLLECTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_COLLECTION, GeeCollectionIface))
70
71 typedef struct _GeeCollection GeeCollection;
72 typedef struct _GeeCollectionIface GeeCollectionIface;
73
74 #define GEE_TYPE_READ_ONLY_COLLECTION (gee_read_only_collection_get_type ())
75 #define GEE_READ_ONLY_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_READ_ONLY_COLLECTION, GeeReadOnlyCollection))
76 #define GEE_READ_ONLY_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_READ_ONLY_COLLECTION, GeeReadOnlyCollectionClass))
77 #define GEE_IS_READ_ONLY_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_READ_ONLY_COLLECTION))
78 #define GEE_IS_READ_ONLY_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_READ_ONLY_COLLECTION))
79 #define GEE_READ_ONLY_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_READ_ONLY_COLLECTION, GeeReadOnlyCollectionClass))
80
81 typedef struct _GeeReadOnlyCollection GeeReadOnlyCollection;
82 typedef struct _GeeReadOnlyCollectionClass GeeReadOnlyCollectionClass;
83 typedef struct _GeeReadOnlyCollectionPrivate GeeReadOnlyCollectionPrivate;
84
85 #define GEE_TYPE_LIST (gee_list_get_type ())
86 #define GEE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_LIST, GeeList))
87 #define GEE_IS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_LIST))
88 #define GEE_LIST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_LIST, GeeListIface))
89
90 typedef struct _GeeList GeeList;
91 typedef struct _GeeListIface GeeListIface;
92
93 #define GEE_TYPE_LIST_ITERATOR (gee_list_iterator_get_type ())
94 #define GEE_LIST_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_LIST_ITERATOR, GeeListIterator))
95 #define GEE_IS_LIST_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_LIST_ITERATOR))
96 #define GEE_LIST_ITERATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_LIST_ITERATOR, GeeListIteratorIface))
97
98 typedef struct _GeeListIterator GeeListIterator;
99 typedef struct _GeeListIteratorIface GeeListIteratorIface;
100
101 #define GEE_TYPE_READ_ONLY_LIST (gee_read_only_list_get_type ())
102 #define GEE_READ_ONLY_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_READ_ONLY_LIST, GeeReadOnlyList))
103 #define GEE_READ_ONLY_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_READ_ONLY_LIST, GeeReadOnlyListClass))
104 #define GEE_IS_READ_ONLY_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_READ_ONLY_LIST))
105 #define GEE_IS_READ_ONLY_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_READ_ONLY_LIST))
106 #define GEE_READ_ONLY_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_READ_ONLY_LIST, GeeReadOnlyListClass))
107
108 typedef struct _GeeReadOnlyList GeeReadOnlyList;
109 typedef struct _GeeReadOnlyListClass GeeReadOnlyListClass;
110 typedef struct _GeeReadOnlyListPrivate GeeReadOnlyListPrivate;
111
112 #define GEE_TYPE_BIDIR_LIST (gee_bidir_list_get_type ())
113 #define GEE_BIDIR_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_BIDIR_LIST, GeeBidirList))
114 #define GEE_IS_BIDIR_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_BIDIR_LIST))
115 #define GEE_BIDIR_LIST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_BIDIR_LIST, GeeBidirListIface))
116
117 typedef struct _GeeBidirList GeeBidirList;
118 typedef struct _GeeBidirListIface GeeBidirListIface;
119
120 #define GEE_TYPE_BIDIR_ITERATOR (gee_bidir_iterator_get_type ())
121 #define GEE_BIDIR_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_BIDIR_ITERATOR, GeeBidirIterator))
122 #define GEE_IS_BIDIR_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_BIDIR_ITERATOR))
123 #define GEE_BIDIR_ITERATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_BIDIR_ITERATOR, GeeBidirIteratorIface))
124
125 typedef struct _GeeBidirIterator GeeBidirIterator;
126 typedef struct _GeeBidirIteratorIface GeeBidirIteratorIface;
127
128 #define GEE_TYPE_BIDIR_LIST_ITERATOR (gee_bidir_list_iterator_get_type ())
129 #define GEE_BIDIR_LIST_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_BIDIR_LIST_ITERATOR, GeeBidirListIterator))
130 #define GEE_IS_BIDIR_LIST_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_BIDIR_LIST_ITERATOR))
131 #define GEE_BIDIR_LIST_ITERATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_BIDIR_LIST_ITERATOR, GeeBidirListIteratorIface))
132
133 typedef struct _GeeBidirListIterator GeeBidirListIterator;
134 typedef struct _GeeBidirListIteratorIface GeeBidirListIteratorIface;
135
136 #define GEE_TYPE_READ_ONLY_BIDIR_LIST (gee_read_only_bidir_list_get_type ())
137 #define GEE_READ_ONLY_BIDIR_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_READ_ONLY_BIDIR_LIST, GeeReadOnlyBidirList))
138 #define GEE_READ_ONLY_BIDIR_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_READ_ONLY_BIDIR_LIST, GeeReadOnlyBidirListClass))
139 #define GEE_IS_READ_ONLY_BIDIR_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_READ_ONLY_BIDIR_LIST))
140 #define GEE_IS_READ_ONLY_BIDIR_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_READ_ONLY_BIDIR_LIST))
141 #define GEE_READ_ONLY_BIDIR_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_READ_ONLY_BIDIR_LIST, GeeReadOnlyBidirListClass))
142
143 typedef struct _GeeReadOnlyBidirList GeeReadOnlyBidirList;
144 typedef struct _GeeReadOnlyBidirListClass GeeReadOnlyBidirListClass;
145 typedef struct _GeeReadOnlyBidirListPrivate GeeReadOnlyBidirListPrivate;
146
147 #define GEE_READ_ONLY_COLLECTION_TYPE_ITERATOR (gee_read_only_collection_iterator_get_type ())
148 #define GEE_READ_ONLY_COLLECTION_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_READ_ONLY_COLLECTION_TYPE_ITERATOR, GeeReadOnlyCollectionIterator))
149 #define GEE_READ_ONLY_COLLECTION_ITERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_READ_ONLY_COLLECTION_TYPE_ITERATOR, GeeReadOnlyCollectionIteratorClass))
150 #define GEE_READ_ONLY_COLLECTION_IS_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_READ_ONLY_COLLECTION_TYPE_ITERATOR))
151 #define GEE_READ_ONLY_COLLECTION_IS_ITERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_READ_ONLY_COLLECTION_TYPE_ITERATOR))
152 #define GEE_READ_ONLY_COLLECTION_ITERATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_READ_ONLY_COLLECTION_TYPE_ITERATOR, GeeReadOnlyCollectionIteratorClass))
153
154 typedef struct _GeeReadOnlyCollectionIterator GeeReadOnlyCollectionIterator;
155 typedef struct _GeeReadOnlyCollectionIteratorClass GeeReadOnlyCollectionIteratorClass;
156
157 #define GEE_READ_ONLY_LIST_TYPE_ITERATOR (gee_read_only_list_iterator_get_type ())
158 #define GEE_READ_ONLY_LIST_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_READ_ONLY_LIST_TYPE_ITERATOR, GeeReadOnlyListIterator))
159 #define GEE_READ_ONLY_LIST_ITERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_READ_ONLY_LIST_TYPE_ITERATOR, GeeReadOnlyListIteratorClass))
160 #define GEE_READ_ONLY_LIST_IS_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_READ_ONLY_LIST_TYPE_ITERATOR))
161 #define GEE_READ_ONLY_LIST_IS_ITERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_READ_ONLY_LIST_TYPE_ITERATOR))
162 #define GEE_READ_ONLY_LIST_ITERATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_READ_ONLY_LIST_TYPE_ITERATOR, GeeReadOnlyListIteratorClass))
163
164 typedef struct _GeeReadOnlyListIterator GeeReadOnlyListIterator;
165 typedef struct _GeeReadOnlyListIteratorClass GeeReadOnlyListIteratorClass;
166
167 #define GEE_READ_ONLY_BIDIR_LIST_TYPE_ITERATOR (gee_read_only_bidir_list_iterator_get_type ())
168 #define GEE_READ_ONLY_BIDIR_LIST_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_READ_ONLY_BIDIR_LIST_TYPE_ITERATOR, GeeReadOnlyBidirListIterator))
169 #define GEE_READ_ONLY_BIDIR_LIST_ITERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_READ_ONLY_BIDIR_LIST_TYPE_ITERATOR, GeeReadOnlyBidirListIteratorClass))
170 #define GEE_READ_ONLY_BIDIR_LIST_IS_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_READ_ONLY_BIDIR_LIST_TYPE_ITERATOR))
171 #define GEE_READ_ONLY_BIDIR_LIST_IS_ITERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_READ_ONLY_BIDIR_LIST_TYPE_ITERATOR))
172 #define GEE_READ_ONLY_BIDIR_LIST_ITERATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_READ_ONLY_BIDIR_LIST_TYPE_ITERATOR, GeeReadOnlyBidirListIteratorClass))
173
174 typedef struct _GeeReadOnlyBidirListIterator GeeReadOnlyBidirListIterator;
175 typedef struct _GeeReadOnlyBidirListIteratorClass GeeReadOnlyBidirListIteratorClass;
176 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
177 typedef struct _GeeReadOnlyCollectionIteratorPrivate GeeReadOnlyCollectionIteratorPrivate;
178 typedef struct _GeeReadOnlyListIteratorPrivate GeeReadOnlyListIteratorPrivate;
179 typedef struct _GeeReadOnlyBidirListIteratorPrivate GeeReadOnlyBidirListIteratorPrivate;
180
181 typedef gboolean (*GeeForallFunc) (gpointer g, void* user_data);
182 typedef enum  {
183         GEE_TRAVERSABLE_STREAM_YIELD,
184         GEE_TRAVERSABLE_STREAM_CONTINUE,
185         GEE_TRAVERSABLE_STREAM_END
186 } GeeTraversableStream;
187
188 typedef GeeTraversableStream (*GeeStreamFunc) (GeeTraversableStream state, GeeLazy* g, GeeLazy** lazy, void* user_data);
189 struct _GeeIteratorIface {
190         GTypeInterface parent_iface;
191         gboolean (*next) (GeeIterator* self);
192         gboolean (*has_next) (GeeIterator* self);
193         gpointer (*get) (GeeIterator* self);
194         void (*remove) (GeeIterator* self);
195         gboolean (*get_valid) (GeeIterator* self);
196         gboolean (*get_read_only) (GeeIterator* self);
197 };
198
199 typedef gpointer (*GeeFoldFunc) (gpointer g, gpointer a, void* user_data);
200 typedef gpointer (*GeeMapFunc) (gpointer g, void* user_data);
201 typedef gboolean (*GeePredicate) (gconstpointer g, void* user_data);
202 struct _GeeTraversableIface {
203         GTypeInterface parent_iface;
204         GType (*get_g_type) (GeeTraversable* self);
205         GBoxedCopyFunc (*get_g_dup_func) (GeeTraversable* self);
206         GDestroyNotify (*get_g_destroy_func) (GeeTraversable* self);
207         gboolean (*foreach) (GeeTraversable* self, GeeForallFunc f, void* f_target);
208         GeeIterator* (*stream) (GeeTraversable* self, GType a_type, GBoxedCopyFunc a_dup_func, GDestroyNotify a_destroy_func, GeeStreamFunc f, void* f_target, GDestroyNotify f_target_destroy_notify);
209         gpointer (*fold) (GeeTraversable* self, GType a_type, GBoxedCopyFunc a_dup_func, GDestroyNotify a_destroy_func, GeeFoldFunc f, void* f_target, gpointer seed);
210         GeeIterator* (*map) (GeeTraversable* self, GType a_type, GBoxedCopyFunc a_dup_func, GDestroyNotify a_destroy_func, GeeMapFunc f, void* f_target);
211         GeeIterator* (*scan) (GeeTraversable* self, GType a_type, GBoxedCopyFunc a_dup_func, GDestroyNotify a_destroy_func, GeeFoldFunc f, void* f_target, gpointer seed);
212         GeeIterator* (*filter) (GeeTraversable* self, GeePredicate pred, void* pred_target, GDestroyNotify pred_target_destroy_notify);
213         GeeIterator* (*chop) (GeeTraversable* self, gint offset, gint length);
214         GType (*get_element_type) (GeeTraversable* self);
215 };
216
217 struct _GeeIterableIface {
218         GTypeInterface parent_iface;
219         GType (*get_g_type) (GeeIterable* self);
220         GBoxedCopyFunc (*get_g_dup_func) (GeeIterable* self);
221         GDestroyNotify (*get_g_destroy_func) (GeeIterable* self);
222         GeeIterator* (*iterator) (GeeIterable* self);
223 };
224
225 struct _GeeCollectionIface {
226         GTypeInterface parent_iface;
227         GType (*get_g_type) (GeeCollection* self);
228         GBoxedCopyFunc (*get_g_dup_func) (GeeCollection* self);
229         GDestroyNotify (*get_g_destroy_func) (GeeCollection* self);
230         gboolean (*contains) (GeeCollection* self, gconstpointer item);
231         gboolean (*add) (GeeCollection* self, gconstpointer item);
232         gboolean (*remove) (GeeCollection* self, gconstpointer item);
233         void (*clear) (GeeCollection* self);
234         gboolean (*add_all) (GeeCollection* self, GeeCollection* collection);
235         gboolean (*contains_all) (GeeCollection* self, GeeCollection* collection);
236         gboolean (*remove_all) (GeeCollection* self, GeeCollection* collection);
237         gboolean (*retain_all) (GeeCollection* self, GeeCollection* collection);
238         gpointer* (*to_array) (GeeCollection* self, int* result_length1);
239         gint (*get_size) (GeeCollection* self);
240         gboolean (*get_is_empty) (GeeCollection* self);
241         gboolean (*get_read_only) (GeeCollection* self);
242         GeeCollection* (*get_read_only_view) (GeeCollection* self);
243 };
244
245 struct _GeeReadOnlyCollection {
246         GObject parent_instance;
247         GeeReadOnlyCollectionPrivate * priv;
248         GeeCollection* _collection;
249 };
250
251 struct _GeeReadOnlyCollectionClass {
252         GObjectClass parent_class;
253         GeeCollection* (*get_read_only_view) (GeeReadOnlyCollection* self);
254 };
255
256 struct _GeeListIteratorIface {
257         GTypeInterface parent_iface;
258         void (*set) (GeeListIterator* self, gconstpointer item);
259         void (*add) (GeeListIterator* self, gconstpointer item);
260         gint (*index) (GeeListIterator* self);
261 };
262
263 struct _GeeListIface {
264         GTypeInterface parent_iface;
265         GType (*get_g_type) (GeeList* self);
266         GBoxedCopyFunc (*get_g_dup_func) (GeeList* self);
267         GDestroyNotify (*get_g_destroy_func) (GeeList* self);
268         GeeListIterator* (*list_iterator) (GeeList* self);
269         gpointer (*get) (GeeList* self, gint index);
270         void (*set) (GeeList* self, gint index, gconstpointer item);
271         gint (*index_of) (GeeList* self, gconstpointer item);
272         void (*insert) (GeeList* self, gint index, gconstpointer item);
273         gpointer (*remove_at) (GeeList* self, gint index);
274         GeeList* (*slice) (GeeList* self, gint start, gint stop);
275         gpointer (*first) (GeeList* self);
276         gpointer (*last) (GeeList* self);
277         void (*insert_all) (GeeList* self, gint index, GeeCollection* collection);
278         void (*sort) (GeeList* self, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify);
279         GeeList* (*get_read_only_view) (GeeList* self);
280 };
281
282 struct _GeeReadOnlyList {
283         GeeReadOnlyCollection parent_instance;
284         GeeReadOnlyListPrivate * priv;
285 };
286
287 struct _GeeReadOnlyListClass {
288         GeeReadOnlyCollectionClass parent_class;
289         GeeList* (*get_read_only_view) (GeeReadOnlyList* self);
290 };
291
292 struct _GeeBidirIteratorIface {
293         GTypeInterface parent_iface;
294         GType (*get_g_type) (GeeBidirIterator* self);
295         GBoxedCopyFunc (*get_g_dup_func) (GeeBidirIterator* self);
296         GDestroyNotify (*get_g_destroy_func) (GeeBidirIterator* self);
297         gboolean (*previous) (GeeBidirIterator* self);
298         gboolean (*has_previous) (GeeBidirIterator* self);
299         gboolean (*first) (GeeBidirIterator* self);
300         gboolean (*last) (GeeBidirIterator* self);
301 };
302
303 struct _GeeBidirListIteratorIface {
304         GTypeInterface parent_iface;
305         GType (*get_g_type) (GeeBidirListIterator* self);
306         GBoxedCopyFunc (*get_g_dup_func) (GeeBidirListIterator* self);
307         GDestroyNotify (*get_g_destroy_func) (GeeBidirListIterator* self);
308         void (*insert) (GeeBidirListIterator* self, gconstpointer item);
309 };
310
311 struct _GeeBidirListIface {
312         GTypeInterface parent_iface;
313         GType (*get_g_type) (GeeBidirList* self);
314         GBoxedCopyFunc (*get_g_dup_func) (GeeBidirList* self);
315         GDestroyNotify (*get_g_destroy_func) (GeeBidirList* self);
316         GeeBidirListIterator* (*bidir_list_iterator) (GeeBidirList* self);
317         GeeBidirList* (*get_read_only_view) (GeeBidirList* self);
318 };
319
320 struct _GeeReadOnlyBidirList {
321         GeeReadOnlyList parent_instance;
322         GeeReadOnlyBidirListPrivate * priv;
323 };
324
325 struct _GeeReadOnlyBidirListClass {
326         GeeReadOnlyListClass parent_class;
327         GeeBidirList* (*get_read_only_view) (GeeReadOnlyBidirList* self);
328 };
329
330 struct _GeeReadOnlyBidirListPrivate {
331         GType g_type;
332         GBoxedCopyFunc g_dup_func;
333         GDestroyNotify g_destroy_func;
334 };
335
336 struct _GeeReadOnlyCollectionIterator {
337         GObject parent_instance;
338         GeeReadOnlyCollectionIteratorPrivate * priv;
339         GeeIterator* _iter;
340 };
341
342 struct _GeeReadOnlyCollectionIteratorClass {
343         GObjectClass parent_class;
344 };
345
346 struct _GeeReadOnlyListIterator {
347         GeeReadOnlyCollectionIterator parent_instance;
348         GeeReadOnlyListIteratorPrivate * priv;
349 };
350
351 struct _GeeReadOnlyListIteratorClass {
352         GeeReadOnlyCollectionIteratorClass parent_class;
353 };
354
355 struct _GeeReadOnlyBidirListIterator {
356         GeeReadOnlyListIterator parent_instance;
357         GeeReadOnlyBidirListIteratorPrivate * priv;
358 };
359
360 struct _GeeReadOnlyBidirListIteratorClass {
361         GeeReadOnlyListIteratorClass parent_class;
362 };
363
364 struct _GeeReadOnlyBidirListIteratorPrivate {
365         GType g_type;
366         GBoxedCopyFunc g_dup_func;
367         GDestroyNotify g_destroy_func;
368 };
369
370
371 static gpointer gee_read_only_bidir_list_parent_class = NULL;
372 static gpointer gee_read_only_bidir_list_iterator_parent_class = NULL;
373 static GeeBidirIteratorIface* gee_read_only_bidir_list_iterator_gee_bidir_iterator_parent_iface = NULL;
374 static GeeBidirListIteratorIface* gee_read_only_bidir_list_iterator_gee_bidir_list_iterator_parent_iface = NULL;
375 static GeeBidirListIface* gee_read_only_bidir_list_gee_bidir_list_parent_iface = NULL;
376
377 GType gee_traversable_stream_get_type (void) G_GNUC_CONST;
378 gpointer gee_lazy_ref (gpointer instance);
379 void gee_lazy_unref (gpointer instance);
380 GParamSpec* gee_param_spec_lazy (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
381 void gee_value_set_lazy (GValue* value, gpointer v_object);
382 void gee_value_take_lazy (GValue* value, gpointer v_object);
383 gpointer gee_value_get_lazy (const GValue* value);
384 GType gee_lazy_get_type (void) G_GNUC_CONST;
385 GType gee_iterator_get_type (void) G_GNUC_CONST;
386 GType gee_traversable_get_type (void) G_GNUC_CONST;
387 GType gee_iterable_get_type (void) G_GNUC_CONST;
388 GType gee_collection_get_type (void) G_GNUC_CONST;
389 GType gee_read_only_collection_get_type (void) G_GNUC_CONST;
390 GType gee_list_iterator_get_type (void) G_GNUC_CONST;
391 GType gee_list_get_type (void) G_GNUC_CONST;
392 GType gee_read_only_list_get_type (void) G_GNUC_CONST;
393 GType gee_bidir_iterator_get_type (void) G_GNUC_CONST;
394 GType gee_bidir_list_iterator_get_type (void) G_GNUC_CONST;
395 GType gee_bidir_list_get_type (void) G_GNUC_CONST;
396 GType gee_read_only_bidir_list_get_type (void) G_GNUC_CONST;
397 #define GEE_READ_ONLY_BIDIR_LIST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GEE_TYPE_READ_ONLY_BIDIR_LIST, GeeReadOnlyBidirListPrivate))
398 enum  {
399         GEE_READ_ONLY_BIDIR_LIST_DUMMY_PROPERTY,
400         GEE_READ_ONLY_BIDIR_LIST_G_TYPE,
401         GEE_READ_ONLY_BIDIR_LIST_G_DUP_FUNC,
402         GEE_READ_ONLY_BIDIR_LIST_G_DESTROY_FUNC,
403         GEE_READ_ONLY_BIDIR_LIST_READ_ONLY_VIEW
404 };
405 GeeReadOnlyBidirList* gee_read_only_bidir_list_new (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeBidirList* list);
406 GeeReadOnlyBidirList* gee_read_only_bidir_list_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeBidirList* list);
407 GeeReadOnlyList* gee_read_only_list_new (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeList* list);
408 GeeReadOnlyList* gee_read_only_list_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeList* list);
409 static GeeBidirListIterator* gee_read_only_bidir_list_real_bidir_list_iterator (GeeBidirList* base);
410 GeeBidirListIterator* gee_bidir_list_bidir_list_iterator (GeeBidirList* self);
411 static GeeReadOnlyBidirListIterator* gee_read_only_bidir_list_iterator_new (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeListIterator* iterator);
412 static GeeReadOnlyBidirListIterator* gee_read_only_bidir_list_iterator_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeListIterator* iterator);
413 GType gee_read_only_collection_iterator_get_type (void) G_GNUC_CONST;
414 GType gee_read_only_list_iterator_get_type (void) G_GNUC_CONST;
415 static GType gee_read_only_bidir_list_iterator_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
416 GeeBidirList* gee_read_only_bidir_list_get_read_only_view (GeeReadOnlyBidirList* self);
417 #define GEE_READ_ONLY_BIDIR_LIST_ITERATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GEE_READ_ONLY_BIDIR_LIST_TYPE_ITERATOR, GeeReadOnlyBidirListIteratorPrivate))
418 enum  {
419         GEE_READ_ONLY_BIDIR_LIST_ITERATOR_DUMMY_PROPERTY,
420         GEE_READ_ONLY_BIDIR_LIST_ITERATOR_G_TYPE,
421         GEE_READ_ONLY_BIDIR_LIST_ITERATOR_G_DUP_FUNC,
422         GEE_READ_ONLY_BIDIR_LIST_ITERATOR_G_DESTROY_FUNC
423 };
424 GeeReadOnlyListIterator* gee_read_only_list_iterator_new (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeListIterator* iterator);
425 GeeReadOnlyListIterator* gee_read_only_list_iterator_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeListIterator* iterator);
426 static gboolean gee_read_only_bidir_list_iterator_real_previous (GeeBidirIterator* base);
427 gboolean gee_bidir_iterator_previous (GeeBidirIterator* self);
428 static gboolean gee_read_only_bidir_list_iterator_real_has_previous (GeeBidirIterator* base);
429 gboolean gee_bidir_iterator_has_previous (GeeBidirIterator* self);
430 static gboolean gee_read_only_bidir_list_iterator_real_first (GeeBidirIterator* base);
431 gboolean gee_bidir_iterator_first (GeeBidirIterator* self);
432 static gboolean gee_read_only_bidir_list_iterator_real_last (GeeBidirIterator* base);
433 gboolean gee_bidir_iterator_last (GeeBidirIterator* self);
434 static void gee_read_only_bidir_list_iterator_real_insert (GeeBidirListIterator* base, gconstpointer item);
435 static void _vala_gee_read_only_bidir_list_iterator_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
436 static void _vala_gee_read_only_bidir_list_iterator_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
437 static void _vala_gee_read_only_bidir_list_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
438 static void _vala_gee_read_only_bidir_list_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
439
440
441 /**
442  * Constructs a read-only list that mirrors the content of the specified
443  * list.
444  *
445  * @param list the list to decorate.
446  */
447 GeeReadOnlyBidirList* gee_read_only_bidir_list_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeBidirList* list) {
448         GeeReadOnlyBidirList * self = NULL;
449         GeeBidirList* _tmp0_;
450         g_return_val_if_fail (list != NULL, NULL);
451         _tmp0_ = list;
452         self = (GeeReadOnlyBidirList*) gee_read_only_list_construct (object_type, g_type, (GBoxedCopyFunc) g_dup_func, g_destroy_func, (GeeList*) _tmp0_);
453         self->priv->g_type = g_type;
454         self->priv->g_dup_func = g_dup_func;
455         self->priv->g_destroy_func = g_destroy_func;
456         return self;
457 }
458
459
460 GeeReadOnlyBidirList* gee_read_only_bidir_list_new (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeBidirList* list) {
461         return gee_read_only_bidir_list_construct (GEE_TYPE_READ_ONLY_BIDIR_LIST, g_type, g_dup_func, g_destroy_func, list);
462 }
463
464
465 /**
466  * {@inheritDoc}
467  */
468 static GeeBidirListIterator* gee_read_only_bidir_list_real_bidir_list_iterator (GeeBidirList* base) {
469         GeeReadOnlyBidirList * self;
470         GeeBidirListIterator* result = NULL;
471         GeeCollection* _tmp0_;
472         GeeBidirListIterator* _tmp1_ = NULL;
473         GeeBidirListIterator* _tmp2_;
474         GeeReadOnlyBidirListIterator* _tmp3_;
475         GeeBidirListIterator* _tmp4_;
476         self = (GeeReadOnlyBidirList*) base;
477         _tmp0_ = ((GeeReadOnlyCollection*) self)->_collection;
478         _tmp1_ = gee_bidir_list_bidir_list_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_BIDIR_LIST, GeeBidirList));
479         _tmp2_ = _tmp1_;
480         _tmp3_ = gee_read_only_bidir_list_iterator_new (self->priv->g_type, (GBoxedCopyFunc) self->priv->g_dup_func, self->priv->g_destroy_func, (GeeListIterator*) _tmp2_);
481         _tmp4_ = (GeeBidirListIterator*) _tmp3_;
482         _g_object_unref0 (_tmp2_);
483         result = _tmp4_;
484         return result;
485 }
486
487
488 GeeBidirList* gee_read_only_bidir_list_get_read_only_view (GeeReadOnlyBidirList* self) {
489         g_return_val_if_fail (self != NULL, NULL);
490         return GEE_READ_ONLY_BIDIR_LIST_GET_CLASS (self)->get_read_only_view (self);
491 }
492
493
494 static gpointer _g_object_ref0 (gpointer self) {
495         return self ? g_object_ref (self) : NULL;
496 }
497
498
499 static GeeBidirList* gee_read_only_bidir_list_real_get_read_only_view (GeeReadOnlyBidirList* base) {
500         GeeBidirList* result;
501         GeeReadOnlyBidirList* self;
502         GeeBidirList* _tmp0_;
503         self = base;
504         _tmp0_ = _g_object_ref0 ((GeeBidirList*) self);
505         result = _tmp0_;
506         return result;
507 }
508
509
510 static GeeReadOnlyBidirListIterator* gee_read_only_bidir_list_iterator_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeListIterator* iterator) {
511         GeeReadOnlyBidirListIterator * self = NULL;
512         GeeListIterator* _tmp0_;
513         g_return_val_if_fail (iterator != NULL, NULL);
514         _tmp0_ = iterator;
515         self = (GeeReadOnlyBidirListIterator*) gee_read_only_list_iterator_construct (object_type, g_type, (GBoxedCopyFunc) g_dup_func, g_destroy_func, _tmp0_);
516         self->priv->g_type = g_type;
517         self->priv->g_dup_func = g_dup_func;
518         self->priv->g_destroy_func = g_destroy_func;
519         return self;
520 }
521
522
523 static GeeReadOnlyBidirListIterator* gee_read_only_bidir_list_iterator_new (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeListIterator* iterator) {
524         return gee_read_only_bidir_list_iterator_construct (GEE_READ_ONLY_BIDIR_LIST_TYPE_ITERATOR, g_type, g_dup_func, g_destroy_func, iterator);
525 }
526
527
528 static gboolean gee_read_only_bidir_list_iterator_real_previous (GeeBidirIterator* base) {
529         GeeReadOnlyBidirListIterator * self;
530         gboolean result = FALSE;
531         GeeIterator* _tmp0_;
532         gboolean _tmp1_ = FALSE;
533         self = (GeeReadOnlyBidirListIterator*) base;
534         _tmp0_ = ((GeeReadOnlyCollectionIterator*) self)->_iter;
535         _tmp1_ = gee_bidir_iterator_previous (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_BIDIR_ITERATOR, GeeBidirIterator));
536         result = _tmp1_;
537         return result;
538 }
539
540
541 static gboolean gee_read_only_bidir_list_iterator_real_has_previous (GeeBidirIterator* base) {
542         GeeReadOnlyBidirListIterator * self;
543         gboolean result = FALSE;
544         GeeIterator* _tmp0_;
545         gboolean _tmp1_ = FALSE;
546         self = (GeeReadOnlyBidirListIterator*) base;
547         _tmp0_ = ((GeeReadOnlyCollectionIterator*) self)->_iter;
548         _tmp1_ = gee_bidir_iterator_has_previous (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_BIDIR_ITERATOR, GeeBidirIterator));
549         result = _tmp1_;
550         return result;
551 }
552
553
554 static gboolean gee_read_only_bidir_list_iterator_real_first (GeeBidirIterator* base) {
555         GeeReadOnlyBidirListIterator * self;
556         gboolean result = FALSE;
557         GeeIterator* _tmp0_;
558         gboolean _tmp1_ = FALSE;
559         self = (GeeReadOnlyBidirListIterator*) base;
560         _tmp0_ = ((GeeReadOnlyCollectionIterator*) self)->_iter;
561         _tmp1_ = gee_bidir_iterator_first (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_BIDIR_ITERATOR, GeeBidirIterator));
562         result = _tmp1_;
563         return result;
564 }
565
566
567 static gboolean gee_read_only_bidir_list_iterator_real_last (GeeBidirIterator* base) {
568         GeeReadOnlyBidirListIterator * self;
569         gboolean result = FALSE;
570         GeeIterator* _tmp0_;
571         gboolean _tmp1_ = FALSE;
572         self = (GeeReadOnlyBidirListIterator*) base;
573         _tmp0_ = ((GeeReadOnlyCollectionIterator*) self)->_iter;
574         _tmp1_ = gee_bidir_iterator_last (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_BIDIR_ITERATOR, GeeBidirIterator));
575         result = _tmp1_;
576         return result;
577 }
578
579
580 static void gee_read_only_bidir_list_iterator_real_insert (GeeBidirListIterator* base, gconstpointer item) {
581         GeeReadOnlyBidirListIterator * self;
582         self = (GeeReadOnlyBidirListIterator*) base;
583         g_assert_not_reached ();
584 }
585
586
587 static void gee_read_only_bidir_list_iterator_class_init (GeeReadOnlyBidirListIteratorClass * klass) {
588         gee_read_only_bidir_list_iterator_parent_class = g_type_class_peek_parent (klass);
589         g_type_class_add_private (klass, sizeof (GeeReadOnlyBidirListIteratorPrivate));
590         G_OBJECT_CLASS (klass)->get_property = _vala_gee_read_only_bidir_list_iterator_get_property;
591         G_OBJECT_CLASS (klass)->set_property = _vala_gee_read_only_bidir_list_iterator_set_property;
592         g_object_class_install_property (G_OBJECT_CLASS (klass), GEE_READ_ONLY_BIDIR_LIST_ITERATOR_G_TYPE, g_param_spec_gtype ("g-type", "type", "type", G_TYPE_NONE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
593         g_object_class_install_property (G_OBJECT_CLASS (klass), GEE_READ_ONLY_BIDIR_LIST_ITERATOR_G_DUP_FUNC, g_param_spec_pointer ("g-dup-func", "dup func", "dup func", G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
594         g_object_class_install_property (G_OBJECT_CLASS (klass), GEE_READ_ONLY_BIDIR_LIST_ITERATOR_G_DESTROY_FUNC, g_param_spec_pointer ("g-destroy-func", "destroy func", "destroy func", G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
595 }
596
597
598 static GType gee_read_only_bidir_list_iterator_gee_bidir_iterator_get_g_type (GeeReadOnlyBidirListIterator* self) {
599         return self->priv->g_type;
600 }
601
602
603 static GBoxedCopyFunc gee_read_only_bidir_list_iterator_gee_bidir_iterator_get_g_dup_func (GeeReadOnlyBidirListIterator* self) {
604         return self->priv->g_dup_func;
605 }
606
607
608 static GDestroyNotify gee_read_only_bidir_list_iterator_gee_bidir_iterator_get_g_destroy_func (GeeReadOnlyBidirListIterator* self) {
609         return self->priv->g_destroy_func;
610 }
611
612
613 static void gee_read_only_bidir_list_iterator_gee_bidir_iterator_interface_init (GeeBidirIteratorIface * iface) {
614         gee_read_only_bidir_list_iterator_gee_bidir_iterator_parent_iface = g_type_interface_peek_parent (iface);
615         iface->previous = (gboolean (*)(GeeBidirIterator*)) gee_read_only_bidir_list_iterator_real_previous;
616         iface->has_previous = (gboolean (*)(GeeBidirIterator*)) gee_read_only_bidir_list_iterator_real_has_previous;
617         iface->first = (gboolean (*)(GeeBidirIterator*)) gee_read_only_bidir_list_iterator_real_first;
618         iface->last = (gboolean (*)(GeeBidirIterator*)) gee_read_only_bidir_list_iterator_real_last;
619         iface->get_g_type = (GType(*)(GeeBidirIterator*)) gee_read_only_bidir_list_iterator_gee_bidir_iterator_get_g_type;
620         iface->get_g_dup_func = (GBoxedCopyFunc(*)(GeeBidirIterator*)) gee_read_only_bidir_list_iterator_gee_bidir_iterator_get_g_dup_func;
621         iface->get_g_destroy_func = (GDestroyNotify(*)(GeeBidirIterator*)) gee_read_only_bidir_list_iterator_gee_bidir_iterator_get_g_destroy_func;
622 }
623
624
625 static GType gee_read_only_bidir_list_iterator_gee_bidir_list_iterator_get_g_type (GeeReadOnlyBidirListIterator* self) {
626         return self->priv->g_type;
627 }
628
629
630 static GBoxedCopyFunc gee_read_only_bidir_list_iterator_gee_bidir_list_iterator_get_g_dup_func (GeeReadOnlyBidirListIterator* self) {
631         return self->priv->g_dup_func;
632 }
633
634
635 static GDestroyNotify gee_read_only_bidir_list_iterator_gee_bidir_list_iterator_get_g_destroy_func (GeeReadOnlyBidirListIterator* self) {
636         return self->priv->g_destroy_func;
637 }
638
639
640 static void gee_read_only_bidir_list_iterator_gee_bidir_list_iterator_interface_init (GeeBidirListIteratorIface * iface) {
641         gee_read_only_bidir_list_iterator_gee_bidir_list_iterator_parent_iface = g_type_interface_peek_parent (iface);
642         iface->insert = (void (*)(GeeBidirListIterator*, gconstpointer)) gee_read_only_bidir_list_iterator_real_insert;
643         iface->get_g_type = (GType(*)(GeeBidirListIterator*)) gee_read_only_bidir_list_iterator_gee_bidir_list_iterator_get_g_type;
644         iface->get_g_dup_func = (GBoxedCopyFunc(*)(GeeBidirListIterator*)) gee_read_only_bidir_list_iterator_gee_bidir_list_iterator_get_g_dup_func;
645         iface->get_g_destroy_func = (GDestroyNotify(*)(GeeBidirListIterator*)) gee_read_only_bidir_list_iterator_gee_bidir_list_iterator_get_g_destroy_func;
646 }
647
648
649 static void gee_read_only_bidir_list_iterator_instance_init (GeeReadOnlyBidirListIterator * self) {
650         self->priv = GEE_READ_ONLY_BIDIR_LIST_ITERATOR_GET_PRIVATE (self);
651 }
652
653
654 static GType gee_read_only_bidir_list_iterator_get_type (void) {
655         static volatile gsize gee_read_only_bidir_list_iterator_type_id__volatile = 0;
656         if (g_once_init_enter (&gee_read_only_bidir_list_iterator_type_id__volatile)) {
657                 static const GTypeInfo g_define_type_info = { sizeof (GeeReadOnlyBidirListIteratorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gee_read_only_bidir_list_iterator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GeeReadOnlyBidirListIterator), 0, (GInstanceInitFunc) gee_read_only_bidir_list_iterator_instance_init, NULL };
658                 static const GInterfaceInfo gee_bidir_iterator_info = { (GInterfaceInitFunc) gee_read_only_bidir_list_iterator_gee_bidir_iterator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
659                 static const GInterfaceInfo gee_bidir_list_iterator_info = { (GInterfaceInitFunc) gee_read_only_bidir_list_iterator_gee_bidir_list_iterator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
660                 GType gee_read_only_bidir_list_iterator_type_id;
661                 gee_read_only_bidir_list_iterator_type_id = g_type_register_static (GEE_READ_ONLY_LIST_TYPE_ITERATOR, "GeeReadOnlyBidirListIterator", &g_define_type_info, 0);
662                 g_type_add_interface_static (gee_read_only_bidir_list_iterator_type_id, GEE_TYPE_BIDIR_ITERATOR, &gee_bidir_iterator_info);
663                 g_type_add_interface_static (gee_read_only_bidir_list_iterator_type_id, GEE_TYPE_BIDIR_LIST_ITERATOR, &gee_bidir_list_iterator_info);
664                 g_once_init_leave (&gee_read_only_bidir_list_iterator_type_id__volatile, gee_read_only_bidir_list_iterator_type_id);
665         }
666         return gee_read_only_bidir_list_iterator_type_id__volatile;
667 }
668
669
670 static void _vala_gee_read_only_bidir_list_iterator_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
671         GeeReadOnlyBidirListIterator * self;
672         self = G_TYPE_CHECK_INSTANCE_CAST (object, GEE_READ_ONLY_BIDIR_LIST_TYPE_ITERATOR, GeeReadOnlyBidirListIterator);
673         switch (property_id) {
674                 default:
675                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
676                 break;
677         }
678 }
679
680
681 static void _vala_gee_read_only_bidir_list_iterator_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
682         GeeReadOnlyBidirListIterator * self;
683         self = G_TYPE_CHECK_INSTANCE_CAST (object, GEE_READ_ONLY_BIDIR_LIST_TYPE_ITERATOR, GeeReadOnlyBidirListIterator);
684         switch (property_id) {
685                 case GEE_READ_ONLY_BIDIR_LIST_ITERATOR_G_TYPE:
686                 self->priv->g_type = g_value_get_gtype (value);
687                 break;
688                 case GEE_READ_ONLY_BIDIR_LIST_ITERATOR_G_DUP_FUNC:
689                 self->priv->g_dup_func = g_value_get_pointer (value);
690                 break;
691                 case GEE_READ_ONLY_BIDIR_LIST_ITERATOR_G_DESTROY_FUNC:
692                 self->priv->g_destroy_func = g_value_get_pointer (value);
693                 break;
694                 default:
695                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
696                 break;
697         }
698 }
699
700
701 static void gee_read_only_bidir_list_class_init (GeeReadOnlyBidirListClass * klass) {
702         gee_read_only_bidir_list_parent_class = g_type_class_peek_parent (klass);
703         g_type_class_add_private (klass, sizeof (GeeReadOnlyBidirListPrivate));
704         GEE_READ_ONLY_BIDIR_LIST_CLASS (klass)->get_read_only_view = gee_read_only_bidir_list_real_get_read_only_view;
705         G_OBJECT_CLASS (klass)->get_property = _vala_gee_read_only_bidir_list_get_property;
706         G_OBJECT_CLASS (klass)->set_property = _vala_gee_read_only_bidir_list_set_property;
707         g_object_class_install_property (G_OBJECT_CLASS (klass), GEE_READ_ONLY_BIDIR_LIST_G_TYPE, g_param_spec_gtype ("g-type", "type", "type", G_TYPE_NONE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
708         g_object_class_install_property (G_OBJECT_CLASS (klass), GEE_READ_ONLY_BIDIR_LIST_G_DUP_FUNC, g_param_spec_pointer ("g-dup-func", "dup func", "dup func", G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
709         g_object_class_install_property (G_OBJECT_CLASS (klass), GEE_READ_ONLY_BIDIR_LIST_G_DESTROY_FUNC, g_param_spec_pointer ("g-destroy-func", "destroy func", "destroy func", G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
710         /**
711          * The read-only view of this list.
712          */
713         g_object_class_install_property (G_OBJECT_CLASS (klass), GEE_READ_ONLY_BIDIR_LIST_READ_ONLY_VIEW, g_param_spec_object ("read-only-view", "read-only-view", "read-only-view", GEE_TYPE_BIDIR_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
714 }
715
716
717 static GType gee_read_only_bidir_list_gee_bidir_list_get_g_type (GeeReadOnlyBidirList* self) {
718         return self->priv->g_type;
719 }
720
721
722 static GBoxedCopyFunc gee_read_only_bidir_list_gee_bidir_list_get_g_dup_func (GeeReadOnlyBidirList* self) {
723         return self->priv->g_dup_func;
724 }
725
726
727 static GDestroyNotify gee_read_only_bidir_list_gee_bidir_list_get_g_destroy_func (GeeReadOnlyBidirList* self) {
728         return self->priv->g_destroy_func;
729 }
730
731
732 static void gee_read_only_bidir_list_gee_bidir_list_interface_init (GeeBidirListIface * iface) {
733         gee_read_only_bidir_list_gee_bidir_list_parent_iface = g_type_interface_peek_parent (iface);
734         iface->bidir_list_iterator = (GeeBidirListIterator* (*)(GeeBidirList*)) gee_read_only_bidir_list_real_bidir_list_iterator;
735         iface->get_g_type = (GType(*)(GeeBidirList*)) gee_read_only_bidir_list_gee_bidir_list_get_g_type;
736         iface->get_g_dup_func = (GBoxedCopyFunc(*)(GeeBidirList*)) gee_read_only_bidir_list_gee_bidir_list_get_g_dup_func;
737         iface->get_g_destroy_func = (GDestroyNotify(*)(GeeBidirList*)) gee_read_only_bidir_list_gee_bidir_list_get_g_destroy_func;
738         iface->get_read_only_view = (GeeBidirList* (*) (GeeBidirList *)) gee_read_only_bidir_list_get_read_only_view;
739 }
740
741
742 static void gee_read_only_bidir_list_instance_init (GeeReadOnlyBidirList * self) {
743         self->priv = GEE_READ_ONLY_BIDIR_LIST_GET_PRIVATE (self);
744 }
745
746
747 GType gee_read_only_bidir_list_get_type (void) {
748         static volatile gsize gee_read_only_bidir_list_type_id__volatile = 0;
749         if (g_once_init_enter (&gee_read_only_bidir_list_type_id__volatile)) {
750                 static const GTypeInfo g_define_type_info = { sizeof (GeeReadOnlyBidirListClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gee_read_only_bidir_list_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GeeReadOnlyBidirList), 0, (GInstanceInitFunc) gee_read_only_bidir_list_instance_init, NULL };
751                 static const GInterfaceInfo gee_bidir_list_info = { (GInterfaceInitFunc) gee_read_only_bidir_list_gee_bidir_list_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
752                 GType gee_read_only_bidir_list_type_id;
753                 gee_read_only_bidir_list_type_id = g_type_register_static (GEE_TYPE_READ_ONLY_LIST, "GeeReadOnlyBidirList", &g_define_type_info, 0);
754                 g_type_add_interface_static (gee_read_only_bidir_list_type_id, GEE_TYPE_BIDIR_LIST, &gee_bidir_list_info);
755                 g_once_init_leave (&gee_read_only_bidir_list_type_id__volatile, gee_read_only_bidir_list_type_id);
756         }
757         return gee_read_only_bidir_list_type_id__volatile;
758 }
759
760
761 static void _vala_gee_read_only_bidir_list_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
762         GeeReadOnlyBidirList * self;
763         self = G_TYPE_CHECK_INSTANCE_CAST (object, GEE_TYPE_READ_ONLY_BIDIR_LIST, GeeReadOnlyBidirList);
764         switch (property_id) {
765                 case GEE_READ_ONLY_BIDIR_LIST_READ_ONLY_VIEW:
766                 g_value_take_object (value, gee_read_only_bidir_list_get_read_only_view (self));
767                 break;
768                 default:
769                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
770                 break;
771         }
772 }
773
774
775 static void _vala_gee_read_only_bidir_list_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
776         GeeReadOnlyBidirList * self;
777         self = G_TYPE_CHECK_INSTANCE_CAST (object, GEE_TYPE_READ_ONLY_BIDIR_LIST, GeeReadOnlyBidirList);
778         switch (property_id) {
779                 case GEE_READ_ONLY_BIDIR_LIST_G_TYPE:
780                 self->priv->g_type = g_value_get_gtype (value);
781                 break;
782                 case GEE_READ_ONLY_BIDIR_LIST_G_DUP_FUNC:
783                 self->priv->g_dup_func = g_value_get_pointer (value);
784                 break;
785                 case GEE_READ_ONLY_BIDIR_LIST_G_DESTROY_FUNC:
786                 self->priv->g_destroy_func = g_value_get_pointer (value);
787                 break;
788                 default:
789                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
790                 break;
791         }
792 }
793
794
795