|
Derive-C
|
#include "derive-c/core/panic.h"#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/container/vector/dynamic/template.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 | SLOT |
| struct | SELF |
| An allocator that prints to stdout when it allocates or frees memory. More... | |
| struct | ITER_CONST |
| struct | KV_PAIR_CONST |
| struct | ITER |
| struct | KV_PAIR |
Macros | |
| #define | KEY map_key_t |
| A simple swiss table implementation. See the abseil docs for swss table here. | |
| #define | KEY_HASH key_hash |
| #define | KEY_EQ DC_MEM_EQ |
| #define | KEY_DELETE DC_NO_DELETE |
| #define | KEY_CLONE DC_COPY_CLONE |
| #define | KEY_DEBUG DC_DEFAULT_DEBUG |
| #define | VALUE value_t |
| #define | VALUE_DELETE DC_NO_DELETE |
| #define | VALUE_CLONE DC_COPY_CLONE |
| #define | VALUE_DEBUG DC_DEFAULT_DEBUG |
| #define | SLOT NS(NAME, slot_t) |
| #define | SLOT_VECTOR NS(NAME, item_vectors) |
| #define | ITEM SLOT |
| #define | ITEM_DELETE PRIV(NS(SLOT, delete)) |
| #define | ITEM_CLONE PRIV(NS(SLOT, clone)) |
| #define | ITEM_DEBUG PRIV(NS(SLOT, debug)) |
| #define | INTERNAL_NAME SLOT_VECTOR |
| #define | BUCKET _dc_ankerl_bucket |
| #define | INVARIANT_CHECK(self) |
| #define | ITER_CONST NS(SELF, iter_const) |
| #define | KV_PAIR_CONST NS(ITER_CONST, item) |
| #define | ITER NS(SELF, iter) |
| #define | KV_PAIR NS(ITER, item) |
Typedefs | |
| typedef size_t | KEY |
| typedef KEY | key_t |
Functions | |
| static size_t | KEY_HASH (KEY const *key) |
| static DC_INTERNAL SLOT PRIV | clone (SLOT const *slot) |
| static DC_INTERNAL void PRIV | debug (SLOT const *slot, dc_debug_fmt fmt, FILE *stream) |
| static DC_INTERNAL void PRIV | delete (SLOT *slot) |
| static DC_INTERNAL SELF PRIV | new_with_exact_capacity (size_t capacity, ref alloc_ref) |
| static DC_PUBLIC SELF | new_with_capacity_for (size_t for_items, ref alloc_ref) |
| static DC_PUBLIC SELF | new (ref alloc_ref) |
| static DC_PUBLIC SELF | clone (SELF const *self) |
| static DC_INTERNAL VALUE *PRIV | try_insert_no_extend_capacity (SELF *self, KEY key, VALUE value) |
| static DC_INTERNAL void PRIV | rehash (SELF *self, size_t new_capacity) |
| static DC_PUBLIC void | extend_capacity_for (SELF *self, size_t expected_items) |
| static DC_PUBLIC VALUE * | try_insert (SELF *self, KEY key, VALUE value) |
| static DC_PUBLIC VALUE * | insert (SELF *self, KEY key, VALUE value) |
| static DC_INTERNAL bool PRIV | try_find (SELF const *self, KEY const *key, size_t *out_bucket_pos, size_t *out_dense_index) |
| static DC_PUBLIC VALUE const * | try_read (SELF const *self, KEY key) |
| static DC_PUBLIC VALUE const * | read (SELF const *self, KEY key) |
| static DC_PUBLIC VALUE * | try_write (SELF *self, KEY key) |
| static DC_PUBLIC VALUE * | write (SELF *self, KEY key) |
| static DC_PUBLIC bool | try_remove (SELF *self, KEY key, VALUE *destination) |
| static DC_PUBLIC VALUE | remove (SELF *self, KEY key) |
| static DC_PUBLIC void | delete_entry (SELF *self, KEY key) |
| static DC_PUBLIC size_t | size (SELF const *self) |
| static DC_PUBLIC void | delete (SELF *self) |
| static DC_PUBLIC bool | empty_item (KV_PAIR_CONST const *item) |
| static DC_PUBLIC KV_PAIR_CONST | 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 void | debug (SELF const *self, dc_debug_fmt fmt, FILE *stream) |
| static DC_PUBLIC bool | empty_item (KV_PAIR const *item) |
| static DC_PUBLIC KV_PAIR | next (ITER *iter) |
| static DC_PUBLIC bool | empty (ITER const *iter) |
| static DC_PUBLIC ITER | get_iter (SELF *self) |
| DC_TRAIT_MAP (SELF) | |
Variables | |
| DC_STATIC_CONSTANT size_t | max_capacity = max_index_exclusive |
| #define BUCKET _dc_ankerl_bucket |
Definition at line 127 of file template.h.
| #define INTERNAL_NAME SLOT_VECTOR |
Definition at line 118 of file template.h.
| #define INVARIANT_CHECK | ( | self | ) |
Definition at line 143 of file template.h.
Definition at line 114 of file template.h.
Definition at line 584 of file template.h.
Definition at line 521 of file template.h.
| #define KEY map_key_t |
A simple swiss table implementation. See the abseil docs for swss table here.
Definition at line 17 of file template.h.
| #define KEY_CLONE DC_COPY_CLONE |
Definition at line 39 of file template.h.
| #define KEY_DEBUG DC_DEFAULT_DEBUG |
Definition at line 43 of file template.h.
| #define KEY_DELETE DC_NO_DELETE |
Definition at line 35 of file template.h.
| #define KEY_EQ DC_MEM_EQ |
Definition at line 31 of file template.h.
| #define KEY_HASH key_hash |
Definition at line 26 of file template.h.
Definition at line 585 of file template.h.
| #define KV_PAIR_CONST NS(ITER_CONST, item) |
Definition at line 522 of file template.h.
Definition at line 75 of file template.h.
Definition at line 109 of file template.h.
| #define VALUE value_t |
Definition at line 53 of file template.h.
| #define VALUE_CLONE DC_COPY_CLONE |
Definition at line 61 of file template.h.
| #define VALUE_DEBUG DC_DEFAULT_DEBUG |
Definition at line 65 of file template.h.
| #define VALUE_DELETE DC_NO_DELETE |
Definition at line 57 of file template.h.
| typedef size_t KEY |
Definition at line 18 of file template.h.
Definition at line 68 of file template.h.
Definition at line 174 of file template.h.
|
static |
Definition at line 81 of file template.h.
| DC_TRAIT_MAP | ( | SELF | ) |
|
static |
Definition at line 563 of file template.h.
|
static |
Definition at line 88 of file template.h.
Definition at line 514 of file template.h.
|
static |
Definition at line 104 of file template.h.
Definition at line 504 of file template.h.
Definition at line 614 of file template.h.
|
static |
Definition at line 551 of file template.h.
Definition at line 596 of file template.h.
|
static |
Definition at line 533 of file template.h.
Definition at line 307 of file template.h.
Definition at line 619 of file template.h.
|
static |
Definition at line 556 of file template.h.
Definition at line 333 of file template.h.
|
static |
Definition at line 27 of file template.h.
Definition at line 170 of file template.h.
Definition at line 163 of file template.h.
|
static |
Definition at line 148 of file template.h.
Definition at line 600 of file template.h.
|
static |
Definition at line 537 of file template.h.
Definition at line 391 of file template.h.
|
static |
Definition at line 260 of file template.h.
Definition at line 497 of file template.h.
Definition at line 509 of file template.h.
|
static |
Definition at line 340 of file template.h.
Definition at line 318 of file template.h.
Definition at line 190 of file template.h.
Definition at line 380 of file template.h.
Definition at line 408 of file template.h.
Definition at line 397 of file template.h.
| DC_STATIC_CONSTANT size_t max_capacity = max_index_exclusive |
Definition at line 130 of file template.h.