TeoCCl library  0.1.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
deque.h
Go to the documentation of this file.
1 
11 #ifndef DEQUE_H
12 #define DEQUE_H
13 
14 #include <stdlib.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 typedef struct ccl_deque ccl_deque_t;
21 
22 //typedef struct node iter_list_t;
23 
24 ccl_deque_t *cclDequeInit(const size_t data_size);
25 int cclDequeSize(const ccl_deque_t *deq);
26 int cclDequeEmpty(const ccl_deque_t *deq);
27 int cclDequeTrim(ccl_deque_t *deq);
28 
29 int cclDequePushFront(ccl_deque_t *deq, void *const data);
30 int cclDequePushBack(ccl_deque_t *deq, void *const data);
31 
32 int cclDequePopFront(ccl_deque_t *deq, void *const data);
33 int cclDequePopBack(ccl_deque_t *deq, void *const data);
34 
35 int cclDequeSetFirst(ccl_deque_t *deq, void *const data);
36 int cclDequeSetAt(ccl_deque_t *deq, int idx, void *const data);
37 int cclDequeSetLast(ccl_deque_t *deq, void *const data);
38 
39 int cclDequeGetFirst(ccl_deque_t *deq, void *data);
40 int cclDequeGetAt(ccl_deque_t *deq, int idx, void *data);
41 int cclDequeGetLast(ccl_deque_t *deq, void *data);
42 
43 int cclDequeClear(ccl_deque_t *deq);
44 void cclDequeDestroy(ccl_deque_t *deq);
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif
int cclDequeGetLast(ccl_deque_t *deq, void *data)
Definition: deque.c:278
int cclDequeSetLast(ccl_deque_t *deq, void *const data)
Definition: deque.c:245
int cclDequeEmpty(const ccl_deque_t *deq)
Definition: deque.c:51
int cclDequeGetAt(ccl_deque_t *deq, int idx, void *data)
Definition: deque.c:257
int cclDequePushBack(ccl_deque_t *deq, void *const data)
Definition: deque.c:144
void cclDequeDestroy(ccl_deque_t *deq)
Definition: deque.c:308
struct ccl_deque ccl_deque_t
Definition: deque.h:20
int cclDequeTrim(ccl_deque_t *deq)
Definition: deque.c:57
int cclDequeSetFirst(ccl_deque_t *deq, void *const data)
Definition: deque.c:218
int cclDequePopBack(ccl_deque_t *deq, void *const data)
Definition: deque.c:198
int cclDequeSize(const ccl_deque_t *deq)
Definition: deque.c:45
int cclDequeClear(ccl_deque_t *deq)
Definition: deque.c:284
int cclDequePushFront(ccl_deque_t *deq, void *const data)
Definition: deque.c:95
int cclDequeSetAt(ccl_deque_t *deq, int idx, void *const data)
Definition: deque.c:224
ccl_deque_t * cclDequeInit(const size_t data_size)
Definition: deque.c:22
int cclDequePopFront(ccl_deque_t *deq, void *const data)
Definition: deque.c:178
int cclDequeGetFirst(ccl_deque_t *deq, void *data)
Definition: deque.c:251