|
Derive-C
|
#include "derive-c/container/map/ankerl/utils.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 | __attribute__ |
| 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_CLONE NS(SLOT, clone) |
| #define | ITEM_DEBUG NS(SLOT, debug) |
| #define | ITEM_CLONE NS(SLOT, clone) |
| #define | INTERNAL_NAME SLOT_VECTOR |
| #define | INDEX_KIND dc_ankerl_index_large |
| #define | BUCKET_SIZE 8 |
| #define | BUCKET NS(SELF, 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 int | KEY |
| typedef KEY | key_t |
Functions | |
| static size_t | KEY_HASH (KEY const *key) |
| static SLOT | clone (SLOT const *slot) |
| static void | debug (SLOT const *slot, dc_debug_fmt fmt, FILE *stream) |
| static void | delete (SLOT *slot) |
| DC_STATIC_ASSERT (sizeof(BUCKET)==BUCKET_SIZE) | |
| 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 bool PRIV | try_find (SELF const *self, KEY const *key, size_t *out_bucket_pos, size_t *out_dense_index) |
| 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 | 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) | |
Definition at line 132 of file template.h.
| #define BUCKET_SIZE 8 |
Definition at line 129 of file template.h.
| #define INDEX_KIND dc_ankerl_index_large |
Definition at line 128 of file template.h.
| #define INTERNAL_NAME SLOT_VECTOR |
Definition at line 118 of file template.h.
| #define INVARIANT_CHECK | ( | self | ) |
Definition at line 151 of file template.h.
| #define ITEM SLOT |
Definition at line 114 of file template.h.
Definition at line 115 of file template.h.
Definition at line 115 of file template.h.
Definition at line 116 of file template.h.
Definition at line 583 of file template.h.
Definition at line 525 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 584 of file template.h.
| #define KV_PAIR_CONST NS(ITER_CONST, item) |
Definition at line 526 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 int KEY |
Definition at line 18 of file template.h.
Definition at line 68 of file template.h.
Definition at line 181 of file template.h.
Definition at line 81 of file template.h.
| DC_STATIC_ASSERT | ( | sizeof(BUCKET) | = =BUCKET_SIZE | ) |
| DC_TRAIT_MAP | ( | SELF | ) |
|
static |
Definition at line 562 of file template.h.
|
static |
Definition at line 88 of file template.h.
|
static |
Definition at line 518 of file template.h.
|
static |
Definition at line 104 of file template.h.
Definition at line 508 of file template.h.
|
static |
Definition at line 595 of file template.h.
|
static |
Definition at line 537 of file template.h.
|
static |
Definition at line 317 of file template.h.
Definition at line 613 of file template.h.
|
static |
Definition at line 555 of file template.h.
Definition at line 339 of file template.h.
|
static |
Definition at line 177 of file template.h.
Definition at line 172 of file template.h.
Definition at line 157 of file template.h.
Definition at line 599 of file template.h.
|
static |
Definition at line 541 of file template.h.
Definition at line 396 of file template.h.
Definition at line 270 of file template.h.
Definition at line 502 of file template.h.
|
static |
Definition at line 513 of file template.h.
|
static |
Definition at line 345 of file template.h.
Definition at line 328 of file template.h.
Definition at line 198 of file template.h.
Definition at line 385 of file template.h.
Definition at line 413 of file template.h.
Definition at line 402 of file template.h.