|
Derive-C
|
#include "derive-c/container/map/swiss/utils.h"#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/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(SELF, slot_t) |
| #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) |
Functions | |
| static size_t | KEY_HASH (KEY const *key) |
| static 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 VALUE *PRIV | try_insert_no_extend_capacity (SELF *self, KEY key, VALUE value) |
| static 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_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 void PRIV | next_populated_index (SELF const *self, _dc_swiss_optional_index *index) |
| 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 = _dc_swiss_index_capacity |
| #define INVARIANT_CHECK | ( | self | ) |
Definition at line 94 of file template.h.
Definition at line 539 of file template.h.
Definition at line 435 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 18 of file template.h.
| #define KEY_CLONE DC_COPY_CLONE |
Definition at line 40 of file template.h.
| #define KEY_DEBUG DC_DEFAULT_DEBUG |
Definition at line 44 of file template.h.
| #define KEY_DELETE DC_NO_DELETE |
Definition at line 36 of file template.h.
| #define KEY_EQ DC_MEM_EQ |
Definition at line 32 of file template.h.
| #define KEY_HASH key_hash |
Definition at line 27 of file template.h.
Definition at line 540 of file template.h.
| #define KV_PAIR_CONST NS(ITER_CONST, item) |
Definition at line 436 of file template.h.
Definition at line 73 of file template.h.
| #define VALUE value_t |
Definition at line 54 of file template.h.
| #define VALUE_CLONE DC_COPY_CLONE |
Definition at line 62 of file template.h.
| #define VALUE_DEBUG DC_DEFAULT_DEBUG |
Definition at line 66 of file template.h.
| #define VALUE_DELETE DC_NO_DELETE |
Definition at line 58 of file template.h.
Definition at line 141 of file template.h.
| DC_TRAIT_MAP | ( | SELF | ) |
|
static |
Definition at line 491 of file template.h.
Definition at line 422 of file template.h.
Definition at line 403 of file template.h.
Definition at line 576 of file template.h.
|
static |
Definition at line 472 of file template.h.
Definition at line 553 of file template.h.
|
static |
Definition at line 449 of file template.h.
Definition at line 269 of file template.h.
Definition at line 582 of file template.h.
|
static |
Definition at line 478 of file template.h.
Definition at line 300 of file template.h.
|
static |
Definition at line 28 of file template.h.
Definition at line 137 of file template.h.
Definition at line 130 of file template.h.
Definition at line 101 of file template.h.
Definition at line 557 of file template.h.
|
static |
Definition at line 453 of file template.h.
|
static |
Definition at line 413 of file template.h.
Definition at line 340 of file template.h.
Definition at line 242 of file template.h.
Definition at line 396 of file template.h.
Definition at line 408 of file template.h.
Definition at line 279 of file template.h.
Definition at line 171 of file template.h.
Definition at line 307 of file template.h.
Definition at line 357 of file template.h.
Definition at line 346 of file template.h.
| DC_STATIC_CONSTANT size_t max_capacity = _dc_swiss_index_capacity |
Definition at line 92 of file template.h.