C Tool Box 0.1.0
|
Go to the source code of this file.
Data Structures | |
struct | ctb_Queue |
Queue data structure. More... | |
Typedefs | |
typedef struct ctb_Queue | ctb_Queue_t |
Queue type. | |
Functions | |
ctb_Queue_t * | ctb_Queue_init (ctb_Queue_t *const self) |
Initializes a queue. | |
bool | ctb_Queue_isEmpty (ctb_Queue_t *const self) |
Checks if the queue is empty. | |
void | ctb_Queue_enqueue (ctb_Queue_t *const self, ctb_DNode_t *const node) |
Adds a node at the end of the queue. | |
ctb_DNode_t * | ctb_Queue_dequeue (ctb_Queue_t *const self) |
Removes and returns the first node from the queue. | |
void | ctb_Queue_clear (ctb_Queue_t *const self) |
Clears the queue. | |
void ctb_Queue_clear | ( | ctb_Queue_t *const | self | ) |
Clears the queue.
self | Pointer to a queue |
ctb_DNode_t * ctb_Queue_dequeue | ( | ctb_Queue_t *const | self | ) |
Removes and returns the first node from the queue.
self | Pointer to a queue |
void ctb_Queue_enqueue | ( | ctb_Queue_t *const | self, |
ctb_DNode_t *const | node ) |
Adds a node at the end of the queue.
self | Pointer to a queue |
node | Pointer to the node to add |
ctb_Queue_t * ctb_Queue_init | ( | ctb_Queue_t *const | self | ) |
Initializes a queue.
self | Pointer to a queue |
bool ctb_Queue_isEmpty | ( | ctb_Queue_t *const | self | ) |
Checks if the queue is empty.
self | Pointer to a queue |