C Everything
This is a C repository containing a curated set of generic data structures and algorithm.
data_params Struct Reference

data params struct defn More...

#include <common.h>

Data Fields

e_data_types type
 Holds elem data type. More...
 
f_cmpr cmpr
 Routine used for comparing two given elems of said type. More...
 
f_assign assign
 Routine used for creating memory for storing the data. More...
 
f_swap swap
 Routine used for swaping two elemnts of goven data. More...
 
f_free free
 Routine used for freeing elements of said data. More...
 
f_cmp_idx cmpr_idx
 Routine used for comparing elems in given array indicies. More...
 
f_swp_idx swap_idx
 Routine used for swapring elems in given array indicies. More...
 
f_cpy_idx copy_idx
 Routine used for copying elems in given array indicies. More...
 
f_get_idx get_idx
 Routine used for getting elem in given array index. More...
 
f_print print_data
 Routine used for printing elem data. More...
 

Detailed Description

data params struct defn

data params struct to be passed to all data structures it holds functions pointers for operating on data depending on type of it

Definition at line 18 of file common.h.

Field Documentation

◆ assign

f_assign assign

Routine used for creating memory for storing the data.

Definition at line 24 of file common.h.

◆ cmpr

f_cmpr cmpr

Routine used for comparing two given elems of said type.

Definition at line 23 of file common.h.

◆ cmpr_idx

f_cmp_idx cmpr_idx

Routine used for comparing elems in given array indicies.

Definition at line 28 of file common.h.

◆ copy_idx

f_cpy_idx copy_idx

Routine used for copying elems in given array indicies.

Definition at line 30 of file common.h.

◆ free

f_free free

Routine used for freeing elements of said data.

Definition at line 26 of file common.h.

◆ get_idx

f_get_idx get_idx

Routine used for getting elem in given array index.

Definition at line 32 of file common.h.

◆ print_data

f_print print_data

Routine used for printing elem data.

Definition at line 33 of file common.h.

◆ swap

f_swap swap

Routine used for swaping two elemnts of goven data.

Definition at line 25 of file common.h.

◆ swap_idx

f_swp_idx swap_idx

Routine used for swapring elems in given array indicies.

Definition at line 29 of file common.h.

◆ type

Holds elem data type.

Definition at line 20 of file common.h.


The documentation for this struct was generated from the following file: