|
Derive-C
|
#include <derive-c/core/includes/def.h>#include "includes.h"#include <derive-c/core/self/def.h>#include <derive-c/core/index/capacity_to_bits/def.h>#include <derive-c/core/index/bits_to_type/def.h>#include <derive-c/core/index/bits_to_type/undef.h>#include <derive-c/core/index/capacity_to_bits/undef.h>#include <derive-c/core/self/undef.h>#include <derive-c/core/includes/undef.h>Go to the source code of this file.
Data Structures | |
| struct | SELF |
| An allocator that prints to stdout when it allocates or frees memory. More... | |
| struct | ITER_CONST |
| struct | ITER |
Macros | |
| #define | EXCLUSIVE_END_INDEX 32 |
| A simple bitset for indexes [0, EXCLUSIVE_END_INDEX), statically allocated. | |
| #define | INDICES_CAPACITY EXCLUSIVE_END_INDEX |
| #define | INVARIANT_CHECK(self) |
| #define | ITER_INDEX_TYPE INDEX_LARGER_TYPE |
| #define | ITER_CONST NS(SELF, iter_const) |
| #define | ITER NS(SELF, iter) |
Typedefs | |
| typedef INDEX_TYPE | index_t |
| typedef ITER_INDEX_TYPE | item |
Functions | |
| DC_STATIC_ASSERT (EXCLUSIVE_END_INDEX > 0, DC_EXPAND_STRING(SELF) " EXCLUSIVE_END_INDEX must be larger than 0 for nonempty bitset") | |
| static DC_PUBLIC SELF | new () |
| static DC_PUBLIC bool | try_set (SELF *self, INDEX_TYPE index, bool value) |
| static DC_PUBLIC void | set (SELF *self, INDEX_TYPE index, bool value) |
| static DC_PUBLIC bool | get (SELF const *self, INDEX_TYPE index) |
| static DC_PUBLIC void | debug (SELF const *self, dc_debug_fmt fmt, FILE *stream) |
| static DC_PUBLIC SELF | clone (SELF const *self) |
| static DC_PUBLIC size_t | size (SELF const *self) |
| static DC_PUBLIC void | delete (SELF *self) |
| static DC_PUBLIC bool | empty_item (ITER_INDEX_TYPE const *item) |
| static DC_PUBLIC ITER_INDEX_TYPE | next (ITER_CONST *iter) |
| static DC_PUBLIC bool | empty (ITER_CONST const *iter) |
| static DC_PUBLIC ITER_CONST | get_iter_const (SELF const *self) |
| static DC_PUBLIC ITER_INDEX_TYPE | next (ITER *iter) |
| static DC_PUBLIC bool | empty (ITER const *iter) |
| static DC_PUBLIC ITER | get_iter (SELF *self) |
| DC_TRAIT_BITSET (SELF) | |
Variables | |
| DC_STATIC_CONSTANT INDEX_TYPE | max_index = EXCLUSIVE_END_INDEX - 1 |
| DC_STATIC_CONSTANT INDEX_TYPE | min_index = 0 |
| #define EXCLUSIVE_END_INDEX 32 |
A simple bitset for indexes [0, EXCLUSIVE_END_INDEX), statically allocated.
Definition at line 14 of file template.h.
| #define INDICES_CAPACITY EXCLUSIVE_END_INDEX |
Definition at line 21 of file template.h.
| #define INVARIANT_CHECK | ( | self | ) |
Definition at line 37 of file template.h.
Definition at line 199 of file template.h.
Definition at line 147 of file template.h.
| #define ITER_INDEX_TYPE INDEX_LARGER_TYPE |
Definition at line 144 of file template.h.
| typedef INDEX_TYPE index_t |
Definition at line 26 of file template.h.
| typedef ITER_INDEX_TYPE item |
Definition at line 153 of file template.h.
Definition at line 115 of file template.h.
| DC_STATIC_ASSERT | ( | EXCLUSIVE_END_INDEX | , |
| 0 | , | ||
| DC_EXPAND_STRING(SELF) " EXCLUSIVE_END_INDEX must be larger than 0 for nonempty bitset" | ) |
| DC_TRAIT_BITSET | ( | SELF | ) |
|
static |
Definition at line 95 of file template.h.
Definition at line 136 of file template.h.
Definition at line 228 of file template.h.
|
static |
Definition at line 176 of file template.h.
|
static |
Definition at line 155 of file template.h.
Definition at line 80 of file template.h.
Definition at line 234 of file template.h.
|
static |
Definition at line 182 of file template.h.
Definition at line 39 of file template.h.
|
static |
Definition at line 211 of file template.h.
|
static |
Definition at line 159 of file template.h.
Definition at line 73 of file template.h.
Definition at line 125 of file template.h.
Definition at line 47 of file template.h.
| DC_STATIC_CONSTANT INDEX_TYPE max_index = EXCLUSIVE_END_INDEX - 1 |
Definition at line 28 of file template.h.
| DC_STATIC_CONSTANT INDEX_TYPE min_index = 0 |
Definition at line 29 of file template.h.