|
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/container/map/swiss/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 | SELF |
| An allocator that prints to stdout when it allocates or frees memory. More... | |
| struct | ITER_CONST |
Macros | |
| #define | ITEM set_item_t |
| A swisstable based hashset. | |
| #define | ITEM_HASH item_hash |
| #define | ITEM_EQ DC_MEM_EQ |
| #define | ITEM_DELETE DC_NO_DELETE |
| #define | ITEM_CLONE DC_COPY_CLONE |
| #define | ITEM_DEBUG DC_DEFAULT_DEBUG |
| #define | MAP PRIV(NS(NAME, inner_map)) |
| #define | KEY ITEM |
| #define | KEY_HASH ITEM_HASH |
| #define | KEY_EQ ITEM_EQ |
| #define | KEY_DELETE ITEM_DELETE |
| #define | KEY_CLONE ITEM_CLONE |
| #define | KEY_DEBUG ITEM_DEBUG |
| #define | VALUE dc_unit |
| #define | VALUE_DELETE dc_unit_delete |
| #define | VALUE_CLONE dc_unit_clone |
| #define | VALUE_DEBUG dc_unit_debug |
| #define | INTERNAL_NAME MAP |
| #define | ITER_CONST NS(SELF, iter_const) |
Typedefs | |
| typedef size_t | ITEM |
| typedef ITEM const * | item |
Functions | |
| static size_t | ITEM_HASH (ITEM const *item) |
| 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_PUBLIC void | extend_capacity_for (SELF *self, size_t expected_items) |
| static DC_PUBLIC bool | try_add (SELF *self, ITEM item) |
| static DC_PUBLIC void | add (SELF *self, ITEM item) |
| static DC_PUBLIC bool | contains (SELF const *self, ITEM item) |
| static DC_PUBLIC bool | try_remove (SELF *self, ITEM item) |
| static DC_PUBLIC void | remove (SELF *self, ITEM item) |
| static DC_PUBLIC size_t | size (SELF const *self) |
| static DC_PUBLIC bool | empty_item (ITEM const *const *item) |
| static DC_PUBLIC ITEM 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 void | delete (SELF *self) |
| DC_TRAIT_SET (SELF) | |
Variables | |
| DC_STATIC_CONSTANT size_t | max_capacity = max_capacity |
| #define INTERNAL_NAME MAP |
Definition at line 60 of file template.h.
| #define ITEM set_item_t |
A swisstable based hashset.
Definition at line 15 of file template.h.
| #define ITEM_CLONE DC_COPY_CLONE |
Definition at line 37 of file template.h.
| #define ITEM_DEBUG DC_DEFAULT_DEBUG |
Definition at line 41 of file template.h.
| #define ITEM_DELETE DC_NO_DELETE |
Definition at line 33 of file template.h.
| #define ITEM_EQ DC_MEM_EQ |
Definition at line 29 of file template.h.
| #define ITEM_HASH item_hash |
Definition at line 24 of file template.h.
Definition at line 118 of file template.h.
Definition at line 50 of file template.h.
| #define KEY_CLONE ITEM_CLONE |
Definition at line 54 of file template.h.
| #define KEY_DEBUG ITEM_DEBUG |
Definition at line 55 of file template.h.
| #define KEY_DELETE ITEM_DELETE |
Definition at line 53 of file template.h.
| #define KEY_EQ ITEM_EQ |
Definition at line 52 of file template.h.
| #define KEY_HASH ITEM_HASH |
Definition at line 51 of file template.h.
Definition at line 46 of file template.h.
| #define VALUE dc_unit |
Definition at line 56 of file template.h.
| #define VALUE_CLONE dc_unit_clone |
Definition at line 58 of file template.h.
| #define VALUE_DEBUG dc_unit_debug |
Definition at line 59 of file template.h.
| #define VALUE_DELETE dc_unit_delete |
Definition at line 57 of file template.h.
| typedef size_t ITEM |
Definition at line 16 of file template.h.
Definition at line 124 of file template.h.
Definition at line 97 of file template.h.
Definition at line 83 of file template.h.
Definition at line 102 of file template.h.
| DC_TRAIT_SET | ( | SELF | ) |
|
static |
Definition at line 143 of file template.h.
Definition at line 157 of file template.h.
|
static |
Definition at line 132 of file template.h.
Definition at line 126 of file template.h.
Definition at line 89 of file template.h.
|
static |
Definition at line 137 of file template.h.
|
static |
Definition at line 25 of file template.h.
Definition at line 77 of file template.h.
Definition at line 71 of file template.h.
|
static |
Definition at line 128 of file template.h.
Definition at line 111 of file template.h.
Definition at line 116 of file template.h.
Definition at line 93 of file template.h.
Definition at line 106 of file template.h.
| DC_STATIC_CONSTANT size_t max_capacity = max_capacity |
Definition at line 65 of file template.h.