/* rygel-tracker-query-triplets.c generated by valac 0.17.4.16-52707, the Vala compiler
 * generated from rygel-tracker-query-triplets.vala, do not modify */

/*
 * Copyright (C) 2008 Nokia Corporation.
 *
 * Author: Zeeshan Ali <zeenix@gmail.com>
 *
 * This file is part of Rygel.
 *
 * Rygel is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Rygel is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#include <glib.h>
#include <glib-object.h>
#include <gee.h>
#include <stdlib.h>
#include <string.h>


#define RYGEL_TRACKER_TYPE_QUERY_TRIPLETS (rygel_tracker_query_triplets_get_type ())
#define RYGEL_TRACKER_QUERY_TRIPLETS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TRACKER_TYPE_QUERY_TRIPLETS, RygelTrackerQueryTriplets))
#define RYGEL_TRACKER_QUERY_TRIPLETS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TRACKER_TYPE_QUERY_TRIPLETS, RygelTrackerQueryTripletsClass))
#define RYGEL_TRACKER_IS_QUERY_TRIPLETS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TRACKER_TYPE_QUERY_TRIPLETS))
#define RYGEL_TRACKER_IS_QUERY_TRIPLETS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TRACKER_TYPE_QUERY_TRIPLETS))
#define RYGEL_TRACKER_QUERY_TRIPLETS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TRACKER_TYPE_QUERY_TRIPLETS, RygelTrackerQueryTripletsClass))

typedef struct _RygelTrackerQueryTriplets RygelTrackerQueryTriplets;
typedef struct _RygelTrackerQueryTripletsClass RygelTrackerQueryTripletsClass;
typedef struct _RygelTrackerQueryTripletsPrivate RygelTrackerQueryTripletsPrivate;

#define RYGEL_TRACKER_TYPE_QUERY_TRIPLET (rygel_tracker_query_triplet_get_type ())
#define RYGEL_TRACKER_QUERY_TRIPLET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TRACKER_TYPE_QUERY_TRIPLET, RygelTrackerQueryTriplet))
#define RYGEL_TRACKER_QUERY_TRIPLET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TRACKER_TYPE_QUERY_TRIPLET, RygelTrackerQueryTripletClass))
#define RYGEL_TRACKER_IS_QUERY_TRIPLET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TRACKER_TYPE_QUERY_TRIPLET))
#define RYGEL_TRACKER_IS_QUERY_TRIPLET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TRACKER_TYPE_QUERY_TRIPLET))
#define RYGEL_TRACKER_QUERY_TRIPLET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TRACKER_TYPE_QUERY_TRIPLET, RygelTrackerQueryTripletClass))

typedef struct _RygelTrackerQueryTriplet RygelTrackerQueryTriplet;
typedef struct _RygelTrackerQueryTripletClass RygelTrackerQueryTripletClass;
#define _rygel_tracker_query_triplet_unref0(var) ((var == NULL) ? NULL : (var = (rygel_tracker_query_triplet_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _RygelTrackerQueryTripletPrivate RygelTrackerQueryTripletPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _RygelTrackerQueryTriplets {
	GeeArrayList parent_instance;
	RygelTrackerQueryTripletsPrivate * priv;
};

struct _RygelTrackerQueryTripletsClass {
	GeeArrayListClass parent_class;
};

struct _RygelTrackerQueryTriplet {
	GTypeInstance parent_instance;
	volatile int ref_count;
	RygelTrackerQueryTripletPrivate * priv;
	gchar* graph;
	gchar* subject;
	gchar* predicate;
	gchar* obj;
	RygelTrackerQueryTriplet* next;
};

struct _RygelTrackerQueryTripletClass {
	GTypeClass parent_class;
	void (*finalize) (RygelTrackerQueryTriplet *self);
};


static gpointer rygel_tracker_query_triplets_parent_class = NULL;

GType rygel_tracker_query_triplets_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_TRACKER_QUERY_TRIPLETS_DUMMY_PROPERTY
};
RygelTrackerQueryTriplets* rygel_tracker_query_triplets_new (void);
RygelTrackerQueryTriplets* rygel_tracker_query_triplets_construct (GType object_type);
gpointer rygel_tracker_query_triplet_ref (gpointer instance);
void rygel_tracker_query_triplet_unref (gpointer instance);
GParamSpec* rygel_tracker_param_spec_query_triplet (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void rygel_tracker_value_set_query_triplet (GValue* value, gpointer v_object);
void rygel_tracker_value_take_query_triplet (GValue* value, gpointer v_object);
gpointer rygel_tracker_value_get_query_triplet (const GValue* value);
GType rygel_tracker_query_triplet_get_type (void) G_GNUC_CONST;
gboolean rygel_tracker_query_triplet_equal_func (RygelTrackerQueryTriplet* a, RygelTrackerQueryTriplet* b);
RygelTrackerQueryTriplets* rygel_tracker_query_triplets_new_clone (RygelTrackerQueryTriplets* triplets);
RygelTrackerQueryTriplets* rygel_tracker_query_triplets_construct_clone (GType object_type, RygelTrackerQueryTriplets* triplets);
RygelTrackerQueryTriplet* rygel_tracker_query_triplet_new_clone (RygelTrackerQueryTriplet* triplet);
RygelTrackerQueryTriplet* rygel_tracker_query_triplet_construct_clone (GType object_type, RygelTrackerQueryTriplet* triplet);
gchar* rygel_tracker_query_triplets_serialize (RygelTrackerQueryTriplets* self);
gchar* rygel_tracker_query_triplet_to_string (RygelTrackerQueryTriplet* self, gboolean include_subject);
static gboolean rygel_tracker_query_triplets_check_graph_change (RygelTrackerQueryTriplets* self, gint i);
static gboolean rygel_tracker_query_triplets_real_add (GeeAbstractCollection* base, RygelTrackerQueryTriplet* triplet);


RygelTrackerQueryTriplets* rygel_tracker_query_triplets_construct (GType object_type) {
	RygelTrackerQueryTriplets * self = NULL;
	self = (RygelTrackerQueryTriplets*) gee_array_list_construct (object_type, RYGEL_TRACKER_TYPE_QUERY_TRIPLET, (GBoxedCopyFunc) rygel_tracker_query_triplet_ref, rygel_tracker_query_triplet_unref, (GEqualFunc) rygel_tracker_query_triplet_equal_func);
	return self;
}


RygelTrackerQueryTriplets* rygel_tracker_query_triplets_new (void) {
	return rygel_tracker_query_triplets_construct (RYGEL_TRACKER_TYPE_QUERY_TRIPLETS);
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


RygelTrackerQueryTriplets* rygel_tracker_query_triplets_construct_clone (GType object_type, RygelTrackerQueryTriplets* triplets) {
	RygelTrackerQueryTriplets * self = NULL;
	g_return_val_if_fail (triplets != NULL, NULL);
	self = (RygelTrackerQueryTriplets*) gee_array_list_construct (object_type, RYGEL_TRACKER_TYPE_QUERY_TRIPLET, (GBoxedCopyFunc) rygel_tracker_query_triplet_ref, rygel_tracker_query_triplet_unref, (GEqualFunc) rygel_tracker_query_triplet_equal_func);
	{
		RygelTrackerQueryTriplets* _tmp0_;
		RygelTrackerQueryTriplets* _tmp1_;
		RygelTrackerQueryTriplets* _triplet_list;
		RygelTrackerQueryTriplets* _tmp2_;
		gint _tmp3_;
		gint _tmp4_;
		gint _triplet_size;
		gint _triplet_index;
		_tmp0_ = triplets;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_triplet_list = _tmp1_;
		_tmp2_ = _triplet_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_triplet_size = _tmp4_;
		_triplet_index = -1;
		while (TRUE) {
			gint _tmp5_;
			gint _tmp6_;
			gint _tmp7_;
			RygelTrackerQueryTriplets* _tmp8_;
			gint _tmp9_;
			gpointer _tmp10_ = NULL;
			RygelTrackerQueryTriplet* triplet;
			RygelTrackerQueryTriplet* _tmp11_;
			RygelTrackerQueryTriplet* _tmp12_;
			RygelTrackerQueryTriplet* _tmp13_;
			_tmp5_ = _triplet_index;
			_triplet_index = _tmp5_ + 1;
			_tmp6_ = _triplet_index;
			_tmp7_ = _triplet_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _triplet_list;
			_tmp9_ = _triplet_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			triplet = (RygelTrackerQueryTriplet*) _tmp10_;
			_tmp11_ = triplet;
			_tmp12_ = rygel_tracker_query_triplet_new_clone (_tmp11_);
			_tmp13_ = _tmp12_;
			gee_abstract_collection_add ((GeeAbstractCollection*) self, _tmp13_);
			_rygel_tracker_query_triplet_unref0 (_tmp13_);
			_rygel_tracker_query_triplet_unref0 (triplet);
		}
		_g_object_unref0 (_triplet_list);
	}
	return self;
}


RygelTrackerQueryTriplets* rygel_tracker_query_triplets_new_clone (RygelTrackerQueryTriplets* triplets) {
	return rygel_tracker_query_triplets_construct_clone (RYGEL_TRACKER_TYPE_QUERY_TRIPLETS, triplets);
}


gchar* rygel_tracker_query_triplets_serialize (RygelTrackerQueryTriplets* self) {
	gchar* result = NULL;
	gchar* _tmp0_;
	gchar* str;
	gboolean include_subject;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = g_strdup ("");
	str = _tmp0_;
	include_subject = TRUE;
	{
		gint i;
		i = 0;
		{
			gboolean _tmp1_;
			_tmp1_ = TRUE;
			while (TRUE) {
				gboolean _tmp2_;
				gint _tmp4_;
				gint _tmp5_;
				gint _tmp6_;
				gboolean _tmp7_ = FALSE;
				gint _tmp8_;
				gpointer _tmp9_ = NULL;
				RygelTrackerQueryTriplet* _tmp10_;
				const gchar* _tmp11_;
				gboolean _tmp12_;
				gboolean _tmp14_;
				const gchar* _tmp23_;
				gint _tmp24_;
				gpointer _tmp25_ = NULL;
				RygelTrackerQueryTriplet* _tmp26_;
				gboolean _tmp27_;
				gchar* _tmp28_ = NULL;
				gchar* _tmp29_;
				gchar* _tmp30_;
				gint _tmp31_;
				gint _tmp32_;
				gint _tmp33_;
				_tmp2_ = _tmp1_;
				if (!_tmp2_) {
					gint _tmp3_;
					_tmp3_ = i;
					i = _tmp3_ + 1;
				}
				_tmp1_ = FALSE;
				_tmp4_ = i;
				_tmp5_ = gee_abstract_collection_get_size ((GeeCollection*) self);
				_tmp6_ = _tmp5_;
				if (!(_tmp4_ < _tmp6_)) {
					break;
				}
				_tmp8_ = i;
				_tmp9_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp8_);
				_tmp10_ = (RygelTrackerQueryTriplet*) _tmp9_;
				_tmp11_ = _tmp10_->graph;
				_tmp12_ = _tmp11_ != NULL;
				_rygel_tracker_query_triplet_unref0 (_tmp10_);
				if (_tmp12_) {
					gboolean _tmp13_;
					_tmp13_ = include_subject;
					_tmp7_ = _tmp13_;
				} else {
					_tmp7_ = FALSE;
				}
				_tmp14_ = _tmp7_;
				if (_tmp14_) {
					const gchar* _tmp15_;
					gint _tmp16_;
					gpointer _tmp17_ = NULL;
					RygelTrackerQueryTriplet* _tmp18_;
					const gchar* _tmp19_;
					gchar* _tmp20_ = NULL;
					gchar* _tmp21_;
					gchar* _tmp22_;
					_tmp15_ = str;
					_tmp16_ = i;
					_tmp17_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp16_);
					_tmp18_ = (RygelTrackerQueryTriplet*) _tmp17_;
					_tmp19_ = _tmp18_->graph;
					_tmp20_ = g_strdup_printf ("GRAPH <%s> {", _tmp19_);
					_tmp21_ = _tmp20_;
					_tmp22_ = g_strconcat (_tmp15_, _tmp21_, NULL);
					_g_free0 (str);
					str = _tmp22_;
					_g_free0 (_tmp21_);
					_rygel_tracker_query_triplet_unref0 (_tmp18_);
				}
				_tmp23_ = str;
				_tmp24_ = i;
				_tmp25_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp24_);
				_tmp26_ = (RygelTrackerQueryTriplet*) _tmp25_;
				_tmp27_ = include_subject;
				_tmp28_ = rygel_tracker_query_triplet_to_string (_tmp26_, _tmp27_);
				_tmp29_ = _tmp28_;
				_tmp30_ = g_strconcat (_tmp23_, _tmp29_, NULL);
				_g_free0 (str);
				str = _tmp30_;
				_g_free0 (_tmp29_);
				_rygel_tracker_query_triplet_unref0 (_tmp26_);
				_tmp31_ = i;
				_tmp32_ = gee_abstract_collection_get_size ((GeeCollection*) self);
				_tmp33_ = _tmp32_;
				if (_tmp31_ < (_tmp33_ - 1)) {
					gboolean _tmp34_ = FALSE;
					gint _tmp35_;
					gpointer _tmp36_ = NULL;
					RygelTrackerQueryTriplet* _tmp37_;
					const gchar* _tmp38_;
					gint _tmp39_;
					gpointer _tmp40_ = NULL;
					RygelTrackerQueryTriplet* _tmp41_;
					const gchar* _tmp42_;
					gboolean _tmp43_;
					gboolean _tmp46_;
					gboolean _tmp47_;
					_tmp35_ = i;
					_tmp36_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp35_);
					_tmp37_ = (RygelTrackerQueryTriplet*) _tmp36_;
					_tmp38_ = _tmp37_->subject;
					_tmp39_ = i;
					_tmp40_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp39_ + 1);
					_tmp41_ = (RygelTrackerQueryTriplet*) _tmp40_;
					_tmp42_ = _tmp41_->subject;
					_tmp43_ = g_strcmp0 (_tmp38_, _tmp42_) != 0;
					_rygel_tracker_query_triplet_unref0 (_tmp41_);
					_rygel_tracker_query_triplet_unref0 (_tmp37_);
					if (_tmp43_) {
						_tmp34_ = TRUE;
					} else {
						gint _tmp44_;
						gboolean _tmp45_ = FALSE;
						_tmp44_ = i;
						_tmp45_ = rygel_tracker_query_triplets_check_graph_change (self, _tmp44_);
						_tmp34_ = _tmp45_;
					}
					_tmp46_ = _tmp34_;
					include_subject = _tmp46_;
					_tmp47_ = include_subject;
					if (_tmp47_) {
						const gchar* _tmp48_;
						gchar* _tmp49_;
						gint _tmp50_;
						gpointer _tmp51_ = NULL;
						RygelTrackerQueryTriplet* _tmp52_;
						const gchar* _tmp53_;
						gboolean _tmp54_;
						_tmp48_ = str;
						_tmp49_ = g_strconcat (_tmp48_, " . ", NULL);
						_g_free0 (str);
						str = _tmp49_;
						_tmp50_ = i;
						_tmp51_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp50_);
						_tmp52_ = (RygelTrackerQueryTriplet*) _tmp51_;
						_tmp53_ = _tmp52_->graph;
						_tmp54_ = _tmp53_ != NULL;
						_rygel_tracker_query_triplet_unref0 (_tmp52_);
						if (_tmp54_) {
							const gchar* _tmp55_;
							gchar* _tmp56_;
							_tmp55_ = str;
							_tmp56_ = g_strconcat (_tmp55_, "} ", NULL);
							_g_free0 (str);
							str = _tmp56_;
						}
					} else {
						const gchar* _tmp57_;
						gchar* _tmp58_;
						_tmp57_ = str;
						_tmp58_ = g_strconcat (_tmp57_, " ; ", NULL);
						_g_free0 (str);
						str = _tmp58_;
					}
				} else {
					gint _tmp59_;
					gpointer _tmp60_ = NULL;
					RygelTrackerQueryTriplet* _tmp61_;
					const gchar* _tmp62_;
					gboolean _tmp63_;
					_tmp59_ = i;
					_tmp60_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp59_);
					_tmp61_ = (RygelTrackerQueryTriplet*) _tmp60_;
					_tmp62_ = _tmp61_->graph;
					_tmp63_ = _tmp62_ != NULL;
					_rygel_tracker_query_triplet_unref0 (_tmp61_);
					if (_tmp63_) {
						const gchar* _tmp64_;
						gchar* _tmp65_;
						_tmp64_ = str;
						_tmp65_ = g_strconcat (_tmp64_, " . } ", NULL);
						_g_free0 (str);
						str = _tmp65_;
					}
				}
			}
		}
	}
	result = str;
	return result;
}


static gboolean rygel_tracker_query_triplets_real_add (GeeAbstractCollection* base, RygelTrackerQueryTriplet* triplet) {
	RygelTrackerQueryTriplets * self;
	gboolean result = FALSE;
	RygelTrackerQueryTriplet* _tmp0_;
	gboolean _tmp1_ = FALSE;
	self = (RygelTrackerQueryTriplets*) base;
	g_return_val_if_fail (triplet != NULL, FALSE);
	_tmp0_ = triplet;
	_tmp1_ = gee_abstract_collection_contains ((GeeAbstractCollection*) self, _tmp0_);
	if (!_tmp1_) {
		RygelTrackerQueryTriplet* _tmp2_;
		gboolean _tmp3_ = FALSE;
		_tmp2_ = triplet;
		_tmp3_ = GEE_ABSTRACT_COLLECTION_CLASS (rygel_tracker_query_triplets_parent_class)->add ((GeeAbstractCollection*) G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_ARRAY_LIST, GeeArrayList), _tmp2_);
		result = _tmp3_;
		return result;
	}
	result = FALSE;
	return result;
}


static gboolean rygel_tracker_query_triplets_check_graph_change (RygelTrackerQueryTriplets* self, gint i) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gint _tmp3_;
	gpointer _tmp4_ = NULL;
	RygelTrackerQueryTriplet* _tmp5_;
	const gchar* _tmp6_;
	gboolean _tmp7_;
	gboolean _tmp12_;
	gboolean _tmp24_;
	gboolean _tmp33_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp3_ = i;
	_tmp4_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp3_);
	_tmp5_ = (RygelTrackerQueryTriplet*) _tmp4_;
	_tmp6_ = _tmp5_->graph;
	_tmp7_ = _tmp6_ == NULL;
	_rygel_tracker_query_triplet_unref0 (_tmp5_);
	if (_tmp7_) {
		gint _tmp8_;
		gpointer _tmp9_ = NULL;
		RygelTrackerQueryTriplet* _tmp10_;
		const gchar* _tmp11_;
		_tmp8_ = i;
		_tmp9_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp8_ + 1);
		_tmp10_ = (RygelTrackerQueryTriplet*) _tmp9_;
		_tmp11_ = _tmp10_->graph;
		_tmp2_ = _tmp11_ != NULL;
		_rygel_tracker_query_triplet_unref0 (_tmp10_);
	} else {
		_tmp2_ = FALSE;
	}
	_tmp12_ = _tmp2_;
	if (_tmp12_) {
		_tmp1_ = TRUE;
	} else {
		gboolean _tmp13_ = FALSE;
		gint _tmp14_;
		gpointer _tmp15_ = NULL;
		RygelTrackerQueryTriplet* _tmp16_;
		const gchar* _tmp17_;
		gboolean _tmp18_;
		gboolean _tmp23_;
		_tmp14_ = i;
		_tmp15_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp14_);
		_tmp16_ = (RygelTrackerQueryTriplet*) _tmp15_;
		_tmp17_ = _tmp16_->graph;
		_tmp18_ = _tmp17_ != NULL;
		_rygel_tracker_query_triplet_unref0 (_tmp16_);
		if (_tmp18_) {
			gint _tmp19_;
			gpointer _tmp20_ = NULL;
			RygelTrackerQueryTriplet* _tmp21_;
			const gchar* _tmp22_;
			_tmp19_ = i;
			_tmp20_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp19_ + 1);
			_tmp21_ = (RygelTrackerQueryTriplet*) _tmp20_;
			_tmp22_ = _tmp21_->graph;
			_tmp13_ = _tmp22_ == NULL;
			_rygel_tracker_query_triplet_unref0 (_tmp21_);
		} else {
			_tmp13_ = FALSE;
		}
		_tmp23_ = _tmp13_;
		_tmp1_ = _tmp23_;
	}
	_tmp24_ = _tmp1_;
	if (_tmp24_) {
		_tmp0_ = TRUE;
	} else {
		gint _tmp25_;
		gpointer _tmp26_ = NULL;
		RygelTrackerQueryTriplet* _tmp27_;
		const gchar* _tmp28_;
		gint _tmp29_;
		gpointer _tmp30_ = NULL;
		RygelTrackerQueryTriplet* _tmp31_;
		const gchar* _tmp32_;
		_tmp25_ = i;
		_tmp26_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp25_);
		_tmp27_ = (RygelTrackerQueryTriplet*) _tmp26_;
		_tmp28_ = _tmp27_->graph;
		_tmp29_ = i;
		_tmp30_ = gee_abstract_list_get ((GeeAbstractList*) self, _tmp29_ + 1);
		_tmp31_ = (RygelTrackerQueryTriplet*) _tmp30_;
		_tmp32_ = _tmp31_->graph;
		_tmp0_ = g_strcmp0 (_tmp28_, _tmp32_) != 0;
		_rygel_tracker_query_triplet_unref0 (_tmp31_);
		_rygel_tracker_query_triplet_unref0 (_tmp27_);
	}
	_tmp33_ = _tmp0_;
	result = _tmp33_;
	return result;
}


static void rygel_tracker_query_triplets_class_init (RygelTrackerQueryTripletsClass * klass) {
	rygel_tracker_query_triplets_parent_class = g_type_class_peek_parent (klass);
	GEE_ABSTRACT_COLLECTION_CLASS (klass)->add = rygel_tracker_query_triplets_real_add;
}


static void rygel_tracker_query_triplets_instance_init (RygelTrackerQueryTriplets * self) {
}


/**
 * Represents a list of SPARQL Triplet
 */
GType rygel_tracker_query_triplets_get_type (void) {
	static volatile gsize rygel_tracker_query_triplets_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_tracker_query_triplets_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelTrackerQueryTripletsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_tracker_query_triplets_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelTrackerQueryTriplets), 0, (GInstanceInitFunc) rygel_tracker_query_triplets_instance_init, NULL };
		GType rygel_tracker_query_triplets_type_id;
		rygel_tracker_query_triplets_type_id = g_type_register_static (GEE_TYPE_ARRAY_LIST, "RygelTrackerQueryTriplets", &g_define_type_info, 0);
		g_once_init_leave (&rygel_tracker_query_triplets_type_id__volatile, rygel_tracker_query_triplets_type_id);
	}
	return rygel_tracker_query_triplets_type_id__volatile;
}



