High-Level Data Reduction Library 1.6.0
High-Level data reduction routines for ESO pipelines
Loading...
Searching...
No Matches
hdrl_cat_utils_sort.h File Reference
#include "hdrl_cat_def.h"
Include dependency graph for hdrl_cat_utils_sort.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef int(* f_compare) (const void *, const void *)
 

Enumerations

enum  hdrl_sort_type { HDRL_SORT_INT = 1 , HDRL_SORT_DOUBLE , HDRL_SORT_CPL_SIZE , HDRL_SORT_HDRL_VALUE }
 

Functions

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 the the method of sort this is the function that you need modified.
 
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 comparation function
 
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 the other generic array by the index of 'a'.
 
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 sort the others generic arrays by the index of 'a'.
 

Typedef Documentation

◆ f_compare

typedef int(* f_compare) (const void *, const void *)

Enumeration Type Documentation

◆ hdrl_sort_type

Enumerator
HDRL_SORT_INT 
HDRL_SORT_DOUBLE 
HDRL_SORT_CPL_SIZE 
HDRL_SORT_HDRL_VALUE