various array utilities More...
#include <glib.h>
Go to the source code of this file.
Functions | |
GArray Methods | |
gpointer | gfsm_array_lower_bound (GArray *array, guint element_size, gconstpointer key, GCompareDataFunc compare_func, gpointer data) |
GPtrArray Methods | |
gpointer * | gfsm_ptr_array_lower_bound (GPtrArray *parray, gconstpointer key, GCompareDataFunc compare_func, gpointer data) |
gpointer * | gfsm_ptr_array_insert_sorted (GPtrArray *parray, gpointer elt, GCompareDataFunc compare_func, gpointer data) |
gpointer gfsm_array_lower_bound | ( | GArray * | array, |
guint | element_size, | ||
gconstpointer | key, | ||
GCompareDataFunc | compare_func, | ||
gpointer | data | ||
) |
Search a ::GArray array of elements of size element_size sorted according to compare_func for the first element not less-than or equal to key, using data as comparison data.
array | ::GArray to search |
element_size | size of elements in array |
key | key element to search for |
compare_func | comparison function for search (array should be sorted consistently with compare_func) |
data | comparison data |
gpointer* gfsm_ptr_array_lower_bound | ( | GPtrArray * | parray, |
gconstpointer | key, | ||
GCompareDataFunc | compare_func, | ||
gpointer | data | ||
) |
Search a ::GPtrArray parray sorted according to compare_func for the first element not less-than or equal to key, using data as comparison data.
gpointer* gfsm_ptr_array_insert_sorted | ( | GPtrArray * | parray, |
gpointer | elt, | ||
GCompareDataFunc | compare_func, | ||
gpointer | data | ||
) |
Insert an element into a sorted ::GPtrArray.