1 /* bidirsortedset.c generated by valac 0.18.0, the Vala compiler
2 * generated from bidirsortedset.vala, do not modify */
6 * Copyright (C) 2012 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_SET (gee_set_get_type ())
75 #define GEE_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_SET, GeeSet))
76 #define GEE_IS_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_SET))
77 #define GEE_SET_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_SET, GeeSetIface))
79 typedef struct _GeeSet GeeSet;
80 typedef struct _GeeSetIface GeeSetIface;
82 #define GEE_TYPE_SORTED_SET (gee_sorted_set_get_type ())
83 #define GEE_SORTED_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_SORTED_SET, GeeSortedSet))
84 #define GEE_IS_SORTED_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_SORTED_SET))
85 #define GEE_SORTED_SET_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_SORTED_SET, GeeSortedSetIface))
87 typedef struct _GeeSortedSet GeeSortedSet;
88 typedef struct _GeeSortedSetIface GeeSortedSetIface;
90 #define GEE_TYPE_BIDIR_SORTED_SET (gee_bidir_sorted_set_get_type ())
91 #define GEE_BIDIR_SORTED_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_BIDIR_SORTED_SET, GeeBidirSortedSet))
92 #define GEE_IS_BIDIR_SORTED_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_BIDIR_SORTED_SET))
93 #define GEE_BIDIR_SORTED_SET_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_BIDIR_SORTED_SET, GeeBidirSortedSetIface))
95 typedef struct _GeeBidirSortedSet GeeBidirSortedSet;
96 typedef struct _GeeBidirSortedSetIface GeeBidirSortedSetIface;
98 #define GEE_TYPE_BIDIR_ITERATOR (gee_bidir_iterator_get_type ())
99 #define GEE_BIDIR_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_BIDIR_ITERATOR, GeeBidirIterator))
100 #define GEE_IS_BIDIR_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_BIDIR_ITERATOR))
101 #define GEE_BIDIR_ITERATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GEE_TYPE_BIDIR_ITERATOR, GeeBidirIteratorIface))
103 typedef struct _GeeBidirIterator GeeBidirIterator;
104 typedef struct _GeeBidirIteratorIface GeeBidirIteratorIface;
106 #define GEE_TYPE_ABSTRACT_COLLECTION (gee_abstract_collection_get_type ())
107 #define GEE_ABSTRACT_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection))
108 #define GEE_ABSTRACT_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollectionClass))
109 #define GEE_IS_ABSTRACT_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_ABSTRACT_COLLECTION))
110 #define GEE_IS_ABSTRACT_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_ABSTRACT_COLLECTION))
111 #define GEE_ABSTRACT_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollectionClass))
113 typedef struct _GeeAbstractCollection GeeAbstractCollection;
114 typedef struct _GeeAbstractCollectionClass GeeAbstractCollectionClass;
116 #define GEE_TYPE_ABSTRACT_SET (gee_abstract_set_get_type ())
117 #define GEE_ABSTRACT_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_ABSTRACT_SET, GeeAbstractSet))
118 #define GEE_ABSTRACT_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_ABSTRACT_SET, GeeAbstractSetClass))
119 #define GEE_IS_ABSTRACT_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_ABSTRACT_SET))
120 #define GEE_IS_ABSTRACT_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_ABSTRACT_SET))
121 #define GEE_ABSTRACT_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_ABSTRACT_SET, GeeAbstractSetClass))
123 typedef struct _GeeAbstractSet GeeAbstractSet;
124 typedef struct _GeeAbstractSetClass GeeAbstractSetClass;
126 #define GEE_TYPE_ABSTRACT_SORTED_SET (gee_abstract_sorted_set_get_type ())
127 #define GEE_ABSTRACT_SORTED_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_ABSTRACT_SORTED_SET, GeeAbstractSortedSet))
128 #define GEE_ABSTRACT_SORTED_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_ABSTRACT_SORTED_SET, GeeAbstractSortedSetClass))
129 #define GEE_IS_ABSTRACT_SORTED_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_ABSTRACT_SORTED_SET))
130 #define GEE_IS_ABSTRACT_SORTED_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_ABSTRACT_SORTED_SET))
131 #define GEE_ABSTRACT_SORTED_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_ABSTRACT_SORTED_SET, GeeAbstractSortedSetClass))
133 typedef struct _GeeAbstractSortedSet GeeAbstractSortedSet;
134 typedef struct _GeeAbstractSortedSetClass GeeAbstractSortedSetClass;
136 #define GEE_TYPE_ABSTRACT_BIDIR_SORTED_SET (gee_abstract_bidir_sorted_set_get_type ())
137 #define GEE_ABSTRACT_BIDIR_SORTED_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_ABSTRACT_BIDIR_SORTED_SET, GeeAbstractBidirSortedSet))
138 #define GEE_ABSTRACT_BIDIR_SORTED_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_ABSTRACT_BIDIR_SORTED_SET, GeeAbstractBidirSortedSetClass))
139 #define GEE_IS_ABSTRACT_BIDIR_SORTED_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_ABSTRACT_BIDIR_SORTED_SET))
140 #define GEE_IS_ABSTRACT_BIDIR_SORTED_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_ABSTRACT_BIDIR_SORTED_SET))
141 #define GEE_ABSTRACT_BIDIR_SORTED_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_ABSTRACT_BIDIR_SORTED_SET, GeeAbstractBidirSortedSetClass))
143 typedef struct _GeeAbstractBidirSortedSet GeeAbstractBidirSortedSet;
144 typedef struct _GeeAbstractBidirSortedSetClass GeeAbstractBidirSortedSetClass;
146 #define GEE_TYPE_TREE_SET (gee_tree_set_get_type ())
147 #define GEE_TREE_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_TREE_SET, GeeTreeSet))
148 #define GEE_TREE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_TREE_SET, GeeTreeSetClass))
149 #define GEE_IS_TREE_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_TREE_SET))
150 #define GEE_IS_TREE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_TREE_SET))
151 #define GEE_TREE_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_TREE_SET, GeeTreeSetClass))
153 typedef struct _GeeTreeSet GeeTreeSet;
154 typedef struct _GeeTreeSetClass GeeTreeSetClass;
155 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
157 typedef gboolean (*GeeForallFunc) (gpointer g, void* user_data);
159 GEE_TRAVERSABLE_STREAM_YIELD,
160 GEE_TRAVERSABLE_STREAM_CONTINUE,
161 GEE_TRAVERSABLE_STREAM_END
162 } GeeTraversableStream;
164 typedef GeeTraversableStream (*GeeStreamFunc) (GeeTraversableStream state, GeeLazy* g, GeeLazy** lazy, void* user_data);
165 struct _GeeIteratorIface {
166 GTypeInterface parent_iface;
167 gboolean (*next) (GeeIterator* self);
168 gboolean (*has_next) (GeeIterator* self);
169 gpointer (*get) (GeeIterator* self);
170 void (*remove) (GeeIterator* self);
171 gboolean (*get_valid) (GeeIterator* self);
172 gboolean (*get_read_only) (GeeIterator* self);
175 typedef gpointer (*GeeFoldFunc) (gpointer g, gpointer a, void* user_data);
176 typedef gpointer (*GeeMapFunc) (gpointer g, void* user_data);
177 typedef gboolean (*GeePredicate) (gconstpointer g, void* user_data);
178 struct _GeeTraversableIface {
179 GTypeInterface parent_iface;
180 GType (*get_g_type) (GeeTraversable* self);
181 GBoxedCopyFunc (*get_g_dup_func) (GeeTraversable* self);
182 GDestroyNotify (*get_g_destroy_func) (GeeTraversable* self);
183 gboolean (*foreach) (GeeTraversable* self, GeeForallFunc f, void* f_target);
184 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);
185 gpointer (*fold) (GeeTraversable* self, GType a_type, GBoxedCopyFunc a_dup_func, GDestroyNotify a_destroy_func, GeeFoldFunc f, void* f_target, gpointer seed);
186 GeeIterator* (*map) (GeeTraversable* self, GType a_type, GBoxedCopyFunc a_dup_func, GDestroyNotify a_destroy_func, GeeMapFunc f, void* f_target);
187 GeeIterator* (*scan) (GeeTraversable* self, GType a_type, GBoxedCopyFunc a_dup_func, GDestroyNotify a_destroy_func, GeeFoldFunc f, void* f_target, gpointer seed);
188 GeeIterator* (*filter) (GeeTraversable* self, GeePredicate pred, void* pred_target, GDestroyNotify pred_target_destroy_notify);
189 GeeIterator* (*chop) (GeeTraversable* self, gint offset, gint length);
190 GType (*get_element_type) (GeeTraversable* self);
193 struct _GeeIterableIface {
194 GTypeInterface parent_iface;
195 GType (*get_g_type) (GeeIterable* self);
196 GBoxedCopyFunc (*get_g_dup_func) (GeeIterable* self);
197 GDestroyNotify (*get_g_destroy_func) (GeeIterable* self);
198 GeeIterator* (*iterator) (GeeIterable* self);
201 struct _GeeCollectionIface {
202 GTypeInterface parent_iface;
203 GType (*get_g_type) (GeeCollection* self);
204 GBoxedCopyFunc (*get_g_dup_func) (GeeCollection* self);
205 GDestroyNotify (*get_g_destroy_func) (GeeCollection* self);
206 gboolean (*contains) (GeeCollection* self, gconstpointer item);
207 gboolean (*add) (GeeCollection* self, gconstpointer item);
208 gboolean (*remove) (GeeCollection* self, gconstpointer item);
209 void (*clear) (GeeCollection* self);
210 gboolean (*add_all) (GeeCollection* self, GeeCollection* collection);
211 gboolean (*contains_all) (GeeCollection* self, GeeCollection* collection);
212 gboolean (*remove_all) (GeeCollection* self, GeeCollection* collection);
213 gboolean (*retain_all) (GeeCollection* self, GeeCollection* collection);
214 gpointer* (*to_array) (GeeCollection* self, int* result_length1);
215 gint (*get_size) (GeeCollection* self);
216 gboolean (*get_is_empty) (GeeCollection* self);
217 gboolean (*get_read_only) (GeeCollection* self);
218 GeeCollection* (*get_read_only_view) (GeeCollection* self);
221 struct _GeeSetIface {
222 GTypeInterface parent_iface;
223 GType (*get_g_type) (GeeSet* self);
224 GBoxedCopyFunc (*get_g_dup_func) (GeeSet* self);
225 GDestroyNotify (*get_g_destroy_func) (GeeSet* self);
226 GeeSet* (*get_read_only_view) (GeeSet* self);
229 struct _GeeSortedSetIface {
230 GTypeInterface parent_iface;
231 GType (*get_g_type) (GeeSortedSet* self);
232 GBoxedCopyFunc (*get_g_dup_func) (GeeSortedSet* self);
233 GDestroyNotify (*get_g_destroy_func) (GeeSortedSet* self);
234 gpointer (*first) (GeeSortedSet* self);
235 gpointer (*last) (GeeSortedSet* self);
236 GeeIterator* (*iterator_at) (GeeSortedSet* self, gconstpointer element);
237 gpointer (*lower) (GeeSortedSet* self, gconstpointer element);
238 gpointer (*higher) (GeeSortedSet* self, gconstpointer element);
239 gpointer (*floor) (GeeSortedSet* self, gconstpointer element);
240 gpointer (*ceil) (GeeSortedSet* self, gconstpointer element);
241 GeeSortedSet* (*head_set) (GeeSortedSet* self, gconstpointer before);
242 GeeSortedSet* (*tail_set) (GeeSortedSet* self, gconstpointer after);
243 GeeSortedSet* (*sub_set) (GeeSortedSet* self, gconstpointer from, gconstpointer to);
244 GeeSortedSet* (*get_read_only_view) (GeeSortedSet* self);
247 struct _GeeBidirIteratorIface {
248 GTypeInterface parent_iface;
249 GType (*get_g_type) (GeeBidirIterator* self);
250 GBoxedCopyFunc (*get_g_dup_func) (GeeBidirIterator* self);
251 GDestroyNotify (*get_g_destroy_func) (GeeBidirIterator* self);
252 gboolean (*previous) (GeeBidirIterator* self);
253 gboolean (*has_previous) (GeeBidirIterator* self);
254 gboolean (*first) (GeeBidirIterator* self);
255 gboolean (*last) (GeeBidirIterator* self);
258 struct _GeeBidirSortedSetIface {
259 GTypeInterface parent_iface;
260 GType (*get_g_type) (GeeBidirSortedSet* self);
261 GBoxedCopyFunc (*get_g_dup_func) (GeeBidirSortedSet* self);
262 GDestroyNotify (*get_g_destroy_func) (GeeBidirSortedSet* self);
263 GeeBidirIterator* (*bidir_iterator) (GeeBidirSortedSet* self);
264 GeeBidirSortedSet* (*get_read_only_view) (GeeBidirSortedSet* self);
269 GType gee_traversable_stream_get_type (void) G_GNUC_CONST;
270 gpointer gee_lazy_ref (gpointer instance);
271 void gee_lazy_unref (gpointer instance);
272 GParamSpec* gee_param_spec_lazy (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
273 void gee_value_set_lazy (GValue* value, gpointer v_object);
274 void gee_value_take_lazy (GValue* value, gpointer v_object);
275 gpointer gee_value_get_lazy (const GValue* value);
276 GType gee_lazy_get_type (void) G_GNUC_CONST;
277 GType gee_iterator_get_type (void) G_GNUC_CONST;
278 GType gee_traversable_get_type (void) G_GNUC_CONST;
279 GType gee_iterable_get_type (void) G_GNUC_CONST;
280 GType gee_collection_get_type (void) G_GNUC_CONST;
281 GType gee_set_get_type (void) G_GNUC_CONST;
282 GType gee_sorted_set_get_type (void) G_GNUC_CONST;
283 GType gee_bidir_iterator_get_type (void) G_GNUC_CONST;
284 GType gee_bidir_sorted_set_get_type (void) G_GNUC_CONST;
285 GeeBidirIterator* gee_bidir_sorted_set_bidir_iterator (GeeBidirSortedSet* self);
286 GeeBidirSortedSet* gee_bidir_sorted_set_empty (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func);
287 GeeTreeSet* gee_tree_set_new (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify);
288 GeeTreeSet* gee_tree_set_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify);
289 GType gee_abstract_collection_get_type (void) G_GNUC_CONST;
290 GType gee_abstract_set_get_type (void) G_GNUC_CONST;
291 GType gee_abstract_sorted_set_get_type (void) G_GNUC_CONST;
292 GType gee_abstract_bidir_sorted_set_get_type (void) G_GNUC_CONST;
293 GType gee_tree_set_get_type (void) G_GNUC_CONST;
294 GeeBidirSortedSet* gee_abstract_bidir_sorted_set_get_read_only_view (GeeAbstractBidirSortedSet* self);
295 GeeBidirSortedSet* gee_bidir_sorted_set_get_read_only_view (GeeBidirSortedSet* self);
299 * Returns a {@link BidirIterator} that can be used for bi-directional
300 * iteration over this sorted set.
302 * @return a {@link BidirIterator} over this sorted set
304 GeeBidirIterator* gee_bidir_sorted_set_bidir_iterator (GeeBidirSortedSet* self) {
305 g_return_val_if_fail (self != NULL, NULL);
306 return GEE_BIDIR_SORTED_SET_GET_INTERFACE (self)->bidir_iterator (self);
311 * Returns an immutable empty sorted set.
313 * @return an immutable empty sorted set
315 GeeBidirSortedSet* gee_bidir_sorted_set_empty (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func) {
316 GeeBidirSortedSet* result = NULL;
319 GeeBidirSortedSet* _tmp2_;
320 GeeBidirSortedSet* _tmp3_;
321 GeeBidirSortedSet* _tmp4_;
322 _tmp0_ = gee_tree_set_new (g_type, (GBoxedCopyFunc) g_dup_func, g_destroy_func, NULL, NULL, NULL);
324 _tmp2_ = gee_abstract_bidir_sorted_set_get_read_only_view ((GeeAbstractBidirSortedSet*) _tmp1_);
327 _g_object_unref0 (_tmp1_);
333 GeeBidirSortedSet* gee_bidir_sorted_set_get_read_only_view (GeeBidirSortedSet* self) {
334 g_return_val_if_fail (self != NULL, NULL);
335 return GEE_BIDIR_SORTED_SET_GET_INTERFACE (self)->get_read_only_view (self);
339 static void gee_bidir_sorted_set_base_init (GeeBidirSortedSetIface * iface) {
340 static gboolean initialized = FALSE;
344 * The read-only view of this set.
346 g_object_interface_install_property (iface, g_param_spec_object ("read-only-view", "read-only-view", "read-only-view", GEE_TYPE_BIDIR_SORTED_SET, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
351 GType gee_bidir_sorted_set_get_type (void) {
352 static volatile gsize gee_bidir_sorted_set_type_id__volatile = 0;
353 if (g_once_init_enter (&gee_bidir_sorted_set_type_id__volatile)) {
354 static const GTypeInfo g_define_type_info = { sizeof (GeeBidirSortedSetIface), (GBaseInitFunc) gee_bidir_sorted_set_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
355 GType gee_bidir_sorted_set_type_id;
356 gee_bidir_sorted_set_type_id = g_type_register_static (G_TYPE_INTERFACE, "GeeBidirSortedSet", &g_define_type_info, 0);
357 g_type_interface_add_prerequisite (gee_bidir_sorted_set_type_id, GEE_TYPE_SORTED_SET);
358 g_once_init_leave (&gee_bidir_sorted_set_type_id__volatile, gee_bidir_sorted_set_type_id);
360 return gee_bidir_sorted_set_type_id__volatile;