20#ifndef HDRL_UTILS_SORT_H
21#define HDRL_UTILS_SORT_H
34typedef int (*
f_compare)(
const void *,
const void *);
hdrl_sort_type
Definition hdrl_cat_utils_sort.h:27
@ HDRL_SORT_INT
Definition hdrl_cat_utils_sort.h:28
@ HDRL_SORT_DOUBLE
Definition hdrl_cat_utils_sort.h:29
@ HDRL_SORT_HDRL_VALUE
Definition hdrl_cat_utils_sort.h:31
@ HDRL_SORT_CPL_SIZE
Definition hdrl_cat_utils_sort.h:30
int(* f_compare)(const void *, const void *)
Definition hdrl_cat_utils_sort.h:34
cpl_error_code sort_array_f(void *a, cpl_size nE, cpl_size sE, f_compare f)
sort_array_f Core sort algorith that it's called with the other sort function. If you need to changed...
Definition hdrl_cat_utils_sort.c:82
cpl_error_code sort_array(void *a, cpl_size nE, cpl_size sE, hdrl_sort_type type, cpl_sort_direction dir)
sort_array hdrl function for order arrays with know types. Using the type parameter for select the co...
Definition hdrl_cat_utils_sort.c:107
cpl_error_code sort_arrays_index(double *a, cpl_size nE, void **bs, cpl_size nA, hdrl_sort_type *types, cpl_sort_direction dir)
sort_arrays_index hdrl function for sort several arrays The alghorithm sort 'a' and in the same way s...
Definition hdrl_cat_utils_sort.c:188
cpl_error_code sort_array_index(double *a, cpl_size nE, void *b, hdrl_sort_type type, cpl_sort_direction dir)
sort_array_index hdrl function for sort two arrays The alghorithm sort 'a' and in the same way sort t...
Definition hdrl_cat_utils_sort.c:153