1 /* abstractbidirlist.c generated by valac 0.18.0, the Vala compiler
2 * generated from abstractbidirlist.vala, do not modify */
4 /* bidirlistiterator.vala
6 * Copyright (C) 2011 Maciej Piechotka
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.
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.
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
23 * Maciej Piechotka <uzytkownik2@gmail.com>
27 #include <glib-object.h>
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))
35 typedef struct _GeeTraversable GeeTraversable;
36 typedef struct _GeeTraversableIface GeeTraversableIface;
38 #define GEE_TRAVERSABLE_TYPE_STREAM (gee_traversable_stream_get_type ())
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))
47 typedef struct _GeeLazy GeeLazy;
48 typedef struct _GeeLazyClass GeeLazyClass;
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))
55 typedef struct _GeeIterator GeeIterator;
56 typedef struct _GeeIteratorIface GeeIteratorIface;
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))
63 typedef struct _GeeIterable GeeIterable;
64 typedef struct _GeeIterableIface GeeIterableIface;
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))
71 typedef struct _GeeCollection GeeCollection;
72 typedef struct _GeeCollectionIface GeeCollectionIface;
74 #define GEE_TYPE_ABSTRACT_COLLECTION (gee_abstract_collection_get_type ())
75 #define GEE_ABSTRACT_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection))
76 #define GEE_ABSTRACT_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollectionClass))
77 #define GEE_IS_ABSTRACT_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_ABSTRACT_COLLECTION))
78 #define GEE_IS_ABSTRACT_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_ABSTRACT_COLLECTION))
79 #define GEE_ABSTRACT_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollectionClass))
81 typedef struct _GeeAbstractCollection GeeAbstractCollection;
82 typedef struct _GeeAbstractCollectionClass GeeAbstractCollectionClass;
83 typedef struct _GeeAbstractCollectionPrivate GeeAbstractCollectionPrivate;
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))
90 typedef struct _GeeList GeeList;
91 typedef struct _GeeListIface GeeListIface;
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))
98 typedef struct _GeeListIterator GeeListIterator;
99 typedef struct _GeeListIteratorIface GeeListIteratorIface;
101 #define GEE_TYPE_ABSTRACT_LIST (gee_abstract_list_get_type ())
102 #define GEE_ABSTRACT_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_ABSTRACT_LIST, GeeAbstractList))
103 #define GEE_ABSTRACT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_ABSTRACT_LIST, GeeAbstractListClass))
104 #define GEE_IS_ABSTRACT_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_ABSTRACT_LIST))
105 #define GEE_IS_ABSTRACT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_ABSTRACT_LIST))
106 #define GEE_ABSTRACT_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_ABSTRACT_LIST, GeeAbstractListClass))
108 typedef struct _GeeAbstractList GeeAbstractList;
109 typedef struct _GeeAbstractListClass GeeAbstractListClass;
110 typedef struct _GeeAbstractListPrivate GeeAbstractListPrivate;
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))
117 typedef struct _GeeBidirList GeeBidirList;
118 typedef struct _GeeBidirListIface GeeBidirListIface;
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))
125 typedef struct _GeeBidirIterator GeeBidirIterator;
126 typedef struct _GeeBidirIteratorIface GeeBidirIteratorIface;
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))
133 typedef struct _GeeBidirListIterator GeeBidirListIterator;
134 typedef struct _GeeBidirListIteratorIface GeeBidirListIteratorIface;
136 #define GEE_TYPE_ABSTRACT_BIDIR_LIST (gee_abstract_bidir_list_get_type ())
137 #define GEE_ABSTRACT_BIDIR_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirList))
138 #define GEE_ABSTRACT_BIDIR_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirListClass))
139 #define GEE_IS_ABSTRACT_BIDIR_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_ABSTRACT_BIDIR_LIST))
140 #define GEE_IS_ABSTRACT_BIDIR_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_ABSTRACT_BIDIR_LIST))
141 #define GEE_ABSTRACT_BIDIR_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirListClass))
143 typedef struct _GeeAbstractBidirList GeeAbstractBidirList;
144 typedef struct _GeeAbstractBidirListClass GeeAbstractBidirListClass;
145 typedef struct _GeeAbstractBidirListPrivate GeeAbstractBidirListPrivate;
147 #define GEE_TYPE_READ_ONLY_COLLECTION (gee_read_only_collection_get_type ())
148 #define GEE_READ_ONLY_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_READ_ONLY_COLLECTION, GeeReadOnlyCollection))
149 #define GEE_READ_ONLY_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_READ_ONLY_COLLECTION, GeeReadOnlyCollectionClass))
150 #define GEE_IS_READ_ONLY_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_READ_ONLY_COLLECTION))
151 #define GEE_IS_READ_ONLY_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_READ_ONLY_COLLECTION))
152 #define GEE_READ_ONLY_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_READ_ONLY_COLLECTION, GeeReadOnlyCollectionClass))
154 typedef struct _GeeReadOnlyCollection GeeReadOnlyCollection;
155 typedef struct _GeeReadOnlyCollectionClass GeeReadOnlyCollectionClass;
157 #define GEE_TYPE_READ_ONLY_LIST (gee_read_only_list_get_type ())
158 #define GEE_READ_ONLY_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_READ_ONLY_LIST, GeeReadOnlyList))
159 #define GEE_READ_ONLY_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_READ_ONLY_LIST, GeeReadOnlyListClass))
160 #define GEE_IS_READ_ONLY_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_READ_ONLY_LIST))
161 #define GEE_IS_READ_ONLY_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_READ_ONLY_LIST))
162 #define GEE_READ_ONLY_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_READ_ONLY_LIST, GeeReadOnlyListClass))
164 typedef struct _GeeReadOnlyList GeeReadOnlyList;
165 typedef struct _GeeReadOnlyListClass GeeReadOnlyListClass;
167 #define GEE_TYPE_READ_ONLY_BIDIR_LIST (gee_read_only_bidir_list_get_type ())
168 #define GEE_READ_ONLY_BIDIR_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_READ_ONLY_BIDIR_LIST, GeeReadOnlyBidirList))
169 #define GEE_READ_ONLY_BIDIR_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_READ_ONLY_BIDIR_LIST, GeeReadOnlyBidirListClass))
170 #define GEE_IS_READ_ONLY_BIDIR_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_READ_ONLY_BIDIR_LIST))
171 #define GEE_IS_READ_ONLY_BIDIR_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_READ_ONLY_BIDIR_LIST))
172 #define GEE_READ_ONLY_BIDIR_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_READ_ONLY_BIDIR_LIST, GeeReadOnlyBidirListClass))
174 typedef struct _GeeReadOnlyBidirList GeeReadOnlyBidirList;
175 typedef struct _GeeReadOnlyBidirListClass GeeReadOnlyBidirListClass;
176 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
178 typedef gboolean (*GeeForallFunc) (gpointer g, void* user_data);
180 GEE_TRAVERSABLE_STREAM_YIELD,
181 GEE_TRAVERSABLE_STREAM_CONTINUE,
182 GEE_TRAVERSABLE_STREAM_END
183 } GeeTraversableStream;
185 typedef GeeTraversableStream (*GeeStreamFunc) (GeeTraversableStream state, GeeLazy* g, GeeLazy** lazy, void* user_data);
186 struct _GeeIteratorIface {
187 GTypeInterface parent_iface;
188 gboolean (*next) (GeeIterator* self);
189 gboolean (*has_next) (GeeIterator* self);
190 gpointer (*get) (GeeIterator* self);
191 void (*remove) (GeeIterator* self);
192 gboolean (*get_valid) (GeeIterator* self);
193 gboolean (*get_read_only) (GeeIterator* self);
196 typedef gpointer (*GeeFoldFunc) (gpointer g, gpointer a, void* user_data);
197 typedef gpointer (*GeeMapFunc) (gpointer g, void* user_data);
198 typedef gboolean (*GeePredicate) (gconstpointer g, void* user_data);
199 struct _GeeTraversableIface {
200 GTypeInterface parent_iface;
201 GType (*get_g_type) (GeeTraversable* self);
202 GBoxedCopyFunc (*get_g_dup_func) (GeeTraversable* self);
203 GDestroyNotify (*get_g_destroy_func) (GeeTraversable* self);
204 gboolean (*foreach) (GeeTraversable* self, GeeForallFunc f, void* f_target);
205 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);
206 gpointer (*fold) (GeeTraversable* self, GType a_type, GBoxedCopyFunc a_dup_func, GDestroyNotify a_destroy_func, GeeFoldFunc f, void* f_target, gpointer seed);
207 GeeIterator* (*map) (GeeTraversable* self, GType a_type, GBoxedCopyFunc a_dup_func, GDestroyNotify a_destroy_func, GeeMapFunc f, void* f_target);
208 GeeIterator* (*scan) (GeeTraversable* self, GType a_type, GBoxedCopyFunc a_dup_func, GDestroyNotify a_destroy_func, GeeFoldFunc f, void* f_target, gpointer seed);
209 GeeIterator* (*filter) (GeeTraversable* self, GeePredicate pred, void* pred_target, GDestroyNotify pred_target_destroy_notify);
210 GeeIterator* (*chop) (GeeTraversable* self, gint offset, gint length);
211 GType (*get_element_type) (GeeTraversable* self);
214 struct _GeeIterableIface {
215 GTypeInterface parent_iface;
216 GType (*get_g_type) (GeeIterable* self);
217 GBoxedCopyFunc (*get_g_dup_func) (GeeIterable* self);
218 GDestroyNotify (*get_g_destroy_func) (GeeIterable* self);
219 GeeIterator* (*iterator) (GeeIterable* self);
222 struct _GeeCollectionIface {
223 GTypeInterface parent_iface;
224 GType (*get_g_type) (GeeCollection* self);
225 GBoxedCopyFunc (*get_g_dup_func) (GeeCollection* self);
226 GDestroyNotify (*get_g_destroy_func) (GeeCollection* self);
227 gboolean (*contains) (GeeCollection* self, gconstpointer item);
228 gboolean (*add) (GeeCollection* self, gconstpointer item);
229 gboolean (*remove) (GeeCollection* self, gconstpointer item);
230 void (*clear) (GeeCollection* self);
231 gboolean (*add_all) (GeeCollection* self, GeeCollection* collection);
232 gboolean (*contains_all) (GeeCollection* self, GeeCollection* collection);
233 gboolean (*remove_all) (GeeCollection* self, GeeCollection* collection);
234 gboolean (*retain_all) (GeeCollection* self, GeeCollection* collection);
235 gpointer* (*to_array) (GeeCollection* self, int* result_length1);
236 gint (*get_size) (GeeCollection* self);
237 gboolean (*get_is_empty) (GeeCollection* self);
238 gboolean (*get_read_only) (GeeCollection* self);
239 GeeCollection* (*get_read_only_view) (GeeCollection* self);
242 struct _GeeAbstractCollection {
243 GObject parent_instance;
244 GeeAbstractCollectionPrivate * priv;
247 struct _GeeAbstractCollectionClass {
248 GObjectClass parent_class;
249 gboolean (*contains) (GeeAbstractCollection* self, gconstpointer item);
250 gboolean (*add) (GeeAbstractCollection* self, gconstpointer item);
251 gboolean (*remove) (GeeAbstractCollection* self, gconstpointer item);
252 void (*clear) (GeeAbstractCollection* self);
253 GeeIterator* (*iterator) (GeeAbstractCollection* self);
254 gboolean (*foreach) (GeeAbstractCollection* self, GeeForallFunc f, void* f_target);
255 void (*reserved0) (GeeAbstractCollection* self);
256 void (*reserved1) (GeeAbstractCollection* self);
257 void (*reserved2) (GeeAbstractCollection* self);
258 void (*reserved3) (GeeAbstractCollection* self);
259 void (*reserved4) (GeeAbstractCollection* self);
260 void (*reserved5) (GeeAbstractCollection* self);
261 void (*reserved6) (GeeAbstractCollection* self);
262 void (*reserved7) (GeeAbstractCollection* self);
263 void (*reserved8) (GeeAbstractCollection* self);
264 void (*reserved9) (GeeAbstractCollection* self);
265 gint (*get_size) (GeeAbstractCollection* self);
266 gboolean (*get_read_only) (GeeAbstractCollection* self);
267 GeeCollection* (*get_read_only_view) (GeeAbstractCollection* self);
270 struct _GeeListIteratorIface {
271 GTypeInterface parent_iface;
272 void (*set) (GeeListIterator* self, gconstpointer item);
273 void (*add) (GeeListIterator* self, gconstpointer item);
274 gint (*index) (GeeListIterator* self);
277 struct _GeeListIface {
278 GTypeInterface parent_iface;
279 GType (*get_g_type) (GeeList* self);
280 GBoxedCopyFunc (*get_g_dup_func) (GeeList* self);
281 GDestroyNotify (*get_g_destroy_func) (GeeList* self);
282 GeeListIterator* (*list_iterator) (GeeList* self);
283 gpointer (*get) (GeeList* self, gint index);
284 void (*set) (GeeList* self, gint index, gconstpointer item);
285 gint (*index_of) (GeeList* self, gconstpointer item);
286 void (*insert) (GeeList* self, gint index, gconstpointer item);
287 gpointer (*remove_at) (GeeList* self, gint index);
288 GeeList* (*slice) (GeeList* self, gint start, gint stop);
289 gpointer (*first) (GeeList* self);
290 gpointer (*last) (GeeList* self);
291 void (*insert_all) (GeeList* self, gint index, GeeCollection* collection);
292 void (*sort) (GeeList* self, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify);
293 GeeList* (*get_read_only_view) (GeeList* self);
296 struct _GeeAbstractList {
297 GeeAbstractCollection parent_instance;
298 GeeAbstractListPrivate * priv;
301 struct _GeeAbstractListClass {
302 GeeAbstractCollectionClass parent_class;
303 GeeListIterator* (*list_iterator) (GeeAbstractList* self);
304 gpointer (*get) (GeeAbstractList* self, gint index);
305 void (*set) (GeeAbstractList* self, gint index, gconstpointer item);
306 gint (*index_of) (GeeAbstractList* self, gconstpointer item);
307 void (*insert) (GeeAbstractList* self, gint index, gconstpointer item);
308 gpointer (*remove_at) (GeeAbstractList* self, gint index);
309 GeeList* (*slice) (GeeAbstractList* self, gint start, gint stop);
310 void (*reserved0) (GeeAbstractList* self);
311 void (*reserved1) (GeeAbstractList* self);
312 void (*reserved2) (GeeAbstractList* self);
313 void (*reserved3) (GeeAbstractList* self);
314 void (*reserved4) (GeeAbstractList* self);
315 void (*reserved5) (GeeAbstractList* self);
316 void (*reserved6) (GeeAbstractList* self);
317 void (*reserved7) (GeeAbstractList* self);
318 void (*reserved8) (GeeAbstractList* self);
319 void (*reserved9) (GeeAbstractList* self);
320 GeeList* (*get_read_only_view) (GeeAbstractList* self);
323 struct _GeeBidirIteratorIface {
324 GTypeInterface parent_iface;
325 GType (*get_g_type) (GeeBidirIterator* self);
326 GBoxedCopyFunc (*get_g_dup_func) (GeeBidirIterator* self);
327 GDestroyNotify (*get_g_destroy_func) (GeeBidirIterator* self);
328 gboolean (*previous) (GeeBidirIterator* self);
329 gboolean (*has_previous) (GeeBidirIterator* self);
330 gboolean (*first) (GeeBidirIterator* self);
331 gboolean (*last) (GeeBidirIterator* self);
334 struct _GeeBidirListIteratorIface {
335 GTypeInterface parent_iface;
336 GType (*get_g_type) (GeeBidirListIterator* self);
337 GBoxedCopyFunc (*get_g_dup_func) (GeeBidirListIterator* self);
338 GDestroyNotify (*get_g_destroy_func) (GeeBidirListIterator* self);
339 void (*insert) (GeeBidirListIterator* self, gconstpointer item);
342 struct _GeeBidirListIface {
343 GTypeInterface parent_iface;
344 GType (*get_g_type) (GeeBidirList* self);
345 GBoxedCopyFunc (*get_g_dup_func) (GeeBidirList* self);
346 GDestroyNotify (*get_g_destroy_func) (GeeBidirList* self);
347 GeeBidirListIterator* (*bidir_list_iterator) (GeeBidirList* self);
348 GeeBidirList* (*get_read_only_view) (GeeBidirList* self);
351 struct _GeeAbstractBidirList {
352 GeeAbstractList parent_instance;
353 GeeAbstractBidirListPrivate * priv;
356 struct _GeeAbstractBidirListClass {
357 GeeAbstractListClass parent_class;
358 GeeBidirListIterator* (*bidir_list_iterator) (GeeAbstractBidirList* self);
359 void (*reserved0) (GeeAbstractBidirList* self);
360 void (*reserved1) (GeeAbstractBidirList* self);
361 void (*reserved2) (GeeAbstractBidirList* self);
362 void (*reserved3) (GeeAbstractBidirList* self);
363 void (*reserved4) (GeeAbstractBidirList* self);
364 void (*reserved5) (GeeAbstractBidirList* self);
365 void (*reserved6) (GeeAbstractBidirList* self);
366 void (*reserved7) (GeeAbstractBidirList* self);
367 void (*reserved8) (GeeAbstractBidirList* self);
368 void (*reserved9) (GeeAbstractBidirList* self);
369 GeeBidirList* (*get_read_only_view) (GeeAbstractBidirList* self);
372 struct _GeeAbstractBidirListPrivate {
374 GBoxedCopyFunc g_dup_func;
375 GDestroyNotify g_destroy_func;
376 GeeBidirList* _read_only_view;
380 static gpointer gee_abstract_bidir_list_parent_class = NULL;
381 static GeeBidirListIface* gee_abstract_bidir_list_gee_bidir_list_parent_iface = NULL;
383 GType gee_traversable_stream_get_type (void) G_GNUC_CONST;
384 gpointer gee_lazy_ref (gpointer instance);
385 void gee_lazy_unref (gpointer instance);
386 GParamSpec* gee_param_spec_lazy (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
387 void gee_value_set_lazy (GValue* value, gpointer v_object);
388 void gee_value_take_lazy (GValue* value, gpointer v_object);
389 gpointer gee_value_get_lazy (const GValue* value);
390 GType gee_lazy_get_type (void) G_GNUC_CONST;
391 GType gee_iterator_get_type (void) G_GNUC_CONST;
392 GType gee_traversable_get_type (void) G_GNUC_CONST;
393 GType gee_iterable_get_type (void) G_GNUC_CONST;
394 GType gee_collection_get_type (void) G_GNUC_CONST;
395 GType gee_abstract_collection_get_type (void) G_GNUC_CONST;
396 GType gee_list_iterator_get_type (void) G_GNUC_CONST;
397 GType gee_list_get_type (void) G_GNUC_CONST;
398 GType gee_abstract_list_get_type (void) G_GNUC_CONST;
399 GType gee_bidir_iterator_get_type (void) G_GNUC_CONST;
400 GType gee_bidir_list_iterator_get_type (void) G_GNUC_CONST;
401 GType gee_bidir_list_get_type (void) G_GNUC_CONST;
402 GType gee_abstract_bidir_list_get_type (void) G_GNUC_CONST;
403 #define GEE_ABSTRACT_BIDIR_LIST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirListPrivate))
405 GEE_ABSTRACT_BIDIR_LIST_DUMMY_PROPERTY,
406 GEE_ABSTRACT_BIDIR_LIST_G_TYPE,
407 GEE_ABSTRACT_BIDIR_LIST_G_DUP_FUNC,
408 GEE_ABSTRACT_BIDIR_LIST_G_DESTROY_FUNC,
409 GEE_ABSTRACT_BIDIR_LIST_READ_ONLY_VIEW
411 GeeBidirListIterator* gee_abstract_bidir_list_bidir_list_iterator (GeeAbstractBidirList* self);
412 static GeeBidirListIterator* gee_abstract_bidir_list_real_bidir_list_iterator (GeeAbstractBidirList* self);
413 void gee_abstract_bidir_list_reserved0 (GeeAbstractBidirList* self);
414 static void gee_abstract_bidir_list_real_reserved0 (GeeAbstractBidirList* self);
415 void gee_abstract_bidir_list_reserved1 (GeeAbstractBidirList* self);
416 static void gee_abstract_bidir_list_real_reserved1 (GeeAbstractBidirList* self);
417 void gee_abstract_bidir_list_reserved2 (GeeAbstractBidirList* self);
418 static void gee_abstract_bidir_list_real_reserved2 (GeeAbstractBidirList* self);
419 void gee_abstract_bidir_list_reserved3 (GeeAbstractBidirList* self);
420 static void gee_abstract_bidir_list_real_reserved3 (GeeAbstractBidirList* self);
421 void gee_abstract_bidir_list_reserved4 (GeeAbstractBidirList* self);
422 static void gee_abstract_bidir_list_real_reserved4 (GeeAbstractBidirList* self);
423 void gee_abstract_bidir_list_reserved5 (GeeAbstractBidirList* self);
424 static void gee_abstract_bidir_list_real_reserved5 (GeeAbstractBidirList* self);
425 void gee_abstract_bidir_list_reserved6 (GeeAbstractBidirList* self);
426 static void gee_abstract_bidir_list_real_reserved6 (GeeAbstractBidirList* self);
427 void gee_abstract_bidir_list_reserved7 (GeeAbstractBidirList* self);
428 static void gee_abstract_bidir_list_real_reserved7 (GeeAbstractBidirList* self);
429 void gee_abstract_bidir_list_reserved8 (GeeAbstractBidirList* self);
430 static void gee_abstract_bidir_list_real_reserved8 (GeeAbstractBidirList* self);
431 void gee_abstract_bidir_list_reserved9 (GeeAbstractBidirList* self);
432 static void gee_abstract_bidir_list_real_reserved9 (GeeAbstractBidirList* self);
433 GeeAbstractBidirList* gee_abstract_bidir_list_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func);
434 GeeAbstractList* gee_abstract_list_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func);
435 GeeBidirList* gee_abstract_bidir_list_get_read_only_view (GeeAbstractBidirList* self);
436 GeeReadOnlyBidirList* gee_read_only_bidir_list_new (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeBidirList* list);
437 GeeReadOnlyBidirList* gee_read_only_bidir_list_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GeeBidirList* list);
438 GType gee_read_only_collection_get_type (void) G_GNUC_CONST;
439 GType gee_read_only_list_get_type (void) G_GNUC_CONST;
440 GType gee_read_only_bidir_list_get_type (void) G_GNUC_CONST;
441 static void gee_abstract_bidir_list_finalize (GObject* obj);
442 static void _vala_gee_abstract_bidir_list_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
443 static void _vala_gee_abstract_bidir_list_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
449 static GeeBidirListIterator* gee_abstract_bidir_list_real_bidir_list_iterator (GeeAbstractBidirList* self) {
450 g_critical ("Type `%s' does not implement abstract method `gee_abstract_bidir_list_bidir_list_iterator'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
455 GeeBidirListIterator* gee_abstract_bidir_list_bidir_list_iterator (GeeAbstractBidirList* self) {
456 g_return_val_if_fail (self != NULL, NULL);
457 return GEE_ABSTRACT_BIDIR_LIST_GET_CLASS (self)->bidir_list_iterator (self);
461 static void gee_abstract_bidir_list_real_reserved0 (GeeAbstractBidirList* self) {
465 void gee_abstract_bidir_list_reserved0 (GeeAbstractBidirList* self) {
466 g_return_if_fail (self != NULL);
467 GEE_ABSTRACT_BIDIR_LIST_GET_CLASS (self)->reserved0 (self);
471 static void gee_abstract_bidir_list_real_reserved1 (GeeAbstractBidirList* self) {
475 void gee_abstract_bidir_list_reserved1 (GeeAbstractBidirList* self) {
476 g_return_if_fail (self != NULL);
477 GEE_ABSTRACT_BIDIR_LIST_GET_CLASS (self)->reserved1 (self);
481 static void gee_abstract_bidir_list_real_reserved2 (GeeAbstractBidirList* self) {
485 void gee_abstract_bidir_list_reserved2 (GeeAbstractBidirList* self) {
486 g_return_if_fail (self != NULL);
487 GEE_ABSTRACT_BIDIR_LIST_GET_CLASS (self)->reserved2 (self);
491 static void gee_abstract_bidir_list_real_reserved3 (GeeAbstractBidirList* self) {
495 void gee_abstract_bidir_list_reserved3 (GeeAbstractBidirList* self) {
496 g_return_if_fail (self != NULL);
497 GEE_ABSTRACT_BIDIR_LIST_GET_CLASS (self)->reserved3 (self);
501 static void gee_abstract_bidir_list_real_reserved4 (GeeAbstractBidirList* self) {
505 void gee_abstract_bidir_list_reserved4 (GeeAbstractBidirList* self) {
506 g_return_if_fail (self != NULL);
507 GEE_ABSTRACT_BIDIR_LIST_GET_CLASS (self)->reserved4 (self);
511 static void gee_abstract_bidir_list_real_reserved5 (GeeAbstractBidirList* self) {
515 void gee_abstract_bidir_list_reserved5 (GeeAbstractBidirList* self) {
516 g_return_if_fail (self != NULL);
517 GEE_ABSTRACT_BIDIR_LIST_GET_CLASS (self)->reserved5 (self);
521 static void gee_abstract_bidir_list_real_reserved6 (GeeAbstractBidirList* self) {
525 void gee_abstract_bidir_list_reserved6 (GeeAbstractBidirList* self) {
526 g_return_if_fail (self != NULL);
527 GEE_ABSTRACT_BIDIR_LIST_GET_CLASS (self)->reserved6 (self);
531 static void gee_abstract_bidir_list_real_reserved7 (GeeAbstractBidirList* self) {
535 void gee_abstract_bidir_list_reserved7 (GeeAbstractBidirList* self) {
536 g_return_if_fail (self != NULL);
537 GEE_ABSTRACT_BIDIR_LIST_GET_CLASS (self)->reserved7 (self);
541 static void gee_abstract_bidir_list_real_reserved8 (GeeAbstractBidirList* self) {
545 void gee_abstract_bidir_list_reserved8 (GeeAbstractBidirList* self) {
546 g_return_if_fail (self != NULL);
547 GEE_ABSTRACT_BIDIR_LIST_GET_CLASS (self)->reserved8 (self);
551 static void gee_abstract_bidir_list_real_reserved9 (GeeAbstractBidirList* self) {
555 void gee_abstract_bidir_list_reserved9 (GeeAbstractBidirList* self) {
556 g_return_if_fail (self != NULL);
557 GEE_ABSTRACT_BIDIR_LIST_GET_CLASS (self)->reserved9 (self);
561 GeeAbstractBidirList* gee_abstract_bidir_list_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func) {
562 GeeAbstractBidirList * self = NULL;
563 self = (GeeAbstractBidirList*) gee_abstract_list_construct (object_type, g_type, (GBoxedCopyFunc) g_dup_func, g_destroy_func);
564 self->priv->g_type = g_type;
565 self->priv->g_dup_func = g_dup_func;
566 self->priv->g_destroy_func = g_destroy_func;
571 GeeBidirList* gee_abstract_bidir_list_get_read_only_view (GeeAbstractBidirList* self) {
572 g_return_val_if_fail (self != NULL, NULL);
573 return GEE_ABSTRACT_BIDIR_LIST_GET_CLASS (self)->get_read_only_view (self);
577 static gpointer _g_object_ref0 (gpointer self) {
578 return self ? g_object_ref (self) : NULL;
582 static GeeBidirList* gee_abstract_bidir_list_real_get_read_only_view (GeeAbstractBidirList* base) {
583 GeeBidirList* result;
584 GeeAbstractBidirList* self;
585 GeeBidirList* _tmp0_;
586 GeeBidirList* _tmp1_;
587 GeeBidirList* instance;
588 GeeBidirList* _tmp2_;
590 _tmp0_ = self->priv->_read_only_view;
591 _tmp1_ = _g_object_ref0 (_tmp0_);
593 _tmp2_ = self->priv->_read_only_view;
594 if (_tmp2_ == NULL) {
595 GeeReadOnlyBidirList* _tmp3_;
596 GeeBidirList* _tmp4_;
597 GeeBidirList* _tmp5_;
598 _tmp3_ = gee_read_only_bidir_list_new (self->priv->g_type, (GBoxedCopyFunc) self->priv->g_dup_func, self->priv->g_destroy_func, (GeeBidirList*) self);
599 _g_object_unref0 (instance);
600 instance = (GeeBidirList*) _tmp3_;
602 self->priv->_read_only_view = _tmp4_;
604 g_object_add_weak_pointer ((GObject*) _tmp5_, (void**) (&self->priv->_read_only_view));
611 static void gee_abstract_bidir_list_class_init (GeeAbstractBidirListClass * klass) {
612 gee_abstract_bidir_list_parent_class = g_type_class_peek_parent (klass);
613 g_type_class_add_private (klass, sizeof (GeeAbstractBidirListPrivate));
614 GEE_ABSTRACT_BIDIR_LIST_CLASS (klass)->bidir_list_iterator = gee_abstract_bidir_list_real_bidir_list_iterator;
615 GEE_ABSTRACT_BIDIR_LIST_CLASS (klass)->reserved0 = gee_abstract_bidir_list_real_reserved0;
616 GEE_ABSTRACT_BIDIR_LIST_CLASS (klass)->reserved1 = gee_abstract_bidir_list_real_reserved1;
617 GEE_ABSTRACT_BIDIR_LIST_CLASS (klass)->reserved2 = gee_abstract_bidir_list_real_reserved2;
618 GEE_ABSTRACT_BIDIR_LIST_CLASS (klass)->reserved3 = gee_abstract_bidir_list_real_reserved3;
619 GEE_ABSTRACT_BIDIR_LIST_CLASS (klass)->reserved4 = gee_abstract_bidir_list_real_reserved4;
620 GEE_ABSTRACT_BIDIR_LIST_CLASS (klass)->reserved5 = gee_abstract_bidir_list_real_reserved5;
621 GEE_ABSTRACT_BIDIR_LIST_CLASS (klass)->reserved6 = gee_abstract_bidir_list_real_reserved6;
622 GEE_ABSTRACT_BIDIR_LIST_CLASS (klass)->reserved7 = gee_abstract_bidir_list_real_reserved7;
623 GEE_ABSTRACT_BIDIR_LIST_CLASS (klass)->reserved8 = gee_abstract_bidir_list_real_reserved8;
624 GEE_ABSTRACT_BIDIR_LIST_CLASS (klass)->reserved9 = gee_abstract_bidir_list_real_reserved9;
625 GEE_ABSTRACT_BIDIR_LIST_CLASS (klass)->get_read_only_view = gee_abstract_bidir_list_real_get_read_only_view;
626 G_OBJECT_CLASS (klass)->get_property = _vala_gee_abstract_bidir_list_get_property;
627 G_OBJECT_CLASS (klass)->set_property = _vala_gee_abstract_bidir_list_set_property;
628 G_OBJECT_CLASS (klass)->finalize = gee_abstract_bidir_list_finalize;
629 g_object_class_install_property (G_OBJECT_CLASS (klass), GEE_ABSTRACT_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));
630 g_object_class_install_property (G_OBJECT_CLASS (klass), GEE_ABSTRACT_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));
631 g_object_class_install_property (G_OBJECT_CLASS (klass), GEE_ABSTRACT_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));
635 g_object_class_install_property (G_OBJECT_CLASS (klass), GEE_ABSTRACT_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));
639 static GType gee_abstract_bidir_list_gee_bidir_list_get_g_type (GeeAbstractBidirList* self) {
640 return self->priv->g_type;
644 static GBoxedCopyFunc gee_abstract_bidir_list_gee_bidir_list_get_g_dup_func (GeeAbstractBidirList* self) {
645 return self->priv->g_dup_func;
649 static GDestroyNotify gee_abstract_bidir_list_gee_bidir_list_get_g_destroy_func (GeeAbstractBidirList* self) {
650 return self->priv->g_destroy_func;
654 static void gee_abstract_bidir_list_gee_bidir_list_interface_init (GeeBidirListIface * iface) {
655 gee_abstract_bidir_list_gee_bidir_list_parent_iface = g_type_interface_peek_parent (iface);
656 iface->bidir_list_iterator = (GeeBidirListIterator* (*)(GeeBidirList*)) gee_abstract_bidir_list_bidir_list_iterator;
657 iface->get_g_type = (GType(*)(GeeBidirList*)) gee_abstract_bidir_list_gee_bidir_list_get_g_type;
658 iface->get_g_dup_func = (GBoxedCopyFunc(*)(GeeBidirList*)) gee_abstract_bidir_list_gee_bidir_list_get_g_dup_func;
659 iface->get_g_destroy_func = (GDestroyNotify(*)(GeeBidirList*)) gee_abstract_bidir_list_gee_bidir_list_get_g_destroy_func;
660 iface->get_read_only_view = (GeeBidirList* (*) (GeeBidirList *)) gee_abstract_bidir_list_get_read_only_view;
664 static void gee_abstract_bidir_list_instance_init (GeeAbstractBidirList * self) {
665 self->priv = GEE_ABSTRACT_BIDIR_LIST_GET_PRIVATE (self);
669 static void gee_abstract_bidir_list_finalize (GObject* obj) {
670 GeeAbstractBidirList * self;
671 self = G_TYPE_CHECK_INSTANCE_CAST (obj, GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirList);
672 G_OBJECT_CLASS (gee_abstract_bidir_list_parent_class)->finalize (obj);
676 GType gee_abstract_bidir_list_get_type (void) {
677 static volatile gsize gee_abstract_bidir_list_type_id__volatile = 0;
678 if (g_once_init_enter (&gee_abstract_bidir_list_type_id__volatile)) {
679 static const GTypeInfo g_define_type_info = { sizeof (GeeAbstractBidirListClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gee_abstract_bidir_list_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GeeAbstractBidirList), 0, (GInstanceInitFunc) gee_abstract_bidir_list_instance_init, NULL };
680 static const GInterfaceInfo gee_bidir_list_info = { (GInterfaceInitFunc) gee_abstract_bidir_list_gee_bidir_list_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
681 GType gee_abstract_bidir_list_type_id;
682 gee_abstract_bidir_list_type_id = g_type_register_static (GEE_TYPE_ABSTRACT_LIST, "GeeAbstractBidirList", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
683 g_type_add_interface_static (gee_abstract_bidir_list_type_id, GEE_TYPE_BIDIR_LIST, &gee_bidir_list_info);
684 g_once_init_leave (&gee_abstract_bidir_list_type_id__volatile, gee_abstract_bidir_list_type_id);
686 return gee_abstract_bidir_list_type_id__volatile;
690 static void _vala_gee_abstract_bidir_list_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
691 GeeAbstractBidirList * self;
692 self = G_TYPE_CHECK_INSTANCE_CAST (object, GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirList);
693 switch (property_id) {
694 case GEE_ABSTRACT_BIDIR_LIST_READ_ONLY_VIEW:
695 g_value_take_object (value, gee_abstract_bidir_list_get_read_only_view (self));
698 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
704 static void _vala_gee_abstract_bidir_list_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
705 GeeAbstractBidirList * self;
706 self = G_TYPE_CHECK_INSTANCE_CAST (object, GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirList);
707 switch (property_id) {
708 case GEE_ABSTRACT_BIDIR_LIST_G_TYPE:
709 self->priv->g_type = g_value_get_gtype (value);
711 case GEE_ABSTRACT_BIDIR_LIST_G_DUP_FUNC:
712 self->priv->g_dup_func = g_value_get_pointer (value);
714 case GEE_ABSTRACT_BIDIR_LIST_G_DESTROY_FUNC:
715 self->priv->g_destroy_func = g_value_get_pointer (value);
718 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);