Archeus 0.0.0
A C library and game engine that focuses on documentation
Loading...
Searching...
No Matches
queue.h
Go to the documentation of this file.
1#ifndef ARC_STD_QUEUE_H_
2#define ARC_STD_QUEUE_H_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include <stdint.h>
9
10/**
11 * @brief a queue type
12 */
13typedef struct ARC_Queue ARC_Queue;
14
15/**
16 * @brief creates ARC_Queue type
17 *
18 * @param queue ARC_Queue to initialize
19 */
21
22/**
23 * @brief destroyes ARC_Queue type
24 */
26
27/**
28 * @brief pushes value to end of queue
29 *
30 * @param queue ARC_Queue to push to
31 * @param data data that is being pushed
32 */
33void ARC_Queue_Push(ARC_Queue *queue, void *data);
34
35/**
36 * @brief pops the front off of the ARC_Queue
37 *
38 * @param queue ARC_Queue to remove from
39 *
40 * @return the poped data from the queue as a void *
41 */
43
44/**
45 * @brief gets size of queue
46 *
47 * @param vector ARC_Queue to get size from
48 *
49 * @return the queues size
50 */
51uint32_t ARC_Queue_Size(ARC_Queue *queue);
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif //ARC_STD_QUEUE_H_
void ARC_Queue_Push(ARC_Queue *queue, void *data)
pushes value to end of queue
void ARC_Queue_Destroy(ARC_Queue *queue)
destroyes ARC_Queue type
struct ARC_Queue ARC_Queue
a queue type
Definition queue.h:13
void * ARC_Queue_Pop(ARC_Queue *queue)
pops the front off of the ARC_Queue
uint32_t ARC_Queue_Size(ARC_Queue *queue)
gets size of queue
void ARC_Queue_Create(ARC_Queue **queue)
creates ARC_Queue type