offbrand
A collection of generic, reference counted datastructures in C for C
 All Classes Files Functions Variables Typedefs Macros Groups
obvector_private.h
Go to the documentation of this file.
1 
7 #ifndef OBVECTOR_PRIVATE_H
8 #define OBVECTOR_PRIVATE_H
9 
10 #include "../obvector.h"
11 
12 /* DATA */
13 
20  obj **array;
22  uint32_t length;
23  uint32_t capacity;
24 };
25 
26 
27 /* PRIVATE METHODS */
28 
34 obvector * obvector_create_default(uint32_t initial_capacity);
35 
42 void obvector_resize(obvector *v, uint32_t index);
43 
61 obj ** obvector_recursive_sort(obj **to_sort, uint32_t size, int8_t order,
62  ob_compare_fptr funct);
63 
69 ob_hash_t obvector_hash(const obj *to_hash);
70 
80 int8_t obvector_compare(const obj *a, const obj *b);
81 
87 void obvector_display(const obj *to_print);
88 
96 void obvector_destroy(obj *to_dealloc);
97 
98 /* PRIVATE UTILITY METHODS */
99 
110 uint32_t obvector_find_valid_precursor(obj **array, uint32_t index);
111 
112 #endif