C Container Collection (CCC)
Loading...
Searching...
No Matches
impl_types.h
1#ifndef CCC_IMPL_TYPES_H
2#define CCC_IMPL_TYPES_H
3
5#include <stddef.h>
6#include <stdint.h>
10enum ccc_entry_status_ : uint8_t
11{
12 CCC_ENTRY_VACANT = 0,
13 CCC_ENTRY_OCCUPIED = 0x1,
14 CCC_ENTRY_INSERT_ERROR = 0x2,
15 CCC_ENTRY_ARG_ERROR = 0x4,
16 CCC_ENTRY_NO_UNWRAP = 0x8,
17};
18
20struct ccc_ent_
21{
22 void *e_;
23 enum ccc_entry_status_ stats_;
24};
25
27union ccc_entry_
28{
29 struct ccc_ent_ impl_;
30};
31
33struct ccc_handl_
34{
35 size_t i_;
36 enum ccc_entry_status_ stats_;
37};
38
40union ccc_handle_
41{
42 struct ccc_handl_ impl_;
43};
44
46struct ccc_range_u_
47{
48 union
49 {
50 void *begin_;
51 void *rbegin_;
52 };
53 union
54 {
55 void *end_;
56 void *rend_;
57 };
58};
59
61union ccc_range_
62{
63 struct ccc_range_u_ impl_;
64};
65
67union ccc_rrange_
68{
69 struct ccc_range_u_ impl_;
70};
71
72#endif /* CCC_IMPL_TYPES_H */