offbrand
A collection of generic, reference counted datastructures in C for C
Main Page
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Macros
Groups
include
private
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
{
19
obj
base
;
20
obj
*
stored
;
21
struct
obdeque_node_struct
*
next
;
22
struct
obdeque_node_struct
*
prev
;
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
53
struct
obdeque_iterator_struct
{
54
obj
base
;
55
const
obdeque
*
deque
;
56
obdeque_node
*
node
;
58
};
59
60
/* obdeque_iterator Private Methods */
61
71
struct
obdeque_iterator_struct
*
obdeque_new_iterator
(
const
obdeque
*
deque
,
72
obdeque_node
*
node
);
73
81
void
obdeque_destroy_iterator
(
obj
*to_dealloc);
82
83
84
/* obdeque Type */
85
90
struct
obdeque_struct
{
91
obj
base
;
92
obdeque_node
*
head
;
93
obdeque_node
*
tail
;
94
uint64_t
length
;
96
};
97
98
99
/* obdeque Private Methods */
100
109
obdeque
*
obdeque_create_default
(
void
);
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
Generated on Sun Jun 30 2013 15:56:45 for offbrand by
1.8.4