Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

sc_strhash< C > Class Template Reference

#include <sc_hash.h>

Inheritance diagram for sc_strhash< C >:

Inheritance graph
[legend]
Collaboration diagram for sc_strhash< C >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef sc_strhash_iter< C > iterator

Public Methods

 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
operator[] (const char *k) const

Friends

class sc_strhash_iter< C >

template<class C>
class sc_strhash< C >


Member Typedef Documentation

template<class C>
typedef sc_strhash_iter<C> sc_strhash< C >::iterator
 

Reimplemented from sc_phash_base.

Definition at line 363 of file sc_hash.h.


Constructor & Destructor Documentation

template<class C>
sc_strhash< C >::sc_strhash   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
[inline]
 

Definition at line 365 of file sc_hash.h.

template<class C>
sc_strhash< C >::~sc_strhash   [inline]
 

Definition at line 376 of file sc_hash.h.


Member Function Documentation

template<class C>
bool sc_strhash< C >::contains const char *    k const [inline]
 

Definition at line 412 of file sc_hash.h.

template<class C>
void sc_strhash< C >::copy const sc_strhash< C > &    b [inline]
 

Definition at line 383 of file sc_hash.h.

template<class C>
void sc_strhash< C >::copy const sc_strhash< C > *    b [inline]
 

Definition at line 382 of file sc_hash.h.

template<class C>
void sc_strhash< C >::erase   [inline]
 

Reimplemented from sc_phash_base.

Definition at line 381 of file sc_hash.h.

Referenced by sc_strhash< int * >::~sc_strhash().

template<class C>
int sc_strhash< C >::insert char *    k [inline]
 

Definition at line 386 of file sc_hash.h.

template<class C>
int sc_strhash< C >::insert char *    k,
  c
[inline]
 

Definition at line 385 of file sc_hash.h.

template<class C>
int sc_strhash< C >::insert_if_not_exists char *    k [inline]
 

Definition at line 391 of file sc_hash.h.

template<class C>
int sc_strhash< C >::insert_if_not_exists char *    k,
  c
[inline]
 

Definition at line 387 of file sc_hash.h.

template<class C>
int sc_strhash< C >::lookup const char *    k,
C *    pc
const [inline]
 

Definition at line 408 of file sc_hash.h.

template<class C>
C sc_strhash< C >::operator[] const char *    k const [inline]
 

Definition at line 416 of file sc_hash.h.

template<class C>
int sc_strhash< C >::remove const char *    k,
char **    pk,
C *    pc
[inline]
 

Definition at line 396 of file sc_hash.h.

template<class C>
int sc_strhash< C >::remove const char *    k [inline]
 

Definition at line 395 of file sc_hash.h.

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

Reimplemented from sc_phash_base.

Definition at line 404 of file sc_hash.h.

template<class C>
int sc_strhash< C >::remove_by_contents   c [inline]
 

Definition at line 400 of file sc_hash.h.


Friends And Related Function Documentation

template<class C>
friend class sc_strhash_iter< C > [friend]
 

Definition at line 360 of file sc_hash.h.


The documentation for this class was generated from the following file:
Generated on Fri Jan 14 08:32:13 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18