|
Derive-C
|
#include "derive-c/container/map/swiss/utils.h"#include "derive-c/core/math.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, ALLOC *alloc) |
| static SELF | new_with_capacity_for (size_t for_items, ALLOC *alloc) |
| static SELF | new (ALLOC *alloc) |
| static 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 void | extend_capacity_for (SELF *self, size_t expected_items) |
| static VALUE * | try_insert (SELF *self, KEY key, VALUE value) |
| static VALUE * | insert (SELF *self, KEY key, VALUE value) |
| static VALUE const * | try_read (SELF const *self, KEY key) |
| static VALUE const * | read (SELF const *self, KEY key) |
| static VALUE * | try_write (SELF *self, KEY key) |
| static VALUE * | write (SELF *self, KEY key) |
| static bool | try_remove (SELF *self, KEY key, VALUE *destination) |
| static VALUE | remove (SELF *self, KEY key) |
| static void | delete_entry (SELF *self, KEY key) |
| static size_t | size (SELF const *self) |
| static void PRIV | next_populated_index (SELF const *self, dc_swiss_optional_index *index) |
| static void | delete (SELF *self) |
| static bool | empty_item (KV_PAIR_CONST const *item) |
| static KV_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) |
| static bool | empty_item (KV_PAIR const *item) |
| static KV_PAIR | next (ITER *iter) |
| static ITER | get_iter (SELF *self) |
| DC_TRAIT_MAP (SELF) | |
| #define INVARIANT_CHECK | ( | self | ) |
Definition at line 93 of file template.h.
Definition at line 528 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 529 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 485 of file template.h.
|
static |
Definition at line 423 of file template.h.
Definition at line 405 of file template.h.
|
static |
Definition at line 542 of file template.h.
|
static |
Definition at line 449 of file template.h.
|
static |
Definition at line 261 of file template.h.
Definition at line 565 of file template.h.
|
static |
Definition at line 472 of file template.h.
Definition at line 288 of file template.h.
|
static |
Definition at line 137 of file template.h.
Definition at line 131 of file template.h.
Definition at line 101 of file template.h.
Definition at line 546 of file template.h.
|
static |
Definition at line 453 of file template.h.
|
static |
Definition at line 415 of file template.h.
Definition at line 330 of file template.h.
Definition at line 235 of file template.h.
Definition at line 399 of file template.h.
|
static |
Definition at line 410 of file template.h.
Definition at line 271 of file template.h.
Definition at line 172 of file template.h.
Definition at line 294 of file template.h.
Definition at line 347 of file template.h.
Definition at line 336 of file template.h.