SystemC
2.3.2
Accellera SystemC proof-of-concept library
|
#include <sysc/utils/sc_hash.h>
Public Types | |
typedef sc_strhash_iter< C > | iterator |
typedef unsigned(* | hash_fn_t) (const void *) |
typedef int(* | cmpr_fn_t) (const void *, const void *) |
Public Member Functions | |
sc_strhash (C def=(C) 0, int size=PHASH_DEFAULT_INIT_TABLE_SIZE, int density=PHASH_DEFAULT_MAX_DENSITY, double grow=PHASH_DEFAULT_GROW_FACTOR, bool reorder=PHASH_DEFAULT_REORDER_FLAG, unsigned(*hash_fn)(const void *)=default_str_hash_fn, int(*cmpr_fn)(const void *, const void *)=sc_strhash_cmp) | |
~sc_strhash () | |
void | erase () |
void | copy (const sc_strhash< C > *b) |
void | copy (const sc_strhash< C > &b) |
int | insert (char *k, C c) |
int | insert (char *k) |
int | insert_if_not_exists (char *k, C c) |
int | insert_if_not_exists (char *k) |
int | remove (const char *k) |
int | remove (const char *k, char **pk, C *pc) |
int | remove_by_contents (C c) |
int | remove_by_contents (bool(*predicate)(const void *, void *), void *arg) |
int | lookup (const char *k, C *pc) const |
bool | contains (const char *k) const |
C | operator[] (const char *k) const |
void | set_cmpr_fn (cmpr_fn_t) |
void | set_hash_fn (hash_fn_t) |
bool | empty () const |
unsigned | count () const |
void | erase (void(*kfree)(void *)) |
void | copy (const sc_phash_base *) |
void | copy (const sc_phash_base &b) |
void | copy (const sc_phash_base &b, void *(*kdup)(const void *), void(*kfree)(void *)) |
int | insert (void *k, void *c) |
int | insert (void *k) |
int | insert (void *k, void *c, void *(*kdup)(const void *)) |
int | insert_if_not_exists (void *k, void *c) |
int | insert_if_not_exists (void *k) |
int | insert_if_not_exists (void *k, void *c, void *(*kdup)(const void *)) |
int | remove (const void *k) |
int | remove (const void *k, void **pk, void **pc) |
int | remove (const void *k, void(*kfree)(void *)) |
int | remove_by_contents (const void *c) |
int | remove_by_contents (const void *c, void(*kfree)(void *)) |
int | remove_by_contents (bool(*predicate)(const void *, void *), void *arg, void(*kfree)(void *)) |
int | lookup (const void *k, void **pc) const |
bool | contains (const void *k) const |
void * | operator[] (const void *key) const |
Protected Member Functions | |
void | rehash () |
unsigned | do_hash (const void *key) const |
sc_phash_elem * | add_direct (void *key, void *contents, unsigned hash_val) |
sc_phash_elem * | find_entry_c (unsigned hv, const void *k, sc_phash_elem ***plast) |
sc_phash_elem * | find_entry_q (unsigned hv, const void *k, sc_phash_elem ***plast) |
sc_phash_elem * | find_entry (unsigned hv, const void *k, sc_phash_elem ***plast=0) const |
Protected Attributes | |
void * | default_value |
int | num_bins |
int | num_entries |
int | max_density |
int | reorder_flag |
double | grow_factor |
sc_phash_elem ** | bins |
hash_fn_t | hash |
cmpr_fn_t | cmpr |
Friends | |
class | sc_strhash_iter< C > |
|
inherited |
|
inherited |
typedef sc_strhash_iter<C> sc_core::sc_strhash< C >::iterator |
|
inline |
|
inline |
|
protectedinherited |
|
inlineinherited |
|
inline |
|
inherited |
|
inlineinherited |
|
inherited |
|
inline |
|
inline |
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineinherited |
|
inherited |
|
inline |
|
inlineprotectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inline |
|
inline |
|
inherited |
|
inlineinherited |
|
inherited |
|
inline |
|
inline |
|
inherited |
|
inline |
|
inherited |
|
inline |
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
|
inline |
|
inline |
|
inherited |
|
inherited |
|
inherited |
|
inline |
|
inline |
|
inherited |
|
inherited |
|
friend |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |