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

Link List main structure. More...

#include <link_list.h>

Data Fields

char * name
 Name of link list instance *‍/. More...
 
e_lltype type
 Type of link list. More...
 
int count
 Total no of elems stored in link list. More...
 
e_data_types dtype
 Type of data elemnts to be stored. More...
 
t_llnodehead
 Head node reference. More...
 
t_llnodetail
 Tail node reference. More...
 
f_ins append
 routine to Add elem at end of link list More...
 
f_ins add
 routine to Add elem at begin of link list More...
 
f_del del
 routine to del node with matching elem of link list More...
 
f_find find
 routine to find and get the node with matching elem More...
 
f_del_idx del_idx
 routine to del node at idx More...
 
f_get_idx get_idx
 routine to get node at idx More...
 
f_len len
 routine to get len of link list More...
 
f_print print
 routine to print the link list More...
 
f_print print_info
 routine to print the detailed of link list More...
 
f_gen head_node
 routine to get the head node More...
 
f_gen tail_node
 routine to get the tail node More...
 
f_gen end_node
 routine to get the end node More...
 
f_gen2 next_node
 routine to get the next node of the given node More...
 
f_gen2 prev_node
 routine to get the prev node of the given node More...
 
f_gen get_node_data
 routine to get data in given node More...
 
f_destroy destroy
 routine destroy the link list instance More...
 
f_print print_data
 routies for operating on data More...
 
f_cmpr cmpr
 
f_assign assign
 
f_swap swap
 
f_free free
 

Detailed Description

Link List main structure.

Definition at line 26 of file link_list.h.

Field Documentation

◆ add

f_ins add

routine to Add elem at begin of link list

Definition at line 38 of file link_list.h.

◆ append

f_ins append

routine to Add elem at end of link list

Definition at line 37 of file link_list.h.

◆ assign

f_assign assign

Definition at line 57 of file link_list.h.

◆ cmpr

f_cmpr cmpr

Definition at line 56 of file link_list.h.

◆ count

int count

Total no of elems stored in link list.

Definition at line 29 of file link_list.h.

◆ del

f_del del

routine to del node with matching elem of link list

Definition at line 39 of file link_list.h.

◆ del_idx

f_del_idx del_idx

routine to del node at idx

Definition at line 41 of file link_list.h.

◆ destroy

f_destroy destroy

routine destroy the link list instance

Definition at line 52 of file link_list.h.

◆ dtype

e_data_types dtype

Type of data elemnts to be stored.

Definition at line 30 of file link_list.h.

◆ end_node

f_gen end_node

routine to get the end node

Definition at line 48 of file link_list.h.

◆ find

f_find find

routine to find and get the node with matching elem

Definition at line 40 of file link_list.h.

◆ free

f_free free

Definition at line 59 of file link_list.h.

◆ get_idx

f_get_idx get_idx

routine to get node at idx

Definition at line 42 of file link_list.h.

◆ get_node_data

f_gen get_node_data

routine to get data in given node

Definition at line 51 of file link_list.h.

◆ head

t_llnode* head

Head node reference.

Definition at line 33 of file link_list.h.

◆ head_node

f_gen head_node

routine to get the head node

Definition at line 46 of file link_list.h.

◆ len

f_len len

routine to get len of link list

Definition at line 43 of file link_list.h.

◆ name

char* name

Name of link list instance *‍/.

Definition at line 27 of file link_list.h.

◆ next_node

f_gen2 next_node

routine to get the next node of the given node

Definition at line 49 of file link_list.h.

◆ prev_node

f_gen2 prev_node

routine to get the prev node of the given node

Definition at line 50 of file link_list.h.

◆ print

f_print print

routine to print the link list

Definition at line 44 of file link_list.h.

◆ print_data

f_print print_data

routies for operating on data

Definition at line 55 of file link_list.h.

◆ print_info

f_print print_info

routine to print the detailed of link list

Definition at line 45 of file link_list.h.

◆ swap

f_swap swap

Definition at line 58 of file link_list.h.

◆ tail

t_llnode* tail

Tail node reference.

Definition at line 34 of file link_list.h.

◆ tail_node

f_gen tail_node

routine to get the tail node

Definition at line 47 of file link_list.h.

◆ type

e_lltype type

Type of link list.

Definition at line 28 of file link_list.h.


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