offbrand
A collection of generic, reference counted datastructures in C for C
 All Classes Files Functions Variables Typedefs Macros Groups
obdeque_private.h
Go to the documentation of this file.
1 
7 #ifndef OBDEQUE_PRIVATE_H
8 #define OBDEQUE_PRIVATE_H
9 
10 #include "../obdeque.h"
11 
12 /* obdeque_node TYPE */
13 
18 typedef struct obdeque_node_struct{
23 } obdeque_node;
24 
25 /* obdeque_node PRIVATE METHODS */
26 
35 obdeque_node * obdeque_new_node(obj *to_store);
36 
44 void obdeque_destroy_node(obj *to_dealloc);
45 
46 
47 /* obdeque_iterator type */
48 
55  const obdeque *deque;
58 };
59 
60 /* obdeque_iterator Private Methods */
61 
73 
81 void obdeque_destroy_iterator(obj *to_dealloc);
82 
83 
84 /* obdeque Type */
85 
94  uint64_t length;
96 };
97 
98 
99 /* obdeque Private Methods */
100 
110 
126 obdeque obdeque_recursive_sort(obdeque deque, int8_t order,
127  ob_compare_fptr funct);
128 
134 ob_hash_t obdeque_hash(const obj *to_hash);
135 
146 int8_t obdeque_compare(const obj *a, const obj *b);
147 
153 void obdeque_display(const obj *to_print);
154 
162 void obdeque_destroy(obj *to_dealloc);
163 
164 
165 #endif