File: gee-0.8.vapi

package info (click to toggle)
libgee-0.8 0.20.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,704 kB
  • sloc: ansic: 134,718; sh: 4,838; makefile: 372
file content (3536 lines) | stat: -rw-r--r-- 110,849 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
/* gee-0.8.vapi generated by valac 0.56.17, do not modify. */

[CCode (gir_namespace = "Gee", gir_version = "0.8")]
namespace Gee {
	/**
	 * Helpers for equal, hash and compare functions.
	 *
	 * With those functions, you can retrieve the equal, hash and compare
	 * functions that best match your element, key or value types. Supported
	 * types are (non-boxed) primitive, string and ``Object`` types.
	 *
	 * A special care is taken for classes inheriting from the
	 * {@link Comparable} interface. For such types, an appropriate compare
	 * function is returned that calls {@link Comparable.compare_to}.
	 *
	 */
	namespace Functions {
		/**
		 * Get a comparator function for a given type.
		 *
		 * @param t the type which to get a comparator function for.
		 *
		 * @return the comparator function corresponding to the given type.
		 */
		[CCode (cheader_filename = "gee.h")]
		public static GLib.CompareDataFunc<void*> get_compare_func_for (GLib.Type t);
		/**
		 * Get a equality testing function for a given type.
		 *
		 * @param t the type which to get an equality testing function for.
		 *
		 * @return the equality testing function corresponding to the given type.
		 */
		[CCode (cheader_filename = "gee.h")]
		public static Gee.EqualDataFunc<void*> get_equal_func_for (GLib.Type t);
		/**
		 * Get a hash function for a given type.
		 *
		 * @param t the type which to get the hash function for.
		 *
		 * @return the hash function corresponding to the given type.
		 */
		[CCode (cheader_filename = "gee.h")]
		public static Gee.HashDataFunc<void*> get_hash_func_for (GLib.Type t);
	}
	[CCode (cheader_filename = "gee.h")]
	public abstract class AbstractBidirList<G> : Gee.AbstractList<G>, Gee.BidirList<G> {
		protected AbstractBidirList ();
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.BidirListIterator<G> bidir_list_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public new virtual Gee.BidirList<G> read_only_view { owned get; }
	}
	/**
	 * Skeletal implementation of the {@link BidirSortedSet} interface.
	 *
	 * Contains common code shared by all set implementations.
	 *
	 * @see TreeSet
	 */
	[CCode (cheader_filename = "gee.h")]
	public abstract class AbstractBidirSortedMap<K,V> : Gee.AbstractSortedMap<K,V>, Gee.BidirSortedMap<K,V> {
		protected AbstractBidirSortedMap ();
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.BidirMapIterator<K,V> bidir_map_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public new virtual Gee.BidirSortedMap<K,V> read_only_view { owned get; }
	}
	/**
	 * Skeletal implementation of the {@link BidirSortedSet} interface.
	 *
	 * Contains common code shared by all set implementations.
	 *
	 * @see TreeSet
	 */
	[CCode (cheader_filename = "gee.h")]
	public abstract class AbstractBidirSortedSet<G> : Gee.AbstractSortedSet<G>, Gee.BidirSortedSet<G> {
		protected AbstractBidirSortedSet ();
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.BidirIterator<G> bidir_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public new virtual Gee.BidirSortedSet<G> read_only_view { owned get; }
	}
	/**
	 * Skeletal implementation of the {@link Collection} interface.
	 *
	 * Contains common code shared by all collection implementations.
	 *
	 * @see AbstractList
	 * @see AbstractSet
	 * @see AbstractMultiSet
	 */
	[CCode (cheader_filename = "gee.h")]
	public abstract class AbstractCollection<G> : GLib.Object, Gee.Traversable<G>, Gee.Iterable<G>, Gee.Collection<G> {
		protected AbstractCollection ();
		/**
		 * {@inheritDoc}
		 */
		public abstract bool add (G item);
		/**
		 * {@inheritDoc}
		 */
		public abstract void clear ();
		/**
		 * {@inheritDoc}
		 */
		public abstract bool contains (G item);
		public virtual bool @foreach (Gee.ForallFunc<G> f);
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.Iterator<G> iterator ();
		/**
		 * {@inheritDoc}
		 */
		public abstract bool remove (G item);
		/**
		 * {@inheritDoc}
		 */
		public abstract bool read_only { get; }
		/**
		 * {@inheritDoc}
		 */
		public virtual Gee.Collection<G> read_only_view { owned get; }
		/**
		 * {@inheritDoc}
		 */
		public abstract int size { get; }
	}
	/**
	 * Skeletal implementation of the {@link List} interface.
	 *
	 * Contains common code shared by all list implementations.
	 *
	 * @see ArrayList
	 * @see LinkedList
	 */
	[CCode (cheader_filename = "gee.h")]
	public abstract class AbstractList<G> : Gee.AbstractCollection<G>, Gee.List<G> {
		protected AbstractList ();
		/**
		 * {@inheritDoc}
		 */
		public new abstract G @get (int index);
		/**
		 * {@inheritDoc}
		 */
		public abstract int index_of (G item);
		/**
		 * {@inheritDoc}
		 */
		public abstract void insert (int index, G item);
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.ListIterator<G> list_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public abstract G remove_at (int index);
		/**
		 * {@inheritDoc}
		 */
		public new abstract void @set (int index, G item);
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.List<G>? slice (int start, int stop);
		/**
		 * {@inheritDoc}
		 */
		public new virtual Gee.List<G> read_only_view { owned get; }
	}
	/**
	 * Skeletal implementation of the {@link Map} interface.
	 *
	 * Contains common code shared by all map implementations.
	 *
	 * @see HashMap
	 * @see TreeMap
	 */
	[CCode (cheader_filename = "gee.h")]
	public abstract class AbstractMap<K,V> : GLib.Object, Gee.Traversable<Gee.Map.Entry<K,V>>, Gee.Iterable<Gee.Map.Entry<K,V>>, Gee.Map<K,V> {
		protected AbstractMap ();
		/**
		 * {@inheritDoc}
		 */
		public abstract void clear ();
		/**
		 * {@inheritDoc}
		 */
		public virtual bool @foreach (Gee.ForallFunc<Gee.Map.Entry<K,V>> f);
		/**
		 * {@inheritDoc}
		 */
		public new abstract V @get (K key);
		/**
		 * {@inheritDoc}
		 */
		public abstract bool has (K key, V value);
		/**
		 * {@inheritDoc}
		 */
		public abstract bool has_key (K key);
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.MapIterator<K,V> map_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public new abstract void @set (K key, V value);
		/**
		 * {@inheritDoc}
		 */
		public virtual Gee.Iterator<A> stream<A> (owned Gee.StreamFunc<Gee.Map.Entry<K,V>,A> f);
		/**
		 * {@inheritDoc}
		 */
		public abstract bool unset (K key, out V value = null);
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.Set<Gee.Map.Entry<K,V>> entries { owned get; }
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.Set<K> keys { owned get; }
		/**
		 * {@inheritDoc}
		 */
		public abstract bool read_only { get; }
		/**
		 * {@inheritDoc}
		 */
		public virtual Gee.Map<K,V> read_only_view { owned get; }
		/**
		 * {@inheritDoc}
		 */
		public abstract int size { get; }
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.Collection<V> values { owned get; }
	}
	/**
	 * Skeletal implementation of the {@link MultiMap} interface.
	 *
	 * @see HashMultiMap
	 * @see TreeMultiMap
	 */
	[CCode (cheader_filename = "gee.h")]
	public abstract class AbstractMultiMap<K,V> : GLib.Object, Gee.MultiMap<K,V> {
		protected Gee.Map<K,Gee.Collection<V>> _storage_map;
		protected AbstractMultiMap (Gee.Map<K,Gee.Collection<V>> storage_map);
		protected abstract Gee.MultiSet<K> create_multi_key_set ();
		protected abstract Gee.Collection<V> create_value_storage ();
		protected abstract Gee.EqualDataFunc<V> get_value_equal_func ();
		public new virtual Gee.MultiMap<K,V> read_only_view { owned get; }
	}
	/**
	 * Skeletal implementation of the {@link MultiSet} interface.
	 *
	 * @see HashMultiSet
	 * @see TreeMultiSet
	 */
	[CCode (cheader_filename = "gee.h")]
	public abstract class AbstractMultiSet<G> : Gee.AbstractCollection<G>, Gee.MultiSet<G> {
		protected Gee.Map<G,int> _storage_map;
		/**
		 * Constructs a new, empty abstract multi set.
		 */
		protected AbstractMultiSet (Gee.Map<G,int> storage_map);
		public override bool add (G item);
		public override void clear ();
		public override bool contains (G item);
		public override Gee.Iterator<G> iterator ();
		public override bool remove (G item);
		public override bool read_only { get; }
		public new virtual Gee.MultiSet<G> read_only_view { owned get; }
		public override int size { get; }
	}
	/**
	 * Skeletal implementation of the {@link Queue} interface.
	 *
	 * Contains common code shared by all queue implementations.
	 *
	 * @see PriorityQueue
	 */
	[CCode (cheader_filename = "gee.h")]
	public abstract class AbstractQueue<G> : Gee.AbstractCollection<G>, Gee.Queue<G> {
		protected AbstractQueue ();
		/**
		 * {@inheritDoc}
		 */
		public abstract G peek ();
		/**
		 * {@inheritDoc}
		 */
		public abstract G poll ();
		/**
		 * {@inheritDoc}
		 */
		public abstract int capacity { get; }
		/**
		 * {@inheritDoc}
		 */
		public abstract bool is_full { get; }
		/**
		 * {@inheritDoc}
		 */
		public abstract int remaining_capacity { get; }
	}
	/**
	 * Skeletal implementation of the {@link Set} interface.
	 *
	 * Contains common code shared by all set implementations.
	 *
	 * @see HashSet
	 * @see TreeSet
	 */
	[CCode (cheader_filename = "gee.h")]
	public abstract class AbstractSet<G> : Gee.AbstractCollection<G>, Gee.Set<G> {
		protected AbstractSet ();
		/**
		 * {@inheritDoc}
		 */
		public new virtual Gee.Set<G> read_only_view { owned get; }
	}
	[CCode (cheader_filename = "gee.h")]
	public abstract class AbstractSortedMap<K,V> : Gee.AbstractMap<K,V>, Gee.SortedMap<K,V> {
		protected AbstractSortedMap ();
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.SortedMap<K,V> head_map (K before);
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.SortedMap<K,V> sub_map (K before, K after);
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.SortedMap<K,V> tail_map (K after);
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.SortedSet<Gee.Map.Entry<K,V>> ascending_entries { owned get; }
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.SortedSet<K> ascending_keys { owned get; }
	}
	/**
	 * Skeletal implementation of the {@link SortedSet} interface.
	 *
	 * Contains common code shared by all set implementations.
	 *
	 * @see TreeSet
	 */
	[CCode (cheader_filename = "gee.h")]
	public abstract class AbstractSortedSet<G> : Gee.AbstractSet<G>, Gee.SortedSet<G> {
		protected AbstractSortedSet ();
		/**
		 * {@inheritDoc}
		 */
		public abstract G ceil (G element);
		/**
		 * {@inheritDoc}
		 */
		public abstract G first ();
		/**
		 * {@inheritDoc}
		 */
		public abstract G floor (G element);
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.SortedSet<G> head_set (G before);
		/**
		 * {@inheritDoc}
		 */
		public abstract G higher (G element);
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.Iterator<G>? iterator_at (G element);
		/**
		 * {@inheritDoc}
		 */
		public abstract G last ();
		/**
		 * {@inheritDoc}
		 */
		public abstract G lower (G element);
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.SortedSet<G> sub_set (G from, G to);
		/**
		 * {@inheritDoc}
		 */
		public abstract Gee.SortedSet<G> tail_set (G after);
		/**
		 * {@inheritDoc}
		 */
		public new virtual Gee.SortedSet<G> read_only_view { owned get; }
	}
	/**
	 * Resizable array implementation of the {@link List} interface.
	 *
	 * The storage array grows automatically when needed.
	 *
	 * This implementation is pretty good for rarely modified data. Because they are
	 * stored in an array this structure does not fit for highly mutable data. For an
	 * alternative implementation see {@link LinkedList}.
	 *
	 * @see LinkedList
	 */
	[CCode (cheader_filename = "gee.h")]
	public class ArrayList<G> : Gee.AbstractBidirList<G> {
		/**
		 * Constructs a new, empty array list.
		 *
		 * If not provided, the function parameter is requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param equal_func an optional element equality testing function
		 */
		public ArrayList (owned Gee.EqualDataFunc<G>? equal_func = null);
		/**
		 * {@inheritDoc}
		 */
		public override bool add (G item);
		/**
		 * {@inheritDoc}
		 */
		public bool add_all (Gee.Collection<G> collection);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.BidirListIterator<G> bidir_list_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override void clear ();
		/**
		 * {@inheritDoc}
		 */
		public override bool contains (G item);
		/**
		 * {@inheritDoc}
		 */
		public override bool @foreach (Gee.ForallFunc<G> f);
		/**
		 * {@inheritDoc}
		 */
		public override G @get (int index);
		/**
		 * {@inheritDoc}
		 */
		public override int index_of (G item);
		/**
		 * {@inheritDoc}
		 */
		public override void insert (int index, G item);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Iterator<G> iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override Gee.ListIterator<G> list_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override bool remove (G item);
		/**
		 * {@inheritDoc}
		 */
		public override G remove_at (int index);
		/**
		 * {@inheritDoc}
		 */
		public override void @set (int index, G item);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.List<G>? slice (int start, int stop);
		/**
		 * Constructs a new array list based on provided array.
		 *
		 * If not provided, the function parameter is requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param items initial items to be put into array
		 * @param equal_func an optional element equality testing function
		 */
		public ArrayList.wrap (owned G[] items, owned Gee.EqualDataFunc<G>? equal_func = null);
		/**
		 * The elements' equality testing function.
		 */
		[CCode (notify = false)]
		public Gee.EqualDataFunc<G> equal_func { get; private set; }
		/**
		 * {@inheritDoc}
		 */
		public override bool read_only { get; }
		/**
		 * {@inheritDoc}
		 */
		public override int size { get; }
	}
	/**
	 * Resizable array implementation of the {@link Deque} interface.
	 *
	 * The storage array grows automatically when needed.
	 *
	 * This implementation is pretty good for lookups at the end or random.
	 * Because they are stored in an array this structure does not fit for deleting
	 * arbitrary elements. For an alternative implementation see {@link LinkedList}.
	 *
	 * @see LinkedList
	 */
	[CCode (cheader_filename = "gee.h")]
	public class ArrayQueue<G> : Gee.AbstractQueue<G>, Gee.Deque<G> {
		/**
		 * Constructs a new, empty array queue.
		 *
		 * If not provided, the function parameter is requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param equal_func an optional element equality testing function
		 */
		public ArrayQueue (owned Gee.EqualDataFunc<G>? equal_func = null);
		/**
		 * {@inheritDoc}
		 */
		public override bool add (G element);
		/**
		 * {@inheritDoc}
		 */
		public override void clear ();
		/**
		 * {@inheritDoc}
		 */
		public override bool contains (G item);
		/**
		 * {@inheritDoc}
		 */
		public override bool @foreach (Gee.ForallFunc<G> f);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Iterator<G> iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override G peek ();
		/**
		 * {@inheritDoc}
		 */
		public override G poll ();
		/**
		 * {@inheritDoc}
		 */
		public override bool remove (G item);
		/**
		 * {@inheritDoc}
		 */
		public override int capacity { get; }
		[CCode (notify = false)]
		public Gee.EqualDataFunc<G> equal_func { get; private set; }
		public bool is_empty { get; }
		/**
		 * {@inheritDoc}
		 */
		public override bool is_full { get; }
		/**
		 * {@inheritDoc}
		 */
		public override bool read_only { get; }
		/**
		 * {@inheritDoc}
		 */
		public override int remaining_capacity { get; }
		/**
		 * {@inheritDoc}
		 */
		public override int size { get; }
	}
	/**
	 * A single-linked list. This implementation is based on
	 * [[http://www.cse.yorku.ca/~ruppert/papers/lfll.pdf|Mikhail Fomitchev and  Eric Ruppert paper ]].
	 *
	 * Many threads are allowed to operate on the same structure as well as modification
	 * of structure during iteration is allowed. However the change may not be immediately
	 * visible to other threads.
	 */
	[CCode (cheader_filename = "gee.h")]
	public class ConcurrentList<G> : Gee.AbstractList<G> {
		/**
		 * Construct new, empty single linked list
		 *
		 * If not provided, the function parameter is requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param equal_func an optional element equality testing function
		 */
		public ConcurrentList (owned Gee.EqualDataFunc<G>? equal_func = null);
		/**
		 * {@inheritDoc}
		 */
		public override bool add (G item);
		/**
		 * {@inheritDoc}
		 */
		public override void clear ();
		/**
		 * {@inheritDoc}
		 */
		public override bool contains (G item);
		/**
		 * {@inheritDoc}
		 */
		public override G @get (int index);
		/**
		 * {@inheritDoc}
		 */
		public override int index_of (G item);
		/**
		 * {@inheritDoc}
		 */
		public override void insert (int index, G item);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Iterator<G> iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override Gee.ListIterator<G> list_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override bool remove (G item);
		/**
		 * {@inheritDoc}
		 */
		public override G remove_at (int index);
		/**
		 * {@inheritDoc}
		 */
		public override void @set (int index, G item);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.List<G>? slice (int start, int end);
		/**
		 * The elements' equality testing function.
		 */
		[CCode (notify = false)]
		public Gee.EqualDataFunc<G> equal_func { get; private set; }
		/**
		 * {@inheritDoc}
		 */
		public bool is_empty { get; }
		/**
		 * {@inheritDoc}
		 */
		public override bool read_only { get; }
		/**
		 * {@inheritDoc}
		 */
		public override int size { get; }
	}
	/**
	 * A skip-linked list. This implementation is based on
	 * [[http://www.cse.yorku.ca/~ruppert/Mikhail.pdf|Mikhail Fomitchev Master Thesis]].
	 *
	 * Many threads are allowed to operate on the same structure as well as modification
	 * of structure during iteration is allowed. However the change may not be immediately
	 * visible to other threads.
	 */
	[CCode (cheader_filename = "gee.h")]
	public class ConcurrentSet<G> : Gee.AbstractSortedSet<G> {
		public enum RangeType {
			HEAD,
			TAIL,
			BOUNDED,
			EMPTY
		}
		public ConcurrentSet (owned GLib.CompareDataFunc<G>? compare_func = null);
		public override bool add (G key);
		public override G ceil (G element);
		public override void clear ();
		public override bool contains (G key);
		public override G first ();
		public override G floor (G element);
		public override Gee.SortedSet<G> head_set (G before);
		public override G higher (G element);
		public override Gee.Iterator<G> iterator ();
		public override Gee.Iterator<G>? iterator_at (G element);
		public override G last ();
		public override G lower (G element);
		public override bool remove (G item);
		public override Gee.SortedSet<G> sub_set (G from, G to);
		public override Gee.SortedSet<G> tail_set (G after);
		public override bool read_only { get; }
		public override int size { get; }
	}
	/**
	 * Hash table implementation of the {@link Map} interface.
	 *
	 * This implementation is better fit for highly heterogeneous key values.
	 * In case of high key hashes redundancy or higher amount of data prefer using
	 * tree implementation like {@link TreeMap}.
	 *
	 * @see TreeMap
	 */
	[CCode (cheader_filename = "gee.h")]
	public class HashMap<K,V> : Gee.AbstractMap<K,V> {
		/**
		 * Constructs a new, empty hash map.
		 *
		 * If not provided, the functions parameters are requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param key_hash_func an optional key hash function
		 * @param key_equal_func an optional key equality testing function
		 * @param value_equal_func an optional value equality testing function
		 */
		public HashMap (owned Gee.HashDataFunc<K>? key_hash_func = null, owned Gee.EqualDataFunc<K>? key_equal_func = null, owned Gee.EqualDataFunc<V>? value_equal_func = null);
		/**
		 * {@inheritDoc}
		 */
		public override void clear ();
		/**
		 * {@inheritDoc}
		 */
		public override V @get (K key);
		/**
		 * {@inheritDoc}
		 */
		public override bool has (K key, V value);
		/**
		 * {@inheritDoc}
		 */
		public override bool has_key (K key);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.MapIterator<K,V> map_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override void @set (K key, V value);
		/**
		 * {@inheritDoc}
		 */
		public override bool unset (K key, out V value = null);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Set<Gee.Map.Entry<K,V>> entries { owned get; }
		/**
		 * The keys' equality testing function.
		 */
		[CCode (notify = false)]
		public Gee.EqualDataFunc<K> key_equal_func { get; private set; }
		/**
		 * The keys' hash function.
		 */
		[CCode (notify = false)]
		public Gee.HashDataFunc<K> key_hash_func { get; private set; }
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Set<K> keys { owned get; }
		/**
		 * {@inheritDoc}
		 */
		public override bool read_only { get; }
		/**
		 * {@inheritDoc}
		 */
		public override int size { get; }
		/**
		 * The values' equality testing function.
		 */
		[CCode (notify = false)]
		public Gee.EqualDataFunc<V> value_equal_func { get; private set; }
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Collection<V> values { owned get; }
	}
	/**
	 * Hash table implementation of the {@link MultiMap} interface.
	 */
	[CCode (cheader_filename = "gee.h")]
	public class HashMultiMap<K,V> : Gee.AbstractMultiMap<K,V> {
		/**
		 * Constructs a new, empty hash multimap.
		 *
		 * If not provided, the functions parameters are requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param key_hash_func an optional key hash function
		 * @param key_equal_func an optional key equality testing function
		 * @param value_hash_func an optional value hash function
		 * @param value_equal_func an optional value equality testing function
		 */
		public HashMultiMap (owned Gee.HashDataFunc<K>? key_hash_func = null, owned Gee.EqualDataFunc<K>? key_equal_func = null, owned Gee.HashDataFunc<V>? value_hash_func = null, owned Gee.EqualDataFunc<V>? value_equal_func = null);
		protected override Gee.MultiSet<K> create_multi_key_set ();
		protected override Gee.Collection<V> create_value_storage ();
		protected override Gee.EqualDataFunc<V> get_value_equal_func ();
		public Gee.EqualDataFunc<K> key_equal_func { get; }
		public Gee.HashDataFunc<K> key_hash_func { get; }
		[CCode (notify = false)]
		public Gee.EqualDataFunc<V> value_equal_func { get; private set; }
		[CCode (notify = false)]
		public Gee.HashDataFunc<V> value_hash_func { get; private set; }
	}
	/**
	 * Hash table implementation of the {@link MultiSet} interface.
	 */
	[CCode (cheader_filename = "gee.h")]
	public class HashMultiSet<G> : Gee.AbstractMultiSet<G> {
		/**
		 * Constructs a new, empty hash multi set.
		 *
		 * If not provided, the functions parameters are requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param hash_func an optional element hash function
		 * @param equal_func an optional element equality testing function
		 */
		[CCode (cname = "gee_hash_multi_set_new_fixed")]
		public HashMultiSet (owned Gee.HashDataFunc<G>? hash_func = null, owned Gee.EqualDataFunc<G>? equal_func = null);
		/**
		 * Constructs a new, empty hash multi set.
		 *
		 * If not provided, the functions parameters are requested to the
		 * {@link Functions} function factory methods.
		 *
		 * Note: this function is only for backward ABI compatibility.
		 *   It contains memory leak and SHOULD NOT BE USED.
		 * 
		 *
		 * @param hash_func an optional element hash function
		 * @param equal_func an optional element equality testing function
		 */
		[CCode (cname = "gee_hash_multi_set_new")]
		[Version (deprecated = true, deprecated_since = "0.13.3", replacement = "gee_hash_multi_set_new_fixed")]
		public HashMultiSet.broken (Gee.HashDataFunc<G>? hash_func = null, Gee.EqualDataFunc<G>? equal_func = null);
		public Gee.EqualDataFunc<G> equal_func { get; }
		public Gee.HashDataFunc<G> hash_func { get; }
	}
	/**
	 * Hash table implementation of the {@link Set} interface.
	 *
	 * This implementation is better fit for highly heterogeneous values.
	 * In case of high value hashes redundancy or higher amount of data prefer using
	 * tree implementation like {@link TreeSet}.
	 *
	 * @see TreeSet
	 */
	[CCode (cheader_filename = "gee.h")]
	public class HashSet<G> : Gee.AbstractSet<G> {
		/**
		 * Constructs a new, empty hash set.
		 *
		 * If not provided, the functions parameters are requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param hash_func an optional hash function
		 * @param equal_func an optional equality testing function
		 */
		public HashSet (owned Gee.HashDataFunc<G>? hash_func = null, owned Gee.EqualDataFunc<G>? equal_func = null);
		/**
		 * {@inheritDoc}
		 */
		public override bool add (G key);
		/**
		 * {@inheritDoc}
		 */
		public override void clear ();
		/**
		 * {@inheritDoc}
		 */
		public override bool contains (G key);
		/**
		 * {@inheritDoc}
		 */
		public override bool @foreach (Gee.ForallFunc<G> f);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Iterator<G> iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override bool remove (G key);
		/**
		 * The elements' equality testing function.
		 */
		[CCode (notify = false)]
		public Gee.EqualDataFunc<G> equal_func { get; private set; }
		/**
		 * The elements' hash function.
		 */
		[CCode (notify = false)]
		public Gee.HashDataFunc<G> hash_func { get; private set; }
		/**
		 * {@inheritDoc}
		 */
		public override bool read_only { get; }
		/**
		 * {@inheritDoc}
		 */
		public override int size { get; }
	}
	/**
	 * Hazard pointer is a method of protecting a pointer shared by many threads.
	 * If you want to use atomic pointer that may be freed you should use following code:
	 *
	 * {{{
	 *    string *shared_pointer = ...;
	 *    HazardPointer<string> hptr = HazardPointer.get_hazard_pointer (&shared_pointer);
	 *    // my_string contains value from shared_pinter. It is valid as long as hptr is alive.
	 *    unowned string my_string = ptr.get ();
	 *    // instead of delete
	 *    ptr.release ((ptr) => {string *sptr = ptr;string ref = (owned)sptr;});
	 *    });
	 * }}}
	 *
	 * In some cases you may use helper methods which might involve copying of object (and are unsafe for unowned objects):
	 * {{{
	 *    Gtk.Window *window = ...;
	 *    Gtk.Window? local_window = HazardPointer.get_pointer (&window);
	 *    HazardPointer.set_pointer (&window, ...)
	 *    local_window = HazardPointer.exchange_pointer (&window, null);
	 *    HazardPointer.compare_and_exchange (&window, null, local_window);
	 * }}}
	 *
	 * The class also provides helper methods if least significant bits are used for storing flags.
	 *
	 * HazardPointers are not thread-safe (unless documentation states otherwise).
	 */
	[CCode (cheader_filename = "gee.h")]
	[Compact]
	public class HazardPointer<G> {
		/**
		 * Create a new context. User does not need to create explicitly however it might be benefitial
		 * if he is about to issue bunch of commands he might consider it benefitial to fine-tune the creation of contexts.
		 *
		 * {{{
		 *   Context ctx = new Context ();
		 *   lock_free_collection.operation1 ();
		 *   // Normally on exit the thread exit operation would be executed but here the default operation of
		 *   // child context is executed.
		 *   lock_free_collection.operation2 ();
		 * }}}
		 *
		 * Please note that the Context in implicitly part of stack and:
		 *
		 * 1. It cannot be moved between threads.
		 * 2. If in given thread the child (created later) context is alive parent must be alive as well.
		 */
		[Compact]
		public class Context {
			public Context (Gee.HazardPointer.Policy? policy = null);
			/**
			 * Ensure that whole context is freed. Please note that it might block.
			 */
			public void free_all ();
			/**
			 * Pushes the current context to releaser. Please note that it might block.
			 */
			public void release ();
			/**
			 * Tries to free all freed pointer in current context.
			 */
			public void try_free ();
			/**
			 * Tries to push the current context to releaser.
			 */
			public void try_release ();
		}
		/**
		 * Policy determines what happens on exit from Context.
		 */
		public enum Policy {
			/**
			 * Performs default action on exit from thread.
			 */
			DEFAULT,
			/**
			 * Performs the same action as on exit from current thread.
			 */
			THREAD_EXIT,
			/**
			 * Goes through the free list and attempts to free un-freed elements.
			 */
			TRY_FREE,
			/**
			 * Goes through the free list and attempts to free un-freed elements
			 * until all elements are freed.
			 */
			FREE,
			/**
			 * Release the un-freed elements to either helper thread or to main loop.
			 * Please note if the operation would block it is not performed.
			 */
			TRY_RELEASE,
			/**
			 * Release the un-freed elements to either helper thread or to main loop.
			 * Please note it may block while adding to queue.
			 */
			RELEASE;
			/**
			 * Checks if the policy is concrete or if it depends on global variables.
			 *
			 * @return ``true`` if this policy does not depend on global variables
			 */
			public bool is_concrete ();
			/**
			 * Checks if policy blocks or is lock-free.
			 * Please note that it works on a concrete policy only.
			 *
			 * @return ``true`` if the policy may block the thread.
			 */
			public bool is_blocking ();
			/**
			 * Checks if policy guarantees freeing all elements.
			 * Please note that it works on a concrete policy only.
			 *
			 * @return ``true`` if the policy guarantees freeing all elements.
			 */
			public bool is_safe ();
			/**
			 * Finds concrete policy which corresponds to given policy.
			 *
			 * @return Policy that corresponds to given policy at given time in given thread.
			 */
			public Gee.HazardPointer.Policy to_concrete ();
		}
		/**
		 * Release policy determines what happens with object freed by Policy.TRY_RELEASE
		 * and Policy.RELEASE.
		 */
		public enum ReleasePolicy {
			/**
			 * Libgee spawns helper thread to free those elements.
			 * This is default.
			 */
			HELPER_THREAD,
			/**
			 * Libgee uses GLib main loop.
			 * This is recommended for application using GLib main loop.
			 */
			MAIN_LOOP;
		}
		/**
		 * Creates a hazard pointer for a pointer.
		 *
		 * @param ptr Protected pointer
		 */
		public HazardPointer (G* ptr);
		/**
		 * Compares and exchanges objects.
		 *
		 * @param aptr Atomic pointer.
		 * @param old_ptr Old pointer.
		 * @param _new_ptr New value.
		 * @param old_mask Old mask.
		 * @param new_mask New mask.
		 * @return Value that was previously stored.
		 */
		public static bool compare_and_exchange_pointer<G> (G** aptr, G old_ptr, owned G _new_ptr, size_t mask = 0, size_t old_mask = 0, size_t new_mask = 0);
		/**
		 * Exchange objects safely.
		 *
		 * @param aptr Atomic pointer.
		 * @param new_ptr New value
		 * @param mask Mask of flags.
		 * @param new_mask New mask.
		 * @param old_mask Previous mask mask.
		 * @return Hazard pointer containing old value.
		 */
		public static Gee.HazardPointer<G>? exchange_hazard_pointer<G> (G** aptr, owned G new_ptr, size_t mask = 0, size_t new_mask = 0, out size_t old_mask = null);
		/**
		 * Exchange objects safely.
		 *
		 * @param aptr Atomic pointer.
		 * @param new_ptr New value
		 * @param mask Mask of flags.
		 * @param new_mask New mask.
		 * @param old_mask Previous mask mask.
		 * @return Value that was previously stored.
		 */
		public static G exchange_pointer<G> (G** aptr, owned G new_ptr, size_t mask = 0, size_t new_mask = 0, out size_t old_mask = null);
		/**
		 * Gets the pointer hold by hazard pointer.
		 *
		 * @param other_thread Have to be set to ``true`` if accessed from thread that did not create this thread.
		 * @return The value hold by pointer.
		 */
		public new unowned G @get (bool other_thread = false);
		/**
		 * Gets hazard pointer from atomic pointer safely.
		 *
		 * @param aptr Atomic pointer.
		 * @param mask Mask of bits.
		 * @param mask_out Result of mask.
		 * @return Hazard pointer containing the element.
		 */
		public static Gee.HazardPointer<G>? get_hazard_pointer<G> (G** aptr, size_t mask = 0, out size_t mask_out = null);
		/**
		 * Copy an object from atomic pointer.
		 *
		 * @param aptr Atomic pointer.
		 * @param mask Mask of flags.
		 * @param mask_out Result of mask.
		 * @return A copy of object from atomic pointer.
		 */
		public static G get_pointer<G> (G** aptr, size_t mask = 0, out size_t mask_out = null);
		/**
		 * Free the pointer.
		 *
		 * @param notify method freeing object
		 */
		public void release (owned GLib.DestroyNotify notify);
		/**
		 * Sets default policy (i.e. default policy for user-created contexts).
		 * The policy must be concrete and should not be blocking.
		 *
		 * @param policy New default policy.
		 */
		public static void set_default_policy (Gee.HazardPointer.Policy policy);
		/**
		 * Sets object safely
		 *
		 * @param aptr Atomic pointer.
		 * @param new_ptr New value
		 * @param mask Mask of flags.
		 * @param new_mask New mask.
		 */
		public static void set_pointer<G> (G** aptr, owned G new_ptr, size_t mask = 0, size_t new_mask = 0);
		/**
		 * Sets release (i.e. how exactly the released objects arefreed).
		 *
		 * The method can be only set before any objects is released and is not thread-safe.
		 *
		 * @param policy New release policy.
		 */
		public static bool set_release_policy (Gee.HazardPointer.ReleasePolicy policy);
		/**
		 * Sets thread exit policy (i.e. default policy for the top-most Context).
		 * The policy must be concrete and should not be unsafe.
		 *
		 * @param policy New thread policy.
		 */
		public static void set_thread_exit_policy (Gee.HazardPointer.Policy policy);
	}
	/**
	 * Represents a lazy value. I.e. value that is computed on demand.
	 *
	 * This class is not thread-safe.
	 */
	[CCode (cheader_filename = "gee.h")]
	public class Lazy<G> {
		public Lazy (owned Gee.LazyFunc<G> func);
		public void eval ();
		public Lazy.from_value (G item);
		public new G @get ();
		/**
		 * Provides a future for a lazy value.
		 *
		 * Note: The future can be requested only once and all access must be
		 *   done through it.
		 */
		public Gee.Future<G>? future { owned get; }
		public new G value { get; }
	}
	/**
	 * Doubly-linked list implementation of the {@link List} interface.
	 *
	 * This implementation is pretty well designed for highly mutable data. When
	 * indexed access is privileged prefer using {@link ArrayList}.
	 *
	 * @see ArrayList
	 */
	[CCode (cheader_filename = "gee.h")]
	public class LinkedList<G> : Gee.AbstractBidirList<G>, Gee.Queue<G>, Gee.Deque<G> {
		/**
		 * Constructs a new, empty linked list.
		 *
		 * If not provided, the function parameter is requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param equal_func an optional element equality testing function
		 */
		public LinkedList (owned Gee.EqualDataFunc<G>? equal_func = null);
		/**
		 * {@inheritDoc}
		 */
		public override bool add (G item);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.BidirListIterator<G> bidir_list_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override void clear ();
		/**
		 * {@inheritDoc}
		 */
		public override bool contains (G item);
		/**
		 * {@inheritDoc}
		 */
		public G first ();
		/**
		 * {@inheritDoc}
		 */
		public override bool @foreach (Gee.ForallFunc<G> f);
		/**
		 * {@inheritDoc}
		 */
		public override G @get (int index);
		/**
		 * {@inheritDoc}
		 */
		public override int index_of (G item);
		/**
		 * {@inheritDoc}
		 */
		public override void insert (int index, G item);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Iterator<G> iterator ();
		/**
		 * {@inheritDoc}
		 */
		public G last ();
		/**
		 * {@inheritDoc}
		 */
		public override Gee.ListIterator<G> list_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override bool remove (G item);
		/**
		 * {@inheritDoc}
		 */
		public override G remove_at (int index);
		/**
		 * {@inheritDoc}
		 */
		public override void @set (int index, G item);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.List<G>? slice (int start, int stop);
		/**
		 * The elements' equality testing function.
		 */
		[CCode (notify = false)]
		public Gee.EqualDataFunc<G> equal_func { get; private set; }
		/**
		 * {@inheritDoc}
		 */
		public override bool read_only { get; }
		/**
		 * {@inheritDoc}
		 */
		public override int size { get; }
	}
	/**
	 * Relaxed fibonacci heap priority queue implementation of the {@link Queue}.
	 *
	 * The elements of the priority queue are ordered according to their natural
	 * ordering, or by a compare_func provided at queue construction time. A
	 * priority queue does not permit null elements and does not have bounded
	 * capacity.
	 *
	 * This implementation provides O(1) time for offer and peek methods, and
	 * O(log n) for poll method. It is based on the algorithms described by
	 * Boyapati Chandra Sekhar in:
	 *
	 *   "Worst Case Efficient Data Structures
	 *      for Priority Queues and Deques with Heap Order"
	 *   Boyapati Chandra Sekhar (under the guidance of Prof. C. Pandu Rangan)
	 *   Department of Computer Science and Engineering
	 *   Indian Institute of Technology, Madras
	 *   May 1996
	 */
	[CCode (cheader_filename = "gee.h")]
	public class PriorityQueue<G> : Gee.AbstractQueue<G> {
		/**
		 * Constructs a new, empty priority queue.
		 *
		 * If not provided, the function parameter is requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param compare_func an optional element comparator function
		 */
		public PriorityQueue (owned GLib.CompareDataFunc<G>? compare_func = null);
		/**
		 * {@inheritDoc}
		 */
		public override bool add (G item);
		/**
		 * {@inheritDoc}
		 */
		public override void clear ();
		/**
		 * {@inheritDoc}
		 */
		public override bool contains (G item);
		/**
		 * {@inheritDoc}
		 */
		public int drain (Gee.Collection<G> recipient, int amount = -1);
		/**
		 * {@inheritDoc}
		 */
		public override bool @foreach (Gee.ForallFunc<G> f);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Iterator<G> iterator ();
		/**
		 * {@inheritDoc}
		 */
		public bool offer (G element);
		/**
		 * {@inheritDoc}
		 */
		public override G peek ();
		/**
		 * {@inheritDoc}
		 */
		public override G poll ();
		/**
		 * {@inheritDoc}
		 */
		public override bool remove (G item);
		/**
		 * {@inheritDoc}
		 */
		public override int capacity { get; }
		/**
		 * The elements' comparator function.
		 */
		[CCode (notify = false)]
		public GLib.CompareDataFunc<G> compare_func { get; private set; }
		/**
		 * {@inheritDoc}
		 */
		public override bool is_full { get; }
		/**
		 * {@inheritDoc}
		 */
		public override bool read_only { get; }
		/**
		 * {@inheritDoc}
		 */
		public override int remaining_capacity { get; }
		/**
		 * {@inheritDoc}
		 */
		public override int size { get; }
	}
	/**
	 * Promise allows to set a value with associated {@link Future}. Please note that
	 * value can be stored only once.
	 *
	 * Typically the producer will create promise and return {@link future} while
	 * keeping the promise to itself. Then when value is ready it can call {@link set_value}.
	 *
	 * @see Future
	 * @see task
	 * @since 0.11.0
	 */
	[CCode (cheader_filename = "gee.h")]
	public class Promise<G> {
		public Promise ();
		/**
		 * Sets the exception.
		 *
		 * @param exception Exception thrown
		 */
		public void set_exception (owned GLib.Error exception);
		/**
		 * Sets the value of the future.
		 *
		 * @param value Value of future
		 */
		public void set_value (owned G value);
		/**
		 * {@link Future} value of this promise
		 */
		public Gee.Future<G> future { get; }
	}
	/**
	 * Left-leaning red-black tree implementation of the {@link Map} interface.
	 *
	 * This implementation is especially well designed for large quantity of
	 * data. The (balanced) tree implementation insure that the set and get
	 * methods are in logarithmic complexity.
	 *
	 * @see HashMap
	 */
	[CCode (cheader_filename = "gee.h")]
	public class TreeMap<K,V> : Gee.AbstractBidirSortedMap<K,V> {
		/**
		 * Constructs a new, empty tree map sorted according to the specified
		 * comparator function.
		 *
		 * If not provided, the functions parameters are requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param key_compare_func an optional key comparator function
		 * @param value_equal_func an optional values equality testing function
		 */
		public TreeMap (owned GLib.CompareDataFunc<K>? key_compare_func = null, owned Gee.EqualDataFunc<V>? value_equal_func = null);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.BidirMapIterator<K,V> bidir_map_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override void clear ();
		/**
		 * {@inheritDoc}
		 */
		public override V @get (K key);
		/**
		 * {@inheritDoc}
		 */
		public override bool has (K key, V value);
		/**
		 * {@inheritDoc}
		 */
		public override bool has_key (K key);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.SortedMap<K,V> head_map (K before);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.MapIterator<K,V> map_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override void @set (K key, V value);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.SortedMap<K,V> sub_map (K after, K before);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.SortedMap<K,V> tail_map (K after);
		/**
		 * {@inheritDoc}
		 */
		public override bool unset (K key, out V value = null);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.SortedSet<Gee.Map.Entry<K,V>> ascending_entries { owned get; }
		/**
		 * {@inheritDoc}
		 */
		public override Gee.SortedSet<K> ascending_keys { owned get; }
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Set<Gee.Map.Entry<K,V>> entries { owned get; }
		/**
		 * The keys' comparator function.
		 */
		[CCode (notify = false)]
		public GLib.CompareDataFunc<K> key_compare_func { get; private set; }
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Set<K> keys { owned get; }
		public override bool read_only { get; }
		/**
		 * {@inheritDoc}
		 */
		public override int size { get; }
		/**
		 * The values' equality testing function.
		 */
		[CCode (notify = false)]
		public Gee.EqualDataFunc<V> value_equal_func { get; private set; }
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Collection<V> values { owned get; }
	}
	/**
	 * Left-leaning red-black tree implementation of the {@link MultiMap}
	 * interface.
	 */
	[CCode (cheader_filename = "gee.h")]
	public class TreeMultiMap<K,V> : Gee.AbstractMultiMap<K,V> {
		/**
		 * Constructs a new, empty tree multimap.
		 *
		 * If not provided, the functions parameters are requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param key_compare_func an optional key comparator function
		 * @param value_compare_func an optional value comparator function
		 */
		public TreeMultiMap (owned GLib.CompareDataFunc<K>? key_compare_func = null, owned GLib.CompareDataFunc<V>? value_compare_func = null);
		protected override Gee.MultiSet<K> create_multi_key_set ();
		protected override Gee.Collection<V> create_value_storage ();
		protected override Gee.EqualDataFunc<V> get_value_equal_func ();
		public GLib.CompareDataFunc<K> key_compare_func { get; }
		[CCode (notify = false)]
		public GLib.CompareDataFunc<V> value_compare_func { get; private set; }
	}
	/**
	 * Left-leaning red-black tree implementation of the {@link MultiSet}
	 * interface.
	 */
	[CCode (cheader_filename = "gee.h")]
	public class TreeMultiSet<G> : Gee.AbstractMultiSet<G> {
		/**
		 * Constructs a new, empty tree multi set.
		 *
		 * If not provided, the function parameter is requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param compare_func an optional element comparator function
		 */
		public TreeMultiSet (owned GLib.CompareDataFunc<G>? compare_func = null);
		public GLib.CompareDataFunc<G> compare_func { get; }
	}
	/**
	 * Left-leaning red-black tree implementation of the {@link Set} interface.
	 *
	 * This implementation is especially well designed for large quantity of
	 * data. The (balanced) tree implementation insure that the set and get
	 * methods are in logarithmic complexity. For a linear implementation see
	 * {@link HashSet}.
	 *
	 * @see HashSet
	 */
	[CCode (cheader_filename = "gee.h")]
	public class TreeSet<G> : Gee.AbstractBidirSortedSet<G> {
		/**
		 * Constructs a new, empty tree set sorted according to the specified
		 * comparator function.
		 *
		 * If not provided, the function parameter is requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param compare_func an optional element comparator function
		 */
		public TreeSet (owned GLib.CompareDataFunc<G>? compare_func = null);
		/**
		 * {@inheritDoc}
		 *
		 * If the element already exists in the set it will not be added twice.
		 */
		public override bool add (G item);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.BidirIterator<G> bidir_iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override G ceil (G item);
		/**
		 * {@inheritDoc}
		 */
		public override void clear ();
		/**
		 * {@inheritDoc}
		 */
		public override bool contains (G item);
		/**
		 * {@inheritDoc}
		 */
		public override G first ();
		/**
		 * {@inheritDoc}
		 */
		public override G floor (G item);
		/**
		 * {@inheritDoc}
		 */
		public override bool @foreach (Gee.ForallFunc<G> f);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.SortedSet<G> head_set (G before);
		/**
		 * {@inheritDoc}
		 */
		public override G higher (G item);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Iterator<G> iterator ();
		/**
		 * {@inheritDoc}
		 */
		public override Gee.Iterator<G>? iterator_at (G item);
		/**
		 * {@inheritDoc}
		 */
		public override G last ();
		/**
		 * {@inheritDoc}
		 */
		public override G lower (G item);
		/**
		 * {@inheritDoc}
		 */
		public override bool remove (G item);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.SortedSet<G> sub_set (G after, G before);
		/**
		 * {@inheritDoc}
		 */
		public override Gee.SortedSet<G> tail_set (G after);
		/**
		 * The elements' comparator function.
		 */
		[CCode (notify = false)]
		public GLib.CompareDataFunc<G> compare_func { get; private set; }
		/**
		 * {@inheritDoc}
		 */
		public override bool read_only { get; }
		/**
		 * {@inheritDoc}
		 */
		public override int size { get; }
	}
	/**
	 * Unrolled doubly-linked list implementation of the {@link List} interface.
	 *
	 * The unrolled doubly-linked list combines the advantages and disadvantages
	 * of the {@link ArrayList} and {@link LinkedList} and is usually suitable when
	 * modifications and read operations are balanced.
	 *
	 * Please note that in our benchmarks the speed of most operations (insertion,
	 * deletion, sequential read) was on par or better then {@link ArrayList} and
	 * {@link LinkedList} except the prepending operation.
	 *
	 * @see ArrayList
	 * @see LinkedList
	 */
	[CCode (cheader_filename = "gee.h")]
	public class UnrolledLinkedList<G> : Gee.AbstractBidirList<G>, Gee.Queue<G>, Gee.Deque<G> {
		/**
		 * Constructs a new, empty linked list.
		 *
		 * If not provided, the function parameter is requested to the
		 * {@link Functions} function factory methods.
		 *
		 * @param equal_func an optional element equality testing function
		 */
		public UnrolledLinkedList (owned Gee.EqualDataFunc<G>? equal_func = null);
		public override bool add (G item);
		public override Gee.BidirListIterator<G> bidir_list_iterator ();
		public override void clear ();
		public override bool contains (G item);
		public override bool @foreach (Gee.ForallFunc<G> f);
		public override G @get (int index);
		public override int index_of (G item);
		public override void insert (int index, G item);
		public override Gee.Iterator<G> iterator ();
		public override Gee.ListIterator<G> list_iterator ();
		public override bool remove (G item);
		public override G remove_at (int index);
		public override void @set (int index, G item);
		public override Gee.List<G>? slice (int start, int stop);
		/**
		 * The elements' equality testing function.
		 */
		[CCode (notify = false)]
		public Gee.EqualDataFunc<G> equal_func { get; private set; }
		public override bool read_only { get; }
		public override int size { get; }
	}
	/**
	 * A bi-directional iterator.
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface BidirIterator<G> : Gee.Iterator<G> {
		/**
		 * Rewinds to the first element in the iteration.
		 *
		 * @return ``true`` if the iterator has a first element
		 */
		public abstract bool first ();
		/**
		 * Checks whether there is a previous element in the iteration.
		 *
		 * @return ``true`` if the iterator has a previous element
		 */
		public abstract bool has_previous ();
		/**
		 * Advances to the last element in the iteration.
		 *
		 * @return ``true`` if the iterator has a last element
		 */
		public abstract bool last ();
		/**
		 * Rewinds to the previous element in the iteration.
		 *
		 * @return ``true`` if the iterator has a previous element
		 */
		public abstract bool previous ();
	}
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface BidirList<G> : Gee.List<G> {
		/**
		 * Returns a BidirListIterator that can be used for iteration over this list.
		 *
		 * @return a BidirListIterator that can be used for iteration over this list
		 */
		public new abstract Gee.BidirListIterator<G> bidir_list_iterator ();
		/**
		 * The read-only view of this list.
		 */
		public new abstract Gee.BidirList<G> read_only_view { owned get; }
	}
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface BidirListIterator<G> : Gee.BidirIterator<G>, Gee.ListIterator<G> {
		/**
		 * Inserts the specified item before the current item in the iteration. The
		 * iterator points to the same element as before.
		 *
		 * Please note that if iterator points in-between elements the element
		 * is added between neighbouring elements and the iterator point between
		 * added element and the next one.
		 */
		public abstract void insert (G item);
	}
	/**
	 * A bi-directional Map iterator.
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface BidirMapIterator<K,V> : Gee.MapIterator<K,V> {
		/**
		 * Goes back to the first element.
		 *
		 * @return `true` if the iterator has a first element
		 */
		public abstract bool first ();
		/**
		 * Checks whether there is a previous element in the iteration.
		 *
		 * @return `true` if the iterator has a previous element
		 */
		public abstract bool has_previous ();
		/**
		 * Advances to the last element in the iteration.
		 *
		 * @return `true` if the iterator has a last element
		 */
		public abstract bool last ();
		/**
		 * Rewinds to the previous element in the iteration.
		 *
		 * @return `true` if the iterator has a previous element
		 */
		public abstract bool previous ();
	}
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface BidirSortedMap<K,V> : Gee.SortedMap<K,V> {
		/**
		 * Returns a bi-directional iterator for this map.
		 *
		 * @return a bi-directional map iterator
		 */
		public abstract Gee.BidirMapIterator<K,V> bidir_map_iterator ();
		/**
		 * Returns an immutable empty sorted set.
		 *
		 * @return an immutable empty sorted set
		 */
		public static Gee.BidirSortedMap<K,V> empty<K,V> ();
		/**
		 * The read-only view of this set.
		 */
		public new abstract Gee.BidirSortedMap<K,V> read_only_view { owned get; }
	}
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface BidirSortedSet<G> : Gee.SortedSet<G> {
		/**
		 * Returns a {@link BidirIterator} that can be used for bi-directional
		 * iteration over this sorted set.
		 *
		 * @return a {@link BidirIterator} over this sorted set
		 */
		public abstract Gee.BidirIterator<G> bidir_iterator ();
		/**
		 * Returns an immutable empty sorted set.
		 *
		 * @return an immutable empty sorted set
		 */
		public static Gee.BidirSortedSet<G> empty<G> ();
		/**
		 * The read-only view of this set.
		 */
		public new abstract Gee.BidirSortedSet<G> read_only_view { owned get; }
	}
	/**
	 * A generic collection of objects.
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface Collection<G> : Gee.Iterable<G> {
		/**
		 * Adds an item to this collection. Must not be called on read-only
		 * collections.
		 *
		 * @param item the item to add to the collection
		 *
		 * @return     ``true`` if the collection has been changed, ``false`` otherwise
		 */
		[CCode (ordering = 1)]
		public abstract bool add (G item);
		/**
		 * Adds all items in the input collection to this collection.
		 *
		 * @param collection the collection which items will be added to this
		 *                   collection.
		 *
		 * @return     ``true`` if the collection has been changed, ``false`` otherwise
		 */
		[CCode (ordering = 4)]
		public virtual bool add_all (Gee.Collection<G> collection);
		/**
		 * Adds all items in the input array to this collection.
		 *
		 * @param array the array which items will be added to this
		 *              collection.
		 *
		 * @return     ``true`` if the collection has been changed, ``false`` otherwise
		 */
		[CCode (ordering = 13)]
		public virtual bool add_all_array (G[] array);
		[CCode (ordering = 16)]
		public virtual bool add_all_iterator (Gee.Iterator<G> iter);
		/**
		 * Removes all items from this collection. Must not be called on
		 * read-only collections.
		 */
		[CCode (ordering = 3)]
		public abstract void clear ();
		/**
		 * Determines whether this collection contains the specified item.
		 *
		 * @param item the item to locate in the collection
		 *
		 * @return     ``true`` if item is found, ``false`` otherwise
		 */
		[CCode (ordering = 0)]
		public abstract bool contains (G item);
		/**
		 * Returns ``true`` it this collection contains all items as the input
		 * collection.
		 *
		 * @param collection the collection which items will be compared with
		 *                   this collection.
		 *
		 * @return     ``true`` if the collection has been changed, ``false`` otherwise
		 */
		[CCode (ordering = 5)]
		public virtual bool contains_all (Gee.Collection<G> collection);
		/**
		 * Returns ``true`` it this collection contains all items as the input
		 * array.
		 *
		 * @param array the array which items will be compared with
		 *              this collection.
		 *
		 * @return     ``true`` if the collection has been changed, ``false`` otherwise
		 */
		[CCode (ordering = 14)]
		public virtual bool contains_all_array (G[] array);
		[CCode (ordering = 17)]
		public virtual bool contains_all_iterator (Gee.Iterator<G> iter);
		/**
		 * Returns an immutable empty collection.
		 *
		 * @return an immutable empty collection
		 */
		public static Gee.Collection<G> empty<G> ();
		/**
		 * Removes the first occurrence of an item from this collection. Must not
		 * be called on read-only collections.
		 *
		 * @param item the item to remove from the collection
		 *
		 * @return     ``true`` if the collection has been changed, ``false`` otherwise
		 */
		[CCode (ordering = 2)]
		public abstract bool remove (G item);
		/**
		 * Removes the subset of items in this collection corresponding to the
		 * elements in the input collection. If there is several occurrences of
		 * the same value in this collection they are decremented of the number
		 * of occurrences in the input collection.
		 *
		 * @param collection the collection which items will be compared with
		 *                   this collection.
		 *
		 * @return     ``true`` if the collection has been changed, ``false`` otherwise
		 */
		[CCode (ordering = 6)]
		public virtual bool remove_all (Gee.Collection<G> collection);
		/**
		 * Removes the subset of items in this collection corresponding to the
		 * elements in the input array. If there is several occurrences of
		 * the same value in this collection they are decremented of the number
		 * of occurrences in the input array.
		 *
		 * @param array the array which items will be compared with
		 *              this collection.
		 *
		 * @return     ``true`` if the collection has been changed, ``false`` otherwise
		 */
		[CCode (ordering = 15)]
		public virtual bool remove_all_array (G[] array);
		[CCode (ordering = 18)]
		public virtual bool remove_all_iterator (Gee.Iterator<G> iter);
		/**
		 * Removes all items in this collection that are not contained in the input
		 * collection. In other words all common items of both collections are
		 * retained in this collection.
		 *
		 * @param collection the collection which items will be compared with
		 *                   this collection.
		 *
		 * @return     ``true`` if the collection has been changed, ``false`` otherwise
		 */
		[CCode (ordering = 7)]
		public virtual bool retain_all (Gee.Collection<G> collection);
		/**
		 * Returns an array containing all of items from this collection.
		 *
		 * @return an array containing all of items from this collection
		 */
		[CCode (ordering = 8)]
		public virtual G[] to_array ();
		/**
		 * Specifies whether this collection is empty.
		 */
		[CCode (ordering = 10)]
		public virtual bool is_empty { get; }
		/**
		 * Specifies whether this collection can change - i.e. whether {@link add},
		 * {@link remove} etc. are legal operations.
		 */
		[CCode (ordering = 11)]
		public abstract bool read_only { get; }
		/**
		 * The read-only view of this collection.
		 */
		[CCode (ordering = 12)]
		public abstract Gee.Collection<G> read_only_view { owned get; }
		/**
		 * The number of items in this collection.
		 */
		[CCode (ordering = 9)]
		public abstract int size { get; }
	}
	/**
	 * This interface defines a total ordering among instances of each class
	 * implementing it.
	 *
	 * In other words:
	 *
	 *   * It's irreflexive: For all `a` it holds that `a.compare_to(a) == 0`
	 *   * It's transitive: For all `a`, `b` and `c` if `a.compare_to(b) < 0` and
	 *     `b.compare_to(c) < 0` then `a.compare_to(c) < 0`.
	 *   * It's trichotomous: For all `a` and `b` it holds that
	 *     `a.compare_to(b) = -b.compare_to(a)`.
	 *
	 * Note: The relationship must be immutable. In other words if at one point of
	 *   program `a.compare_to(b)` had certain value then call `a.compare_to(b)`
	 *   //must always// return the original value until end of `a` and `b` lifetime.
	 *
	 * @see Hashable
	 */
	[CCode (cheader_filename = "gee.h")]
	public interface Comparable<G> : GLib.Object {
		/**
		 * Compares this object with the specified object.
		 *
		 * @return a negative integer, zero, or a positive integer as this object
		 *         is less than, equal to, or greater than the specified object
		 */
		public abstract int compare_to (G object);
	}
	/**
	 * A double-ended queue.
	 *
	 * A deque can be used either as a queue (First-In-First-Out behavior) or as a
	 * stack (Last-In-First-Out behavior).
	 *
	 * The methods defined by this interface behaves exactely in the same way as
	 * the {@link Queue} methods with respect to capacity bounds.
	 *
	 * The Deque interface inherits from the {@link Queue} interface. Thus, to use
	 * a deque as a queue, you can equivalently use the following method set:
	 *
	 * ||<)(> ''Queue method'' ||<)(>  ''Deque method'' ||
	 * || {@link Queue.offer}  || {@link offer_tail}    ||
	 * || {@link Queue.peek}   || {@link peek_head}     ||
	 * || {@link Queue.poll}   || {@link poll_head}     ||
	 * || {@link Queue.drain}  || {@link drain_head}    ||
	 *
	 * To use a deque as a stack, just use the method set that acts at the head of
	 * the deque:
	 *
	 * ||<)(> ''Operation'' ||<)(>  ''Deque method'' ||
	 * || push an element   || {@link offer_head}    ||
	 * || peek an element   || {@link peek_head}     ||
	 * || pop an element    || {@link poll_head}     ||
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface Deque<G> : Gee.Queue<G> {
		/**
		 * Drains the specified amount of elements from the head of this queue in
		 * the specified recipient collection.
		 *
		 * @param recipient the recipient collection to drain the elements to
		 * @param amount    the amount of elements to drain
		 *
		 * @return          the amount of elements that were actually drained
		 */
		public abstract int drain_head (Gee.Collection<G> recipient, int amount = -1);
		/**
		 * Drains the specified amount of elements from the tail of this queue in
		 * the specified recipient collection.
		 *
		 * @param recipient the recipient collection to drain the elements to
		 * @param amount    the amount of elements to drain
		 *
		 * @return          the amount of elements that were actually drained
		 */
		public abstract int drain_tail (Gee.Collection<G> recipient, int amount = -1);
		/**
		 * Offers the specified element to the head of this deque.
		 *
		 * @param element the element to offer to the queue
		 *
		 * @return        ``true`` if the element was added to the queue
		 */
		public abstract bool offer_head (G element);
		/**
		 * Offers the specified element to the tail of this deque
		 *
		 * @param element the element to offer to the queue
		 *
		 * @return        ``true`` if the element was added to the queue
		 */
		public abstract bool offer_tail (G element);
		/**
		 * Peeks (retrieves, but not remove) an element from this queue.
		 *
		 * @return the element peeked from the queue (or ``null`` if none was
		 *         available)
		 */
		public abstract G peek_head ();
		/**
		 * Peeks (retrieves, but not remove) an element from the tail of this
		 * queue.
		 *
		 * @return the element peeked from the queue (or ``null`` if none was
		 *         available)
		 */
		public abstract G peek_tail ();
		/**
		 * Polls (retrieves and remove) an element from the head of this queue.
		 *
		 * @return the element polled from the queue (or ``null`` if none was
		 *         available)
		 */
		public abstract G poll_head ();
		/**
		 * Polls (retrieves and remove) an element from the tail of this queue.
		 *
		 * @return the element polled from the queue (or ``null`` if none was
		 *         available)
		 */
		public abstract G poll_tail ();
	}
	/**
	 * Future is a value which might not yet be computed - for example it is calculated
	 * in different thread or depends on I/O value.
	 *
	 * All methods can be called from many threads as part of interface.
	 *
	 * Note: Statement that call does not block does not mean that it is lock-free.
	 *   Internally the implementation is allowed to take mutex but it should guarantee
	 *   that it is not for a long time (including blocking on anything else, I/O calls
	 *   or callbacks).
	 *
	 * @see Promise
	 * @see Lazy
	 * @see task
	 * @see async_task
	 * @since 0.11.0
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface Future<G> : GLib.Object {
		public delegate Gee.Future<A> FlatMapFunc<A,G> (G value);
		public delegate unowned A LightMapFunc<A,G> (G value);
		public delegate A MapFunc<A,G> (G value);
		[CCode (scope = "async")]
		public delegate C ZipFunc<A,B,C> (A a, B b);
		/**
		 * Maps a future value to another future value which is returned (call does not block).
		 *
		 * Note: As time taken by function does not contribute to
		 *   {@link wait_until} and the implementation is allowed to compute
		 *   value eagerly by {@link wait_async} it is recommended to put the
		 *   larger computation inside the returned future for example by
		 *   {@link task}
		 *
		 * @param func Function applied to {@link value}
		 * @return Value of a future returned by function
		 *
		 * @see map
		 */
		[CCode (ordering = 6)]
		public virtual Gee.Future<A> flat_map<A> (owned Gee.Future.FlatMapFunc<A,G> func);
		/**
		 * Maps a future value to another value by a function and returns the
		 * another value in future.
		 *
		 * Note: The function may be reevaluated at any time and it might
		 *   be called lazily. Therefore it is recommended for it to be
		 *   idempotent. If the function needs to be called eagerly or have
		 *   side-effects it is recommended to use {@link map}.
		 *
		 * Note: As time taken by function does not contribute to
		 *   {@link wait_until} and the implementation is allowed to compute
		 *   value eagerly by {@link wait_async} it is recommended to use
		 *   {@link task} and {@link flat_map} for longer computation.
		 *
		 * @param func Function applied to {@link value}
		 * @return Value returned by function
		 *
		 * @see flat_map
		 * @see map
		 * @since 0.11.4
		 */
		[CCode (cname = "gee_future_light_map_fixed", ordering = 10, vfunc_name = "light_map_fixed")]
		public virtual Gee.Future<A> light_map<A> (owned Gee.Future.LightMapFunc<A,G> func);
		[CCode (cname = "gee_future_light_map", ordering = 4, vfunc_name = "light_map")]
		public virtual Gee.Future<A> light_map_broken<A> (Gee.Future.LightMapFunc<A,G> func);
		/**
		 * Maps a future value to another value by a function and returns the
		 * another value in future.
		 *
		 * Note: As time taken by function might not contribute to
		 *   {@link wait_until} and the implementation is allowed to compute
		 *   value eagerly by {@link wait_async} it is recommended to use
		 *   {@link task} and {@link flat_map} for longer computation.
		 *
		 * @param func Function applied to {@link value}
		 * @return Value returned by function
		 *
		 * @see flat_map
		 * @see light_map
		 */
		[CCode (ordering = 3)]
		public virtual Gee.Future<A> map<A> (owned Gee.Future.MapFunc<A,G> func);
		/**
		 * Waits until the value is ready.
		 *
		 * @return The {@link value} associated with future
		 * @see ready
		 * @see wait_until
		 * @see wait_async
		 */
		[CCode (ordering = 0)]
		public abstract unowned G wait () throws Gee.FutureError;
		/**
		 * Reschedules the callback until the {@link value} is available.
		 *
		 * @return The {@link value} associated with future
		 * @see ready
		 * @see wait
		 * @see wait_until
		 */
		[CCode (ordering = 2)]
		public abstract async unowned G wait_async () throws Gee.FutureError;
		/**
		 * Waits until the value is ready or deadline have passed.
		 *
		 * @param end_time The time when the wait should finish
		 * @param value The {@link value} associated with future if the wait was successful
		 * @return ``true`` if the value was ready within deadline or ``false`` otherwise
		 * @see ready
		 * @see wait
		 * @see wait_async
		 */
		[CCode (ordering = 1)]
		public abstract bool wait_until (int64 end_time, out unowned G value = null) throws Gee.FutureError;
		/**
		 * Combines values of two futures using a function returning the combined
		 * value in future (call does not block).
		 *
		 * Note: As time taken by function does not contribute to
		 *   {@link wait_until} and the implementation is allowed to compute
		 *   value eagerly by {@link wait_async} it is recommended to return a
		 *   future from {@link task} and use {@link flat_map} for longer computation.
		 *
		 * @param zip_func Function applied to values
		 * @param second Second parameter
		 * @return A combine value
		 * @since 0.11.4
		 */
		[CCode (ordering = 5)]
		public virtual Gee.Future<B> zip<A,B> (owned Gee.Future.ZipFunc<G,A,B> zip_func, Gee.Future<A> second);
		/**
		 * Checks the exception that have been set. I.e. if the computation
		 * has thrown the exception it should be set here and the {@link wait},
		 * {@link wait_until} and {@link wait_async} should throw
		 * {@link FutureError.EXCEPTION}.
		 *
		 * @since 0.11.5
		 */
		[CCode (ordering = 9)]
		public abstract GLib.Error? exception { get; }
		/**
		 * Checks if value is ready. If it is calls to {@link wait} and
		 * {@link wait_until} will not block and value is returned immediately.
		 */
		[CCode (ordering = 8)]
		public abstract bool ready { get; }
		/**
		 * The value associated with Future. If value is not ready getting value
		 * will block until value is ready.
		 *
		 * Returned value is always the same and it is alive at least as long
		 * as the future.
		 */
		[CCode (ordering = 7)]
		public new virtual G value { get; }
	}
	/**
	 * This interface defines a hash function among instances of each class
	 * implementing it.
	 *
	 * @see Comparable
	 */
	[CCode (cheader_filename = "gee.h")]
	public interface Hashable<G> : GLib.Object {
		/**
		 * Compares this object with the specified object. This defines the
		 * equivalence relation between them.
		 *
		 * In other words:
		 *
		 *  * It must be reflexive: for all objects `a` it holds that
		 *    `a.equal_to(a)`.
		 *  * It must be symmetric: for all objects `a` and `b` if
		 *    `a.equal_to(b)` then `b.equal_to(a)`.
		 *  * It must be transitive: if `a.equal_to(b)` and `b.equal_to(c)` then
		 *    `a.equal_to(c)`.
		 *
		 * Note: Relationship //must not// change during lifetime of an object.
		 *
		 * @param object Object this objest is compared with
		 * @return true if objects are equal
		 */
		public abstract bool equal_to (G object);
		/**
		 * Computes hash for an objects. Two hashes of equal objects have to be
		 * equal.
		 *
		 * Note: Hash //must not// change during lifetime of an object.
		 *
		 * @return hash of an object
		 */
		public abstract uint hash ();
	}
	/**
	 * An object that can provide an {@link Iterator}.
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface Iterable<G> : GLib.Object, Gee.Traversable<G> {
		/**
		 * Returns a {@link Iterator} that can be used for simple iteration over a
		 * collection.
		 *
		 * @return a {@link Iterator} that can be used for simple iteration over a
		 *         collection
		 */
		public abstract Gee.Iterator<G> iterator ();
	}
	/**
	 * An iterator over a collection.
	 *
	 * Gee's iterators are "on-track" iterators. They always point to an item
	 * except before the first call to {@link next}, or, when an
	 * item has been removed, until the next call to {@link next}.
	 *
	 * Please note that when the iterator is out of track, neither {@link get} nor
	 * {@link remove} are defined and both might fail. After the next call to
	 * {@link next}, they will be defined again.
	 *
	 * Please also note that, unless specified otherwise, iterators before iteration
	 * started should behave as if after deletion of the first element. Whenever
	 * documentation states about the iterator 'out of track', 'invalid' or
	 * 'in-between elements' this refers to the same concept.
	 */
	[CCode (cheader_filename = "gee.h")]
	public interface Iterator<G> : GLib.Object, Gee.Traversable<G> {
		/**
		 * Concatenate iterators.
		 *
		 * @param iters Iterators of iterators
		 * @return Iterator containing values of each iterator
		 */
		public static Gee.Iterator<G> concat<G> (Gee.Iterator<Gee.Iterator<G>> iters);
		/**
		 * Returns the current element in the iteration.
		 *
		 * @return the current element in the iteration
		 */
		public abstract G @get ();
		/**
		 * Checks whether there is a next element in the iteration.
		 *
		 * @return ``true`` if the iterator has a next element
		 */
		public abstract bool has_next ();
		/**
		 * Advances to the next element in the iteration.
		 *
		 * @return ``true`` if the iterator has a next element
		 */
		public abstract bool next ();
		/**
		 * Removes the current element in the iteration. The cursor is set in an
		 * in-between state. Both {@link get} and {@link remove} will fail until
		 * the next move of the cursor (calling {@link next}).
		 */
		public abstract void remove ();
		/**
		 * Create iterator from unfolding function. The lazy value is
		 * force-evaluated before progressing to next element.
		 *
		 * @param f Unfolding function
		 * @param current If iterator is to be valid it contains the current value of it
		 */
		public static Gee.Iterator<A> unfold<A> (owned Gee.UnfoldFunc<A> f, owned Gee.Lazy<G>? current = null);
		/**
		 * Determines whether the call to {@link remove} is legal assuming the
		 * iterator is valid. The value must not change in runtime hence the user
		 * of iterator may cache it.
		 */
		public abstract bool read_only { get; }
		/**
		 * Determines whether the call to {@link get} is legal. It is false at the
		 * beginning and after {@link remove} call and true otherwise.
		 */
		public abstract bool valid { get; }
	}
	/**
	 * An ordered collection.
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface List<G> : Gee.Collection<G> {
		/**
		 * Returns an immutable empty list.
		 *
		 * @return an immutable empty list
		 */
		public static Gee.List<G> empty<G> ();
		/**
		 * Returns the first item of the list. Fails if the list is empty.
		 *
		 * @return      first item in the list
		 */
		public virtual G first ();
		/**
		 * Returns the item at the specified index in this list.
		 *
		 * @param index zero-based index of the item to be returned
		 *
		 * @return      the item at the specified index in the list
		 */
		public abstract G @get (int index);
		/**
		 * Returns the index of the first occurrence of the specified item in
		 * this list.
		 *
		 * @return the index of the first occurrence of the specified item, or
		 *         -1 if the item could not be found
		 */
		public abstract int index_of (G item);
		/**
		 * Inserts an item into this list at the specified position.
		 *
		 * @param index zero-based index at which item is inserted
		 * @param item  item to insert into the list
		 */
		public abstract void insert (int index, G item);
		/**
		 * Inserts items into this list for the input collection at the
		 * specified position.
		 *
		 * @param index zero-based index of the items to be inserted
		 * @param collection collection of items to be inserted
		 */
		public virtual void insert_all (int index, Gee.Collection<G> collection);
		/**
		 * Returns the last item of the list. Fails if the list is empty.
		 *
		 * @return      last item in the list
		 */
		public virtual G last ();
		/**
		 * Returns a ListIterator that can be used for iteration over this list.
		 *
		 * @return a ListIterator that can be used for iteration over this list
		 */
		public new abstract Gee.ListIterator<G> list_iterator ();
		/**
		 * Removes the item at the specified index of this list.
		 *
		 * @param index zero-based index of the item to be removed
		 *
		 * @return      the removed element
		 */
		public abstract G remove_at (int index);
		/**
		 * Sets the item at the specified index in this list.
		 *
		 * @param index zero-based index of the item to be set
		 */
		public abstract void @set (int index, G item);
		/**
		 * Returns a slice of this list.
		 *
		 * @param start zero-based index of the slice's first element
		 * @param stop  zero-based index of the position after the end of the slice
		 *
		 * @return A list containing a slice of this list
		 */
		public abstract Gee.List<G>? slice (int start, int stop);
		/**
		 * Sorts items by comparing with the specified compare function.
		 *
		 * @param compare_func compare function to use to compare items
		 */
		public virtual void sort (owned GLib.CompareDataFunc<G>? compare_func = null);
		/**
		 * The read-only view of this list.
		 */
		public new abstract Gee.List<G> read_only_view { owned get; }
	}
	/**
	 * A list iterator. This supports bi-directional and index-based iteration.
	 */
	[CCode (cheader_filename = "gee.h")]
	public interface ListIterator<G> : Gee.Iterator<G> {
		/**
		 * Adds the specified item after the current item in the iteration. The
		 * iterator is moved to the point of the new added item.
		 *
		 * Please note that if iterator points in-between elements the element
		 * is added after the current element and iterator point on it.
		 */
		public abstract void add (G item);
		/**
		 * Returns the current index in the iteration.
		 *
		 * @return the current index
		 */
		public abstract int index ();
		/**
		 * Sets the current item in the iteration to the specified new item.
		 */
		public abstract void @set (G item);
	}
	/**
	 * An object that maps keys to values.
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface Map<K,V> : GLib.Object, Gee.Iterable<Gee.Map.Entry<K,V>> {
		/**
		 * An entry of a map.
		 */
		public abstract class Entry<K,V> : GLib.Object {
			protected Entry ();
			/**
			 * The key of this entry.
			 */
			public abstract K key { get; }
			/**
			 * ``true`` if the setting value is permitted.
			 */
			public abstract bool read_only { get; }
			/**
			 * The value of this entry.
			 */
			public abstract V value { get; set; }
		}
		/**
		 * Removes all items from this collection. Must not be called on
		 * read-only collections.
		 */
		public abstract void clear ();
		/**
		 * Determines whether this map contains the specified key.
		 *
		 * @param key the key to locate in the map
		 *
		 * @return    ``true`` if key is found, ``false`` otherwise
		 */
		[Version (deprecated = true, replacement = "Map.has_key")]
		public bool contains (K key);
		/**
		 * Returns ``true`` if this map contains all the same items as the input
		 * map.
		 *
		 * @param map the map which items will be compared with this map
		 */
		[Version (deprecated = true, replacement = "Map.has_all")]
		public bool contains_all (Gee.Map<K,V> map);
		/**
		 * Returns an immutable empty map.
		 *
		 * @return an immutable empty map
		 */
		public static Gee.Map<K,V> empty<K,V> ();
		/**
		 * Returns the value of the specified key in this map.
		 *
		 * @param key the key whose value is to be retrieved
		 *
		 * @return    the value associated with the key, or ``null`` if the key
		 *            couldn't be found
		 */
		public abstract V @get (K key);
		/**
		 * Determines whether this map has the specified key/value entry.
		 *
		 * @param key the key to locate in the map
		 * @param value the corresponding value
		 *
		 * @return    ``true`` if key is found, ``false`` otherwise
		 */
		public abstract bool has (K key, V value);
		/**
		 * Returns ``true`` if this map contains all the same items as the input
		 * map.
		 *
		 * @param map the map which items will be compared with this map
		 */
		public virtual bool has_all (Gee.Map<K,V> map);
		/**
		 * Determines whether this map has the specified key.
		 *
		 * @param key the key to locate in the map
		 *
		 * @return    ``true`` if key is found, ``false`` otherwise
		 */
		public abstract bool has_key (K key);
		/**
		 * Returns an iterator for this map.
		 *
		 * @return a map iterator
		 */
		public abstract Gee.MapIterator<K,V> map_iterator ();
		/**
		 * Removes the specified key from this map.
		 *
		 * @param key   the key to remove from the map
		 * @param value the receiver variable for the removed value
		 *
		 * @return    ``true`` if the map has been changed, ``false`` otherwise
		 */
		[Version (deprecated = true, replacement = "Map.unset")]
		public bool remove (K key, out V value = null);
		/**
		 * Removes all items from this map that are common to the input map
		 * and this map.
		 *
		 * @param map the map which common items are deleted from this map
		 */
		[Version (deprecated = true, replacement = "Map.unset_all")]
		public bool remove_all (Gee.Map<K,V> map);
		/**
		 * Inserts a new key and value into this map.
		 *
		 * @param key   the key to insert
		 * @param value the value to associate with the key
		 */
		public abstract void @set (K key, V value);
		/**
		 * Inserts all items that are contained in the input map to this map.
		 *
		 * @param map the map which items are inserted to this map
		 */
		public virtual void set_all (Gee.Map<K,V> map);
		/**
		 * Removes the specified key from this map.
		 *
		 * @param key   the key to remove from the map
		 * @param value the receiver variable for the removed value
		 *
		 * @return    ``true`` if the map has been changed, ``false`` otherwise
		 */
		public abstract bool unset (K key, out V value = null);
		/**
		 * Removes all items from this map that are common to the input map
		 * and this map.
		 *
		 * @param map the map which common items are deleted from this map
		 */
		public virtual bool unset_all (Gee.Map<K,V> map);
		/**
		 * The read-only view of the entries of this map.
		 */
		public abstract Gee.Set<Gee.Map.Entry<K,V>> entries { owned get; }
		/**
		 * Specifies whether this map is empty.
		 */
		public virtual bool is_empty { get; }
		/**
		 * The type of the keys in this map.
		 */
		public GLib.Type key_type { get; }
		/**
		 * The read-only view of the keys of this map.
		 */
		public abstract Gee.Set<K> keys { owned get; }
		/**
		 * Specifies whether this collection can change - i.e. whether {@link set},
		 * {@link remove} etc. are legal operations.
		 */
		public abstract bool read_only { get; }
		/**
		 * The read-only view this map.
		 */
		public abstract Gee.Map<K,V> read_only_view { owned get; }
		/**
		 * The number of items in this map.
		 */
		public abstract int size { get; }
		/**
		 * The type of the values in this map.
		 */
		public GLib.Type value_type { get; }
		/**
		 * The read-only view of the values of this map.
		 */
		public abstract Gee.Collection<V> values { owned get; }
	}
	/**
	 * An iterator over a map.
	 *
	 * Gee's iterators are "on-track" iterators. They always point to an item
	 * except before the first call to {@link next}, or, when an
	 * item has been removed, until the next call to {@link next}.
	 *
	 * Please note that when the iterator is out of track, neither {@link get_key},
	 * {@link get_value}, {@link set_value} nor {@link unset} are defined and all
	 * will fail. After the next call to {@link next}, they will
	 * be defined again.
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface MapIterator<K,V> : GLib.Object {
		/**
		 * Standard aggregation function.
		 *
		 * It takes a function, seed and first element, returns the new seed and
		 * progress to next element when the operation repeats.
		 *
		 * Operation moves the iterator to last element in iteration. If iterator
		 * points at some element it will be included in iteration.
		 */
		public virtual A fold<A> (Gee.FoldMapFunc<A,K,V> f, owned A seed);
		/**
		 * Apply function to each element returned by iterator. 
		 *
		 * Operation moves the iterator to last element in iteration. If iterator
		 * points at some element it will be included in iteration.
		 */
		public new virtual bool @foreach (Gee.ForallMapFunc<K,V> f);
		/**
		 * Returns the current key in the iteration.
		 *
		 * @return the current key in the iteration
		 */
		public abstract K get_key ();
		/**
		 * Returns the value associated with the current key in the iteration.
		 *
		 * @return the value for the current key
		 */
		public abstract V get_value ();
		/**
		 * Checks whether there is a next entry in the iteration.
		 *
		 * @return ``true`` if the iterator has a next entry
		 */
		public abstract bool has_next ();
		/**
		 * Advances to the next entry in the iteration.
		 *
		 * @return ``true`` if the iterator has a next entry
		 */
		public abstract bool next ();
		/**
		 * Sets the value associated with the current key in the iteration.
		 *
		 * @param value the new value for the current key
		 */
		public abstract void set_value (V value);
		/**
		 * Unsets the current entry in the iteration. The cursor is set in an
		 * in-between state. {@link get_key}, {@link get_value}, {@link set_value}
		 * and {@link unset} will fail until the next move of the cursor (calling
		 * {@link next}).
		 */
		public abstract void unset ();
		/**
		 * Determines whether the call to {@link set_value} is legal assuming the
		 * iterator is valid. The value must not change in runtime hence the user
		 * of iterator may cache it.
		 */
		public abstract bool mutable { get; }
		/**
		 * Determines whether the call to {@link unset} is legal assuming the
		 * iterator is valid. The value must not change in runtime hence the user
		 * of iterator may cache it.
		 */
		public abstract bool read_only { get; }
		/**
		 * Determines whether the call to {@link get_key}, {@link get_value} and
		 * {@link set_value} is legal. It is false at the beginning and after
		 * {@link unset} call and true otherwise.
		 */
		public abstract bool valid { get; }
	}
	/**
	 * A map with multiple values per key.
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface MultiMap<K,V> : GLib.Object {
		/**
		 * Removes all items from this collection.
		 */
		public abstract void clear ();
		/**
		 * Determines whether this map contains the specified key.
		 *
		 * @param key the key to locate in the map
		 *
		 * @return    ``true`` if key is found, ``false`` otherwise
		 */
		public abstract bool contains (K key);
		/**
		 * Returns the values for the specified key in this map.
		 *
		 * @param key the key whose values are to be retrieved
		 *
		 * @return    a Collection of values associated with the given key
		 */
		public abstract Gee.Collection<V> @get (K key);
		/**
		 * Returns the keys of this multimap as a read-only set.
		 *
		 * @return the keys of the map
		 */
		public abstract Gee.MultiSet<K> get_all_keys ();
		/**
		 * Returns the keys of this multimap as a read-only set.
		 *
		 * @return the keys of the map
		 */
		public abstract Gee.Set<K> get_keys ();
		/**
		 * Returns the values of this map as a read-only collection.
		 *
		 * @return the values of the map
		 */
		public abstract Gee.Collection<V> get_values ();
		/**
		 * Returns an iterator for this map.
		 *
		 * @return a map iterator
		 */
		public abstract Gee.MapIterator<K,V> map_iterator ();
		/**
		 * Removes the specified key/value pair from this multimap.
		 *
		 * @param key   the key to remove from the map
		 * @param value the value to remove from the map
		 *
		 * @return      ``true`` if the map has been changed, ``false`` otherwise
		 */
		public abstract bool remove (K key, V value);
		/**
		 * Removes the specified key and all the associated values from this
		 * multimap.
		 *
		 * @param key the key to remove from the map
		 *
		 * @return    ``true`` if the map has been changed, ``false`` otherwise
		 */
		public abstract bool remove_all (K key);
		/**
		 * Inserts a key/value pair into this map.
		 *
		 * @param key   the key to insert
		 * @param value the value to associate with the key
		 */
		public abstract void @set (K key, V value);
		/**
		 * The type of the keys in this multimap.
		 */
		public GLib.Type key_type { get; }
		/**
		 * Specifies whether this collection can change - i.e. whether {@link set},
		 * {@link remove} etc. are legal operations.
		 */
		public abstract bool read_only { get; }
		public virtual Gee.MultiMap<K,V> read_only_view { owned get; }
		/**
		 * The number of key/value pairs in this map.
		 */
		public abstract int size { get; }
		/**
		 * The type of the values in this multimap.
		 */
		public GLib.Type value_type { get; }
	}
	/**
	 * A collection with duplicate elements.
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface MultiSet<G> : Gee.Collection<G> {
		/**
		 * Returns the number of occurrences of an item in this multiset.
		 *
		 * @param item the item to count occurrences of
		 *
		 * @return     the number of occurrences of the item in this multiset.
		 */
		public abstract int count (G item);
		/**
		 * Returns an immutable empty set.
		 *
		 * @return an immutable empty set
		 */
		public static Gee.Set<G> empty<G> ();
		/**
		 * The read-only view of this set.
		 */
		public new virtual Gee.MultiSet<G> read_only_view { owned get; }
	}
	/**
	 * A collection designed for holding elements prior to processing.
	 *
	 * Although all Queue implementations do not limit the amount of elements they
	 * can contain, this interface supports for capacity-bounded queues. When
	 * capacity is not bound, then the {@link capacity} and
	 * {@link remaining_capacity} both return {@link UNBOUNDED_CAPACITY}.
	 *
	 * This interface defines methods that will never fail whatever the state of
	 * the queue is. For capacity-bounded queues, those methods will either return
	 * ``false`` or ``null`` to specify that the insert or retrieval did not occur
	 * because the queue was full or empty.
	 *
	 * Queue implementations are not limited to First-In-First-Out behavior and can
	 * offer different orderings of their elements. Each Queue implementation must
	 * specify how it orders its elements.
	 *
	 * Queue implementations do not allow insertion of ``null`` elements, although
	 * some implementations, such as {@link LinkedList}, do not prohibit insertion
	 * of ``null``. Even in the implementations that permit it, ``null`` should not be
	 * inserted into a Queue, as ``null`` is also used as a special return value by
	 * the poll method to indicate that the queue contains no elements.
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface Queue<G> : Gee.Collection<G> {
		/**
		 * The unbounded capacity value.
		 */
		public const int UNBOUNDED_CAPACITY;
		/**
		 * Drains the specified amount of elements from this queue in the specified
		 * recipient collection.
		 *
		 * @param recipient the recipient collection to drain the elements to
		 * @param amount    the amount of elements to drain
		 *
		 * @return          the amount of elements that were actually drained
		 */
		public virtual int drain (Gee.Collection<G> recipient, int amount = -1);
		/**
		 * Offers the specified element to this queue.
		 *
		 * @param element the element to offer to the queue
		 *
		 * @return        ``true`` if the element was added to the queue
		 */
		public virtual bool offer (G element);
		/**
		 * Peeks (retrieves, but not remove) an element from this queue.
		 *
		 * @return the element peeked from the queue (or ``null`` if none was
		 *         available)
		 */
		public abstract G peek ();
		/**
		 * Polls (retrieves and remove) an element from this queue.
		 *
		 * @return the element polled from the queue (or ``null`` if none was
		 *         available)
		 */
		public abstract G poll ();
		/**
		 * The capacity of this queue (or ``UNBOUNDED_CAPACITY`` if capacity is not bound).
		 */
		public abstract int capacity { get; }
		/**
		 * Specifies whether this queue is full.
		 */
		public abstract bool is_full { get; }
		/**
		 * The remaining capacity of this queue (or ``UNBOUNDED_CAPACITY`` if capacity is not
		 * bound).
		 */
		public abstract int remaining_capacity { get; }
	}
	/**
	 * A collection without duplicate elements.
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface Set<G> : Gee.Collection<G> {
		/**
		 * Returns an immutable empty set.
		 *
		 * @return an immutable empty set
		 */
		public static Gee.Set<G> empty<G> ();
		/**
		 * The read-only view of this set.
		 */
		public new abstract Gee.Set<G> read_only_view { owned get; }
	}
	[CCode (cheader_filename = "gee.h")]
	public interface SortedMap<K,V> : Gee.Map<K,V> {
		/**
		 * Returns an immutable empty map.
		 *
		 * @return an immutable empty map
		 */
		public static Gee.Map<K,V> empty<K,V> ();
		/**
		 * Returns map containing pairs with key strictly lower the the argument.
		 */
		public abstract Gee.SortedMap<K,V> head_map (K before);
		/**
		 * Returns right-open map (i.e. containing all pair which key is strictly
		 * lower then the second argument and equal or bigger then the first one).
		 *
		 * Null as one parameter means that it should include all from this side.
		 */
		public abstract Gee.SortedMap<K,V> sub_map (K before, K after);
		/**
		 * Returns map containing pairs with key equal or larger then the argument.
		 */
		public abstract Gee.SortedMap<K,V> tail_map (K after);
		/**
		 * Returns the entries in ascending order.
		 */
		public abstract Gee.SortedSet<Gee.Map.Entry<K,V>> ascending_entries { owned get; }
		/**
		 * Returns the keys in ascending order.
		 */
		public abstract Gee.SortedSet<K> ascending_keys { owned get; }
		/**
		 * The read-only view this map.
		 */
		public new abstract Gee.SortedMap<K,V> read_only_view { owned get; }
	}
	/**
	 * A sorted set, which you can navigate over and get sub-sets of.
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface SortedSet<G> : Gee.Set<G> {
		/**
		 * Returns the element which is higher or equal then the specified element.
		 *
		 * @param element the element which you want the higher or equal element
		 *                for
		 *
		 * @return        the corresponding element
		 */
		public abstract G ceil (G element);
		/**
		 * Returns an immutable empty sorted set.
		 *
		 * @return an immutable empty sorted set
		 */
		public static Gee.SortedSet<G> empty<G> ();
		/**
		 * Returns the first element of the sorted set. Set must not be empty.
		 *
		 * @return the first element in the sorted set
		 */
		public abstract G first ();
		/**
		 * Returns the element which is lower or equal then the specified element.
		 *
		 * @param element the element which you want the lower or equal element for
		 *
		 * @return        the corresponding element
		 */
		public abstract G floor (G element);
		/**
		 * Returns the sub-set of this sorted set containing elements strictly
		 * lower than the specified element.
		 *
		 * @param before the lower inclusive bound for the sub-set
		 *
		 * @return     the corresponding sub-set of this sorted set
		 */
		public abstract Gee.SortedSet<G> head_set (G before);
		/**
		 * Returns the element which is strictly higher than the specified element.
		 *
		 * @param element the element which you want the strictly higher element
		 *                for
		 *
		 * @return        the corresponding element
		 */
		public abstract G higher (G element);
		/**
		 * Returns a {@link BidirIterator} initially pointed at the specified
		 * element.
		 *
		 * @param element the element to point the iterator at
		 *
		 * @return        a {@link BidirIterator} over this sorted set, or null if
		 *                the specified element is not in this set
		 */
		public abstract Gee.Iterator<G>? iterator_at (G element);
		/**
		 * Returns the last element of the sorted set. Set must not be empty.
		 *
		 * @return the last element in the sorted set
		 */
		public abstract G last ();
		/**
		 * Returns the element which is strictly lower than the specified element.
		 *
		 * @param element the element which you want the lower element for
		 *
		 * @return        the corresponding element
		 */
		public abstract G lower (G element);
		/**
		 * Returns the right-open sub-set of this sorted set, thus containing
		 * elements equal or higher than the specified ``from`` element, and stricly
		 * lower than the specified ``to`` element.
		 *
		 * @param from the lower inclusive bound for the sub-set
		 * @param to   the higher exclusive bound for the sub-set
		 *
		 * @return     the corresponding sub-set of this sorted set
		 */
		public abstract Gee.SortedSet<G> sub_set (G from, G to);
		/**
		 * Returns the sub-set of this sorted set containing elements equal or
		 * higher than the specified element.
		 *
		 * @param after the higher exclusive bound for the sub-set
		 *
		 * @return   the corresponding sub-set of this sorted set
		 */
		public abstract Gee.SortedSet<G> tail_set (G after);
		/**
		 * The read-only view of this set.
		 */
		public new abstract Gee.SortedSet<G> read_only_view { owned get; }
	}
	/**
	 * It's a common interface for {@link Iterator} and {@link Iterable}. It
	 * provides a fast, high level functions.
	 *
	 * ''{@link Iterator} implementation:'' Please note that most of the functions
	 * affect the state of the iterator by moving it forward.
	 * Even if the iterator is {@link BidirIterator} it ''must not''
	 * rewind the state.
	 *
	 * ''{@link Iterable} implementation:'' validy ({@link Iterator.valid})
	 * of returned iterator is the same as for invalid
	 * iterator. In other words the following code is semantically equivalent:
	 *
	 * {{{
	 *     var x = iterable.function (args);
	 *     var x = iterable.iterator ().function(args);
	 * }}}
	 *
	 * @since 0.7.0
	 */
	[CCode (cheader_filename = "gee.h")]
	[GenericAccessors]
	public interface Traversable<G> : GLib.Object {
		public enum Stream {
			YIELD,
			CONTINUE,
			END,
			WAIT
		}
		/**
		 * Checks whether all elements match the given predicate.
		 *
		 * @param pred Predicate to be called to check for matches
		 * @return Whether all elements match or not
		 * @since 0.19.91
		 */
		[CCode (ordering = 12)]
		public virtual bool all_match (owned Gee.Predicate<G> pred);
		/**
		 * Returns whether any element matches the given predicate.
		 *
		 * This is similar to @first_match, with the difference that it
		 * just returns whether there is a match or not, not the value
		 * of the match.
		 *
		 * @param pred Predicate to be called to check for matches
		 * @return Whether there was a match or not
		 * @since 0.19.91
		 */
		[CCode (ordering = 11)]
		public virtual bool any_match (owned Gee.Predicate<G> pred);
		/**
		 * Creates a new iterator which contains elements from iterable. The
		 * first argument states the offset i.e. number of elements the iterator
		 * skips by default.
		 *
		 * Note: In {@link Iterator} implementation resulting iterator is
		 *    {@link Iterator.valid} when parent iterator is
		 *    {@link Iterator.valid} and the offset is 0. Using the parent
		 *    iterator is not allowed before the inner iterator
		 *    {@link Iterator.next} return false and then it points on its last
		 *    element.
		 *
		 * @param offset the offset to first element the iterator is pointing to
		 * @param length maximum number of elements iterator may return. Negative
		 *        value means that the number is unbounded
		 */
		[CCode (ordering = 6)]
		public virtual Gee.Iterator<G> chop (int offset, int length = -1);
		/**
		 * Creates a new iterator that contains only values that fulfills the
		 * predicate.
		 *
		 * Note: When the method is called on {@link Iterator} using the parent
		 *    iterator is not allowed before the inner iterator
		 *    {@link Iterator.next} return false and then it points on its last
		 *    element. The resulting iterator is {@link Iterator.valid} if parent
		 *    iterator is {@link Iterator.valid} and value it is pointing at
		 *    fulfills the predicate.
		 *
		 * @param pred predicate to check should the value be retained
		 * @return Iterator containing values of subsequent values of seed
		 */
		[CCode (ordering = 5)]
		public virtual Gee.Iterator<G> filter (owned Gee.Predicate<G> pred);
		/**
		 * Returns the first element that matches a given condition
		 *
		 * @param pred Predicate to be called to check for matches
		 * @return The first element that matches or null
		 * @since 0.19.91
		 */
		[CCode (ordering = 10)]
		public virtual G first_match (owned Gee.Predicate<G> pred);
		/**
		 * A fused concatenate and map. The function is applied to each element
		 * of iteration and the resulting values are concatenated.
		 *
		 * The iterator is lazy evaluated but value is force-evaluated when
		 * iterator is moved to next value.
		 *
		 * Note: Default implementation uses {@link stream}.
		 *
		 * Note: In {@link Iterator} implementation if the parent iterator is
		 *    {@link Iterator.valid} and function returns a valid iterator the
		 *    resulting iterator is also valid. Using the parent iterator is not
		 *    allowed before the inner iterator {@link Iterator.next}
		 *    return false and then it points on its last element.
		 *
		 * @since 0.11.1
		 * @param f mapping function
		 * @return Iterator over returned values
		 */
		[CCode (ordering = 8)]
		public virtual Gee.Iterator<A> flat_map<A> (owned Gee.FlatMapFunc<A,G> f);
		/**
		 * Standard aggregation function.
		 *
		 * It takes a function, seed and first element, returns the new seed and
		 * progress to next element when the operation repeats.
		 *
		 * Note: Default implementation uses {@link foreach}.
		 *
		 * Note: In {@link Iterator} implementation operation moves the
		 *    iterator to last element in iteration. If iterator is
		 *    {@link Iterator.valid} the current element will be considered
		 *    as well.
		 *
		 */
		[CCode (ordering = 2)]
		public virtual A fold<A> (Gee.FoldFunc<A,G> f, owned A seed);
		/**
		 * Apply function to each element returned by iterator until last element
		 * or function return ''false''.
		 *
		 * ''{@link Iterator} implementation:'' Operation moves the iterator
		 * to last element in iteration or the first element that returned ''false''.
		 * If iterator points at some element it will be included in iteration.
		 *
		 * @param f function applied to every element of the collection
		 *
		 * @return ''false'' if the argument returned ''false'' at last invocation and
		 *         ''true'' otherwise.
		 */
		[CCode (ordering = 0)]
		public new abstract bool @foreach (Gee.ForallFunc<G> f);
		/**
		 * Produces an iterator pointing at elements generated by function passed.
		 *
		 * Iterator is lazy evaluated but value is force-evaluated when
		 * iterator moves to next element. ({@link Iterator.next})
		 *
		 * Note: Default implementation uses {@link stream}.
		 *
		 * Note: In {@link Iterator} implementation if the parent iterator is
		 *    {@link Iterator.valid} so is the returned one. Using the parent
		 *    iterator is not allowed before the inner iterator {@link Iterator.next}
		 *    return false and then it points on its last element.
		 *    The resulting iterator is {@link Iterator.valid} if the parent
		 *    iterator is.
		 *
		 * @param f Mapping function
		 * @return Iterator listing mapped value
		 */
		[CCode (ordering = 3)]
		public virtual Gee.Iterator<A> map<A> (Gee.MapFunc<A,G> f);
		/**
		 * Returns the item in the sequence that contains the max value
		 * based on the given compare function.
		 *
		 * @param compare Function to be called for comparisons
		 * @return The item containing the max value.
		 * @since 0.19.91
		 */
		[CCode (ordering = 13)]
		public virtual G max (owned GLib.CompareDataFunc<G> compare);
		/**
		 * Returns the item in the sequence that contains the min value
		 * based on the given compare function.
		 *
		 * @param compare Function to be called for comparisons
		 * @return The item containing the min value.
		 * @since 0.19.91
		 */
		[CCode (ordering = 14)]
		public virtual G min (owned GLib.CompareDataFunc<G> compare);
		/**
		 * Returns a new iterator containing the elements in the source
		 * ordered as specified by the comparison function.
		 *
		 * @param compare Comparison function
		 * @return A new iterator with the source elements sorted.
		 * @since 0.19.91
		 */
		[CCode (ordering = 15)]
		public virtual Gee.Iterator<G> order_by (owned GLib.CompareDataFunc<G>? compare = null);
		/**
		 * Creates a new iterator that is initially pointing to seed. Then
		 * subsequent values are obtained after applying the function to previous
		 * value and the subsequent items.
		 *
		 * The resulting iterator is always valid and it contains the seed value.
		 *
		 * Note: Default implementation uses {@link stream}.
		 *
		 * Note: When the method is called on {@link Iterator}, using the parent
		 *    iterator is not allowed before the inner iterator
		 *    {@link Iterator.next} returns false and then it points to its last
		 *    element. The resulting iterator is {@link Iterator.valid}.
		 *
		 * @param f Folding function
		 * @param seed original seed value
		 * @return Iterator containing values of subsequent values of seed
		 */
		[CCode (ordering = 4)]
		public virtual Gee.Iterator<A> scan<A> (Gee.FoldFunc<A,G> f, owned A seed);
		/**
		 * Stream function is an abstract function allowing writing many
		 * operations.
		 *
		 * The stream function accepts three parameter:
		 *
		 *   1. state. It is usually the last returned value from function but
		 *      it may be {@link Stream.END} when {@link Stream.CONTINUE} was
		 *      returned and there was no more elements.
		 *   1. input. It is valid only if first argument is
		 *      {@link Stream.CONTINUE}
		 *   1. output. It is valid only if result is Stream.YIELD
		 *
		 * It may return one of 3 results:
		 *
		 *   1. {@link Stream.YIELD}. It means that value was yielded and can
		 *      be passed to outgoing iterator.
		 *   1. {@link Stream.CONTINUE}. It means that the function needs to be
		 *      called with next element or with {@link Stream.END} if it is
		 *      end of stream). If the state element was Stream.END during the
		 *      current iteration function ''must not'' return {@link Stream.CONTINUE}.
		 *   1. {@link Stream.WAIT}. Simply denotes that iterator should skip an element.
		 *      Usually the function is called once again with {@link Stream.WAIT} as
		 *      state however it do affect the initial validity of iterator.
		 *   1. {@link Stream.END}. It means that the last argument was yielded.
		 *
		 * If the function yields the value immediately then the returning iterator
		 * is {@link Iterator.valid} and points to this value as well as in case when the
		 * parent iterator is {@link Iterator.valid} and function yields
		 * after consuming 1 input. In other case returned iterator is invalid including
		 * when the first value returned is {@link Stream.WAIT}.
		 *
		 * Note: In {@link Iterator} implementation: if iterator is
		 *    {@link Iterator.valid} the current value should be fed
		 *    immediately to function if during initial call function returns
		 *    {@link Stream.CONTINUE}. The parent iterator cannot be used before
		 *    the functions return {@link Stream.END} afterwards it points on the
		 *    last element consumed.
		 *
		 * @param f function generating stream
		 * @return iterator containing values yielded by stream
		 */
		[CCode (ordering = 1)]
		public virtual Gee.Iterator<A> stream<A> (owned Gee.StreamFunc<G,A> f);
		/**
		 * Splits the traversable into multiple ones, caching the result if needed.
		 *
		 * Note: In {@link Iterator} implementation using the parent iterator is
		 *   not allowed. However if any of the forked iterators {@link Iterator.next}
		 *   return false then it is treated as if the parent iterator
		 *   {@link Iterator.next} returned false.
		 *
		 * Note: The returned arrey might contain parent iterator if it is allowed
		 *   by implementation. For example the iteration over collection does
		 *   not need to generate and cache the results.
		 *   In such case it is recommended to return the value as the first element
		 *   of the array. This allows the consumer to check just the first element
		 *   if it can perform optimizations for such case. However it //must// not
		 *   depend on the order (that's for optimization only).
		 *
		 * Note: The resulting iterators does not need to be thread safe.
		 *
		 * @param forks Number of iterators in array
		 * @return An array with created iterators
		 * @since 0.11.5
		 */
		[CCode (ordering = 9)]
		public virtual Gee.Iterator<G>[] tee (uint forks);
		/**
		 * The type of the elements in this collection.
		 */
		[CCode (ordering = 7)]
		public virtual GLib.Type element_type { get; }
	}
	[CCode (cheader_filename = "gee.h")]
	public errordomain FutureError {
		/**
		 * The promise have been abandon - this indicates an error in program.
		 */
		ABANDON_PROMISE,
		/**
		 * Exception field has been set.
		 */
		EXCEPTION
	}
	/**
	 * A function comparing two object defining equivalence relationship.
	 *
	 * In other words if `equal_to` is `EqualDataFunc` then:
	 *
	 *  * It must be reflexive: for all objects `a` it holds that
	 *    `equal_to(a, a)`.
	 *  * It must be symmetric: for all objects `a` and `b` if
	 *    `equal_to(a, b)` then `equal_to(b, a)`.
	 *  * It must be transitive: if `equal_to(a, b)` and `equal_to(b, c)`
	 *    then `equal_to(a, c)`
	 *
	 * Note: The relationship //must not// change during lifetime of the
	 *   delegate.
	 *
	 * @param a First value
	 * @param b Second value
	 * @return Whether values are equal
	 *
	 * @see Hashable
	 */
	[CCode (cheader_filename = "gee.h")]
	public delegate bool EqualDataFunc<T> (T a, T b);
	[CCode (cheader_filename = "gee.h")]
	public delegate Gee.Iterator<A> FlatMapFunc<A,G> (owned G g);
	[CCode (cheader_filename = "gee.h")]
	public delegate A FoldFunc<A,G> (owned G g, owned A a);
	[CCode (cheader_filename = "gee.h")]
	public delegate A FoldMapFunc<A,K,V> (K k, V v, owned A a);
	[CCode (cheader_filename = "gee.h")]
	public delegate bool ForallFunc<G> (owned G g);
	[CCode (cheader_filename = "gee.h")]
	public delegate bool ForallMapFunc<K,V> (K k, V v);
	/**
	 * A function producing a hash for an object. Two hashes of equal
	 * objects (as specified by corresponding {@link EqualDataFunc}) have to
	 * be equal.
	 *
	 * Note: Hash for a given object //must not// change during the lifetime
	 *   of delegate.
	 *
	 * @param v Hashed value
	 * @return Hash for given value
	 *
	 * @see Hashable
	 */
	[CCode (cheader_filename = "gee.h")]
	public delegate uint HashDataFunc<T> (T v);
	[CCode (cheader_filename = "gee.h")]
	public delegate G LazyFunc<G> ();
	[CCode (cheader_filename = "gee.h")]
	public delegate A MapFunc<A,G> (owned G g);
	[CCode (cheader_filename = "gee.h")]
	public delegate bool Predicate<G> (G g);
	[CCode (cheader_filename = "gee.h")]
	public delegate Gee.Traversable.Stream StreamFunc<G,A> (Gee.Traversable.Stream state, owned Gee.Lazy<G>? g, out Gee.Lazy<A>? lazy);
	[CCode (cheader_filename = "gee.h", scope = "async")]
	public delegate G Task<G> ();
	[CCode (cheader_filename = "gee.h")]
	public delegate Gee.Lazy<A>? UnfoldFunc<A> ();
	/**
	 * Continues the execution asynchroniously in helper thread. Internally
	 * one of threads from pool will execute the task.
	 *
	 * Note: There is limited number of threads unless environment variable
	 *   ``GEE_NUM_THREADS`` is set to -1. It is not advised to call I/O or
	 *   block inside the taks. If necessary it is possible to create a new one
	 *   by anyther call.
	 *
	 * @see task
	 * @since 0.11.0
	 */
	[CCode (cheader_filename = "gee.h")]
	public static async void async_task () throws GLib.ThreadError;
	/**
	 * Schedules a task to execute asynchroniously. Internally one
	 * of threads from pool will execute the task.
	 *
	 * Note: There is limited number of threads unless environment variable
	 *   ``GEE_NUM_THREADS`` is set to -1. It is not advised to call I/O or
	 *   block inside the taks. If necessary it is possible to create a new one
	 *   by anyther call.
	 *
	 * @param task Task to be executed
	 * @return Future value returned by task
	 * @see async_task
	 * @since 0.11.0
	 */
	[CCode (cheader_filename = "gee.h")]
	public static Gee.Future<G> task<G> (owned Gee.Task<G> task) throws GLib.ThreadError;
}