|
Derive-C
|
#include <derive-c/core/includes/def.h>#include "includes.h"#include <derive-c/core/alloc/def.h>#include <derive-c/core/self/def.h>#include <derive-c/core/index/bits_to_type/def.h>#include <derive-c/core/index/type_to_strong/def.h>#include <derive-c/utils/slot/template.h>#include <derive-c/core/index/type_to_strong/undef.h>#include <derive-c/core/index/bits_to_type/undef.h>#include <derive-c/core/self/undef.h>#include <derive-c/core/alloc/undef.h>#include <derive-c/core/includes/undef.h>Go to the source code of this file.
Data Structures | |
| struct | value_t |
| struct | SELF |
| An allocator that prints to stdout when it allocates or frees memory. More... | |
| struct | IV_PAIR |
| struct | ITER |
| struct | IV_PAIR_CONST |
| struct | ITER_CONST |
Macros | |
| #define | INDEX_BITS 32 |
| A vector-backed arena, with support for small indices. | |
| #define | VALUE value_t |
| #define | VALUE_DELETE value_delete |
| #define | VALUE_CLONE value_clone |
| #define | VALUE_DEBUG value_debug |
| #define | CHECK_ACCESS_INDEX(self, index) |
| #define | RESIZE_FACTOR 2 |
| #define | SLOT NS(NAME, slot) |
| #define | SLOT_INDEX_TYPE INDEX_TYPE |
| #define | SLOT_VALUE VALUE |
| #define | SLOT_VALUE_CLONE VALUE_CLONE |
| #define | SLOT_VALUE_CLONE VALUE_CLONE |
| #define | SLOT_VALUE_DELETE VALUE_DELETE |
| #define | INTERNAL_NAME SLOT |
| #define | INVARIANT_CHECK(self) |
| #define | IV_PAIR NS(SELF, iv) |
| #define | ITER NS(SELF, iter) |
| #define | IV_PAIR_CONST NS(SELF, iv_const) |
| #define | ITER_CONST NS(SELF, iter_const) |
Typedefs | |
| typedef IV_PAIR | item |
Functions | |
| static void | VALUE_DELETE (value_t *) |
| static value_t | VALUE_CLONE (value_t const *self) |
| static void | VALUE_DEBUG (VALUE const *, dc_debug_fmt, FILE *) |
| DC_STATIC_ASSERT (sizeof(VALUE), "VALUE must be a non-zero sized type") | |
| static DC_PUBLIC SELF | new_with_capacity_for (INDEX_TYPE items, ref alloc_ref) |
| static DC_PUBLIC INDEX | insert (SELF *self, VALUE value) |
| static DC_PUBLIC VALUE * | try_write (SELF *self, INDEX index) |
| static DC_PUBLIC VALUE * | write (SELF *self, INDEX index) |
| static DC_PUBLIC VALUE const * | try_read (SELF const *self, INDEX index) |
| static DC_PUBLIC VALUE const * | read (SELF const *self, INDEX index) |
| static DC_PUBLIC SELF | clone (SELF const *self) |
| static DC_PUBLIC size_t | size (SELF const *self) |
| static DC_PUBLIC bool | full (SELF const *self) |
| static DC_PUBLIC bool | try_remove (SELF *self, INDEX index, VALUE *destination) |
| static DC_PUBLIC VALUE | remove (SELF *self, INDEX index) |
| static DC_PUBLIC IV_PAIR | iv_empty () |
| static DC_PUBLIC bool | empty_item (IV_PAIR const *item) |
| static DC_PUBLIC bool | empty (ITER const *iter) |
| static DC_PUBLIC IV_PAIR | next (ITER *iter) |
| static DC_PUBLIC ITER | get_iter (SELF *self) |
| static DC_PUBLIC void | delete (SELF *self) |
| static DC_PUBLIC IV_PAIR_CONST | iv_const_empty () |
| static DC_PUBLIC bool | empty_item (IV_PAIR_CONST const *item) |
| static DC_PUBLIC bool | empty (ITER_CONST const *iter) |
| static DC_PUBLIC IV_PAIR_CONST | next (ITER_CONST *iter) |
| static DC_PUBLIC ITER_CONST | get_iter_const (SELF const *self) |
| static DC_PUBLIC void | debug (SELF const *self, dc_debug_fmt fmt, FILE *stream) |
| DC_TRAIT_ARENA (SELF) | |
Variables | |
| static DC_PUBLIC const size_t | max_entries = MAX_INDEX |
| #define CHECK_ACCESS_INDEX | ( | self, | |
| index ) |
Definition at line 51 of file template.h.
| #define INDEX_BITS 32 |
A vector-backed arena, with support for small indices.
Definition at line 15 of file template.h.
| #define INTERNAL_NAME SLOT |
Definition at line 67 of file template.h.
| #define INVARIANT_CHECK | ( | self | ) |
Definition at line 90 of file template.h.
Definition at line 280 of file template.h.
Definition at line 366 of file template.h.
Definition at line 269 of file template.h.
Definition at line 355 of file template.h.
| #define RESIZE_FACTOR 2 |
Definition at line 55 of file template.h.
Definition at line 60 of file template.h.
| #define SLOT_INDEX_TYPE INDEX_TYPE |
Definition at line 62 of file template.h.
| #define SLOT_VALUE VALUE |
Definition at line 63 of file template.h.
| #define SLOT_VALUE_CLONE VALUE_CLONE |
Definition at line 64 of file template.h.
| #define SLOT_VALUE_CLONE VALUE_CLONE |
Definition at line 64 of file template.h.
| #define SLOT_VALUE_DELETE VALUE_DELETE |
Definition at line 66 of file template.h.
| #define VALUE value_t |
Definition at line 25 of file template.h.
| #define VALUE_CLONE value_clone |
Definition at line 28 of file template.h.
| #define VALUE_DEBUG value_debug |
Definition at line 30 of file template.h.
| #define VALUE_DELETE value_delete |
Definition at line 26 of file template.h.
Definition at line 281 of file template.h.
Definition at line 201 of file template.h.
| DC_STATIC_ASSERT | ( | sizeof(VALUE) | , |
| "VALUE must be a non-zero sized type" | ) |
| DC_TRAIT_ARENA | ( | SELF | ) |
|
static |
Definition at line 425 of file template.h.
Definition at line 340 of file template.h.
Definition at line 291 of file template.h.
|
static |
Definition at line 382 of file template.h.
Definition at line 283 of file template.h.
|
static |
Definition at line 371 of file template.h.
Definition at line 226 of file template.h.
Definition at line 326 of file template.h.
|
static |
Definition at line 411 of file template.h.
Definition at line 121 of file template.h.
|
static |
Definition at line 362 of file template.h.
Definition at line 276 of file template.h.
Definition at line 96 of file template.h.
Definition at line 300 of file template.h.
|
static |
Definition at line 388 of file template.h.
Definition at line 195 of file template.h.
Definition at line 259 of file template.h.
Definition at line 221 of file template.h.
Definition at line 183 of file template.h.
Definition at line 238 of file template.h.
Definition at line 165 of file template.h.
Definition at line 29 of file template.h.
|
static |
Definition at line 31 of file template.h.
|
static |
Definition at line 27 of file template.h.
Definition at line 177 of file template.h.
|
static |
Definition at line 236 of file template.h.