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

queue struct defn More...

#include <queue.h>

Data Fields

char * name
 Stack instance name. More...
 
int max_size
 Max Size of queue. More...
 
int count
 Total elems present in queue. More...
 
int front
 Queue Front Pointer. More...
 
int rear
 Queue Rear Pointer. More...
 
e_queuetype type
 Stack Type. More...
 
t_gendata
 Ptr to link List or array based on type of queue. More...
 
f_ins enq
 routine to push elements to queue More...
 
f_gen deq
 routine to pop elements out of queue More...
 
f_len len
 routine to get length queue More...
 
f_genidx peek
 routine to peek node in queue More...
 
f_full full
 routine to check if queue full More...
 
f_empty empty
 routine to check if queue empty More...
 
f_print print
 routine to print queue elements More...
 
f_destroy destroy
 routine to detroy queue instance More...
 
f_print print_data
 
f_free free
 

Detailed Description

queue struct defn

Definition at line 17 of file queue.h.

Field Documentation

◆ count

int count

Total elems present in queue.

Definition at line 21 of file queue.h.

◆ data

t_gen* data

Ptr to link List or array based on type of queue.

Definition at line 27 of file queue.h.

◆ deq

f_gen deq

routine to pop elements out of queue

Definition at line 30 of file queue.h.

◆ destroy

f_destroy destroy

routine to detroy queue instance

routines for operating on data

Definition at line 36 of file queue.h.

◆ empty

f_empty empty

routine to check if queue empty

Definition at line 34 of file queue.h.

◆ enq

f_ins enq

routine to push elements to queue

Definition at line 29 of file queue.h.

◆ free

f_free free

Definition at line 40 of file queue.h.

◆ front

int front

Queue Front Pointer.

Definition at line 22 of file queue.h.

◆ full

f_full full

routine to check if queue full

Definition at line 33 of file queue.h.

◆ len

f_len len

routine to get length queue

Definition at line 31 of file queue.h.

◆ max_size

int max_size

Max Size of queue.

Definition at line 20 of file queue.h.

◆ name

char* name

Stack instance name.

Definition at line 19 of file queue.h.

◆ peek

f_genidx peek

routine to peek node in queue

Definition at line 32 of file queue.h.

◆ print

f_print print

routine to print queue elements

Definition at line 35 of file queue.h.

◆ print_data

f_print print_data

Definition at line 39 of file queue.h.

◆ rear

int rear

Queue Rear Pointer.

Definition at line 23 of file queue.h.

◆ type

Stack Type.

See also
types of queue

Definition at line 24 of file queue.h.


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