#include <stdio.h>
#include <stdlib.h>
#include <math.h>
Go to the source code of this file.
Classes | |
struct | TTYPENAME |
Macros | |
#define | str(s) strr(s) |
#define | strr(s) #s |
#define | TFN(suffix) TRFN(TNAME, suffix) |
#define | THASH_FACTOR_CRITICAL 2 |
#define | THASH_FACTOR_REALLOC 4 |
#define | TRFN(root, suffix) TRRFN(root, suffix) |
#define | TRRFN(root, suffix) root ## _ ## suffix |
#define | TTYPENAME TFN(t) |
Typedefs | |
typedef struct TTYPENAME | TTYPENAME |
Functions | |
static void TFN() | clear (TTYPENAME *hash) |
static TTYPENAME *TFN() | copy (TTYPENAME *hash) |
static TTYPENAME *TFN() | create () |
static TTYPENAME *TFN() | create_capacity (int capacity) |
static void TFN() | destroy (TTYPENAME *hash) |
static int TFN() | get (TTYPENAME *hash, TKEYTYPE *key, TVALTYPE *value) |
static int TFN() | get_volatile (TTYPENAME *hash, TKEYTYPE *key, TVALTYPE **value) |
static void TFN() | iterator_init (TTYPENAME *hash, TFN(iterator_t)*iter) |
static int TFN() | iterator_next (TFN(iterator_t)*iter, TKEYTYPE *outkey, TVALTYPE *outval) |
static void TFN() | iterator_remove (TFN(iterator_t)*iter) |
static void TFN() | performance (TTYPENAME *hash) |
static int TFN() | put (TTYPENAME *hash, TKEYTYPE *key, TVALTYPE *value, TKEYTYPE *oldkey, TVALTYPE *oldvalue) |
static int TFN() | remove (TTYPENAME *hash, TKEYTYPE *key, TKEYTYPE *oldkey, TVALTYPE *oldvalue) |
static int TFN() | size (TTYPENAME *hash) |
struct | TFN (_entry) |
struct | TFN (iterator) TFN(iterator_t) |
#define str | ( | s | ) | strr(s) |
#define strr | ( | s | ) | #s |
Definition at line 79 of file thash_impl.h.
#define THASH_FACTOR_CRITICAL 2 |
Definition at line 71 of file thash_impl.h.
#define THASH_FACTOR_REALLOC 4 |
Definition at line 75 of file thash_impl.h.
#define TRFN | ( | root, | |
suffix | |||
) | TRRFN(root, suffix) |
Definition at line 78 of file thash_impl.h.
#define TRRFN | ( | root, | |
suffix | |||
) | root ## _ ## suffix |
Definition at line 77 of file thash_impl.h.
Definition at line 81 of file thash_impl.h.
Definition at line 92 of file thash_impl.h.
Definition at line 143 of file thash_impl.h.
Definition at line 322 of file thash_impl.h.
Definition at line 124 of file thash_impl.h.
Definition at line 102 of file thash_impl.h.
Definition at line 129 of file thash_impl.h.
Definition at line 209 of file thash_impl.h.
Definition at line 192 of file thash_impl.h.
Definition at line 343 of file thash_impl.h.
|
inlinestatic |
Definition at line 349 of file thash_impl.h.
Definition at line 369 of file thash_impl.h.
Definition at line 151 of file thash_impl.h.
|
inlinestatic |
Definition at line 229 of file thash_impl.h.
|
inlinestatic |
Definition at line 282 of file thash_impl.h.
Definition at line 138 of file thash_impl.h.
struct TFN | ( | _entry | ) |
Definition at line 83 of file thash_impl.h.
struct TFN | ( | iterator | ) |
Definition at line 337 of file thash_impl.h.