sc_core::sc_pdhash< K, C > Class Template Reference

#include <sysc/utils/sc_hash.h>

Inheritance diagram for sc_core::sc_pdhash< K, C >:
Inheritance graph
[legend]
Collaboration diagram for sc_core::sc_pdhash< K, C >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef sc_pdhash_iter< K, C > iterator

Public Member Functions

 sc_pdhash (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, hash_fn_t hash_fn=(hash_fn_t) 0, cmpr_fn_t cmpr_fn=(cmpr_fn_t) 0, void *(*kdup_fn)(const void *)=0, void(*kfree_fn)(void *)=0)
 ~sc_pdhash ()
void erase ()
void copy (const sc_pdhash< K, C > &b)
int insert (K k, C c)
int insert (K k)
int insert_if_not_exists (K k, C c)
int insert_if_not_exists (K k)
int remove (K k)
int remove (K k, K *pk, C *pc)
int remove_by_contents (C c)
int remove_by_contents (bool(*predicate)(const void *, void *), void *arg)
int lookup (K k, C *pc) const
bool contains (K k) const
operator[] (K k) const

Friends

class sc_pdhash_iter< K, C >

Detailed Description

template<class K, class C>
class sc_core::sc_pdhash< K, C >

Definition at line 257 of file sc_hash.h.


Member Typedef Documentation

template<class K, class C>
typedef sc_pdhash_iter<K,C> sc_core::sc_pdhash< K, C >::iterator

Reimplemented from sc_core::sc_phash_base.

Definition at line 265 of file sc_hash.h.


Constructor & Destructor Documentation

template<class K, class C>
sc_core::sc_pdhash< K, C >::sc_pdhash ( 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,
hash_fn_t  hash_fn = (hash_fn_t) 0,
cmpr_fn_t  cmpr_fn = (cmpr_fn_t) 0,
void *(*)(const void *)  kdup_fn = 0,
void(*)(void *)  kfree_fn = 0 
) [inline]

Definition at line 266 of file sc_hash.h.

template<class K, class C>
sc_core::sc_pdhash< K, C >::~sc_pdhash (  )  [inline]

Definition at line 280 of file sc_hash.h.


Member Function Documentation

template<class K, class C>
bool sc_core::sc_pdhash< K, C >::contains ( k  )  const [inline]

Definition at line 316 of file sc_hash.h.

template<class K, class C>
void sc_core::sc_pdhash< K, C >::copy ( const sc_pdhash< K, C > &  b  )  [inline]

Reimplemented from sc_core::sc_phash_base.

Definition at line 288 of file sc_hash.h.

template<class K, class C>
void sc_core::sc_pdhash< K, C >::erase (  )  [inline]

Reimplemented from sc_core::sc_phash_base.

Definition at line 284 of file sc_hash.h.

template<class K, class C>
int sc_core::sc_pdhash< K, C >::insert ( k  )  [inline]

Definition at line 290 of file sc_hash.h.

template<class K, class C>
int sc_core::sc_pdhash< K, C >::insert ( k,
c 
) [inline]

Definition at line 289 of file sc_hash.h.

template<class K, class C>
int sc_core::sc_pdhash< K, C >::insert_if_not_exists ( k  )  [inline]

Definition at line 295 of file sc_hash.h.

template<class K, class C>
int sc_core::sc_pdhash< K, C >::insert_if_not_exists ( k,
c 
) [inline]

Definition at line 291 of file sc_hash.h.

template<class K, class C>
int sc_core::sc_pdhash< K, C >::lookup ( k,
C *  pc 
) const [inline]

Definition at line 312 of file sc_hash.h.

template<class K, class C>
C sc_core::sc_pdhash< K, C >::operator[] ( k  )  const [inline]

Definition at line 320 of file sc_hash.h.

template<class K, class C>
int sc_core::sc_pdhash< K, C >::remove ( k,
K *  pk,
C *  pc 
) [inline]

Definition at line 300 of file sc_hash.h.

template<class K, class C>
int sc_core::sc_pdhash< K, C >::remove ( k  )  [inline]

Definition at line 299 of file sc_hash.h.

template<class K, class C>
int sc_core::sc_pdhash< K, C >::remove_by_contents ( bool(*)(const void *, void *)  predicate,
void *  arg 
) [inline]

Reimplemented from sc_core::sc_phash_base.

Definition at line 308 of file sc_hash.h.

template<class K, class C>
int sc_core::sc_pdhash< K, C >::remove_by_contents ( c  )  [inline]

Definition at line 304 of file sc_hash.h.


Friends And Related Function Documentation

template<class K, class C>
friend class sc_pdhash_iter< K, C > [friend]

Definition at line 258 of file sc_hash.h.


The documentation for this class was generated from the following file:

Generated on 31 Jul 2017 for SystemC by  doxygen 1.6.1