20#ifndef HDRL_UTILS_SORT_H
21#define HDRL_UTILS_SORT_H
24#include "hdrl_cat_def.h"
34typedef int (*f_compare)(
const void *,
const void *);
36cpl_error_code
sort_array_f(
void *a, cpl_size nE, cpl_size sE, f_compare f);
37cpl_error_code
sort_array(
void *a, cpl_size nE, cpl_size sE, hdrl_sort_type type, cpl_sort_direction dir);
39cpl_error_code
sort_array_index(
double *a, cpl_size nE,
void *b, hdrl_sort_type type, cpl_sort_direction dir);
40cpl_error_code
sort_arrays_index(
double *a, cpl_size nE,
void **bs, cpl_size nA, hdrl_sort_type *types, cpl_sort_direction dir);
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...
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...
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...
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...