#include <sysc/utils/sc_hash.h>


Public Types | |
| typedef sc_strhash_iter< C > | iterator |
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 |
Friends | |
| class | sc_strhash_iter< C > |
Definition at line 353 of file sc_hash.h.
| typedef sc_strhash_iter<C> sc_core::sc_strhash< C >::iterator |
Reimplemented from sc_core::sc_phash_base.
| sc_core::sc_strhash< C >::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(*)(const void *) | hash_fn = default_str_hash_fn, |
|||
| int(*)(const void *, const void *) | cmpr_fn = sc_strhash_cmp | |||
| ) | [inline] |
| sc_core::sc_strhash< C >::~sc_strhash | ( | ) | [inline] |
| bool sc_core::sc_strhash< C >::contains | ( | const char * | k | ) | const [inline] |
| void sc_core::sc_strhash< C >::copy | ( | const sc_strhash< C > & | b | ) | [inline] |
Reimplemented from sc_core::sc_phash_base.
| void sc_core::sc_strhash< C >::copy | ( | const sc_strhash< C > * | b | ) | [inline] |
Reimplemented from sc_core::sc_phash_base.
| void sc_core::sc_strhash< C >::erase | ( | ) | [inline] |
Reimplemented from sc_core::sc_phash_base.
| int sc_core::sc_strhash< C >::insert | ( | char * | k | ) | [inline] |
| int sc_core::sc_strhash< C >::insert | ( | char * | k, | |
| C | c | |||
| ) | [inline] |
| int sc_core::sc_strhash< C >::insert_if_not_exists | ( | char * | k | ) | [inline] |
| int sc_core::sc_strhash< C >::insert_if_not_exists | ( | char * | k, | |
| C | c | |||
| ) | [inline] |
| int sc_core::sc_strhash< C >::lookup | ( | const char * | k, | |
| C * | pc | |||
| ) | const [inline] |
| C sc_core::sc_strhash< C >::operator[] | ( | const char * | k | ) | const [inline] |
| int sc_core::sc_strhash< C >::remove | ( | const char * | k, | |
| char ** | pk, | |||
| C * | pc | |||
| ) | [inline] |
| int sc_core::sc_strhash< C >::remove | ( | const char * | k | ) | [inline] |
| int sc_core::sc_strhash< C >::remove_by_contents | ( | bool(*)(const void *, void *) | predicate, | |
| void * | arg | |||
| ) | [inline] |
Reimplemented from sc_core::sc_phash_base.
| int sc_core::sc_strhash< C >::remove_by_contents | ( | C | c | ) | [inline] |
friend class sc_strhash_iter< C > [friend] |
1.6.1