Top level include containg common headers.
struct llnode t_llnode
Link list node definition.
t_gen create_link_list(char *name, e_lltype type, t_dparams *dprm)
Create an instance of link list
struct linklist t_linklist
Link List main structure.
e_lltype
Type of linklists.
@ eSINGLE_CIRCULAR_LINKLIST
Singly Circular Link list.
@ eDOUBLE_LINKLIST
Doubly Link list.
@ eDOUBLE_CIRCULAR_LINKLIST
Doubly Circular Link list.
@ eXOR_LINKLIST
Xor Link list.
@ eSINGLE_LINKLIST
Singly Link list
Link List main structure.
f_find find
routine to find and get the node with matching elem
f_ins add
routine to Add elem at begin of link list
f_gen2 next_node
routine to get the next node of the given node
f_len len
routine to get len of link list
f_print print_info
routine to print the detailed of link list
f_get_idx get_idx
routine to get node at idx
f_ins append
routine to Add elem at end of link list
f_print print
routine to print the link list
t_llnode * head
Head node reference.
char * name
Name of link list instance */.
f_destroy destroy
routine destroy the link list instance
f_gen head_node
routine to get the head node
f_del_idx del_idx
routine to del node at idx
f_gen2 prev_node
routine to get the prev node of the given node
f_print print_data
routies for operating on data
e_lltype type
Type of link list.
f_gen end_node
routine to get the end node
t_llnode * tail
Tail node reference.
f_gen tail_node
routine to get the tail node
e_data_types dtype
Type of data elemnts to be stored.
f_del del
routine to del node with matching elem of link list
int count
Total no of elems stored in link list.
f_gen get_node_data
routine to get data in given node
Link list node definition.
t_gen data
Pointer to the data to be stored in link list.
struct llnode * prv
Pointer to prev node in list.
struct llnode * nxt
Pointer to next node in list.
f_gen2 f_find
fn type of find a elem function
void(* f_free)(t_gen, char *, int)
f_vgen f_print
fn type to print function
f_vgen f_destroy
fn type of destroy function
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
t_gen(* f_gen2)(t_gen, t_gen)
fn ptr that takes two gen ptr and return gen ptr
enum data_types e_data_types
Enum to create data structure of the following type.
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.
f_genidx f_del_idx
fn type of get elem at idx function
f_gen2 f_del
fn type of delete elem function