|
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 *self) |
| static value_t | VALUE_CLONE (value_t const *self) |
| static void | VALUE_DEBUG (VALUE const *self, dc_debug_fmt fmt, FILE *stream) |
| DC_STATIC_ASSERT (sizeof(VALUE), "VALUE must be a non-zero sized type") | |
| static SELF | new_with_capacity_for (INDEX_TYPE items, ALLOC *alloc) |
| static INDEX | insert (SELF *self, VALUE value) |
| static VALUE * | try_write (SELF *self, INDEX index) |
| static VALUE * | write (SELF *self, INDEX index) |
| static VALUE const * | try_read (SELF const *self, INDEX index) |
| static VALUE const * | read (SELF const *self, INDEX index) |
| static SELF | clone (SELF const *self) |
| static INDEX_TYPE | size (SELF const *self) |
| static bool | full (SELF const *self) |
| static bool | try_remove (SELF *self, INDEX index, VALUE *destination) |
| static VALUE | remove (SELF *self, INDEX index) |
| static IV_PAIR | iv_empty () |
| static bool | empty_item (IV_PAIR const *item) |
| static bool | empty (ITER const *iter) |
| static IV_PAIR | next (ITER *iter) |
| static ITER | get_iter (SELF *self) |
| static void | delete (SELF *self) |
| static IV_PAIR_CONST | iv_const_empty () |
| static bool | empty_item (IV_PAIR_CONST const *item) |
| static bool | empty (ITER_CONST const *iter) |
| static IV_PAIR_CONST | next (ITER_CONST *iter) |
| static ITER_CONST | get_iter_const (SELF const *self) |
| static void | debug (SELF const *self, dc_debug_fmt fmt, FILE *stream) |
| DC_TRAIT_ARENA (SELF) | |
Variables | |
| static 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 282 of file template.h.
Definition at line 368 of file template.h.
Definition at line 271 of file template.h.
Definition at line 357 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 283 of file template.h.
Definition at line 195 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.
|
static |
Definition at line 342 of file template.h.
|
static |
Definition at line 293 of file template.h.
|
static |
Definition at line 382 of file template.h.
|
static |
Definition at line 285 of file template.h.
|
static |
Definition at line 373 of file template.h.
|
static |
Definition at line 229 of file template.h.
Definition at line 328 of file template.h.
|
static |
Definition at line 411 of file template.h.
Definition at line 119 of file template.h.
|
static |
Definition at line 364 of file template.h.
|
static |
Definition at line 278 of file template.h.
|
static |
Definition at line 96 of file template.h.
Definition at line 302 of file template.h.
|
static |
Definition at line 388 of file template.h.
Definition at line 189 of file template.h.
Definition at line 262 of file template.h.
|
static |
Definition at line 224 of file template.h.
Definition at line 177 of file template.h.
Definition at line 241 of file template.h.
Definition at line 159 of file template.h.
|
static |
|
static |
Definition at line 171 of file template.h.
|
static |
Definition at line 239 of file template.h.