Top level include containg common headers.
t_gen(* f_update)(t_gen d, t_gen val, int idx)
heapf update key fn defn
struct heap t_heap
Heap struct defn.
e_heaptype
Types of heaps.
t_gen create_heap(char *name, t_gen data, int size, e_heaptype htype, t_dparams *prm)
Create an instance of heap
f_update update
routine to update a key of given heap node
f_len len
routine to get heap len
f_ins insert
routine to insert elements in heap
f_vgen sort
routine to heap sort
f_print print
routine to print heap info
int size
Max Size of heap.
char * name
Stack instance name.
f_vgen build
routine to heapify
f_destroy destroy
routine to destroy
f_empty empty
routine to check if heap empty
f_full full
routine to check if heap full
e_heaptype type
Stack Type.
int count
Total elems present in heap.
f_gen extract
routine to extract min/max root element in heap
t_gen * data
Ptr to array based heap.
void(* f_vgen)(t_gen)
fn ptr that takes one gen ptr and return nothing
bool(* f_empty)(t_gen)
fn type of an empty function
f_vgen f_print
fn type to print function
f_vgen f_destroy
fn type of destroy function
void(* f_cpy_idx)(t_gen, int, t_gen)
e_cmpr(* f_cmpr)(t_gen, t_gen)
Basic operations required for generic data type support.
f_genidx f_get_idx
fn type of delete elem at idx function
void(* f_swp_idx)(t_gen, int, int)
bool(* f_full)(t_gen)
fn type of a full function
int(* f_len)(t_gen)
fn type of get len function
void * t_gen
Base Data type used for all data structure and data elements.
f_vgen2 f_ins
fn type of insert elem function
t_gen(* f_gen)(t_gen)
Generic data pointer definitions that are common to most data structure operations.
e_cmpr(* f_cmp_idx)(t_gen, int, int)