#include "ctb_DList.h"
#include <stdbool.h>
Go to the source code of this file.
|
|
typedef struct ctb_Queue | ctb_Queue_t |
| | Queue type.
|
| |
◆ ctb_Queue_clear()
Clears the queue.
- Parameters
-
◆ ctb_Queue_dequeue()
Removes and returns the first node from the queue.
- Parameters
-
- Returns
- Pointer to the first node in the queue
◆ ctb_Queue_enqueue()
Adds a node at the end of the queue.
- Parameters
-
| self | Pointer to a queue |
| node | Pointer to the node to add |
◆ ctb_Queue_init()
Initializes a queue.
- Parameters
-
- Returns
- Pointer to the initialized queue
◆ ctb_Queue_isEmpty()
Checks if the queue is empty.
- Parameters
-
- Returns
- True if the queue is empty, false otherwise