• Home
  • Raw
  • Download

Lines Matching refs:relation

64   GRelation *relation;  in main()  local
69 relation = g_relation_new (2); in main()
71 g_relation_index (relation, 0, g_int_hash, g_int_equal); in main()
72 g_relation_index (relation, 1, g_int_hash, g_int_equal); in main()
79 g_relation_insert (relation, data + i, data + i + 1); in main()
80 g_relation_insert (relation, data + i, data + i - 1); in main()
85 g_assert (! g_relation_exists (relation, data + i, data + i)); in main()
86 g_assert (! g_relation_exists (relation, data + i, data + i + 2)); in main()
87 g_assert (! g_relation_exists (relation, data + i, data + i - 2)); in main()
92 g_assert (g_relation_exists (relation, data + i, data + i + 1)); in main()
93 g_assert (g_relation_exists (relation, data + i, data + i - 1)); in main()
98 g_assert (g_relation_count (relation, data + i, 0) == 2); in main()
99 g_assert (g_relation_count (relation, data + i, 1) == 2); in main()
102 g_assert (g_relation_count (relation, data, 0) == 0); in main()
104 g_assert (g_relation_count (relation, data + 42, 0) == 2); in main()
105 g_assert (g_relation_count (relation, data + 43, 1) == 2); in main()
106 g_assert (g_relation_count (relation, data + 41, 1) == 2); in main()
107 g_relation_delete (relation, data + 42, 0); in main()
108 g_assert (g_relation_count (relation, data + 42, 0) == 0); in main()
109 g_assert (g_relation_count (relation, data + 43, 1) == 1); in main()
110 g_assert (g_relation_count (relation, data + 41, 1) == 1); in main()
112 tuples = g_relation_select (relation, data + 200, 0); in main()
125 g_assert (g_relation_exists (relation, data + 300, data + 301)); in main()
126 g_relation_delete (relation, data + 300, 0); in main()
127 g_assert (!g_relation_exists (relation, data + 300, data + 301)); in main()
131 g_relation_destroy (relation); in main()
133 relation = NULL; in main()