Qucs-core  0.0.19
Public Member Functions | Private Attributes | Friends
qucs::hash< type_t > Class Template Reference

#include <hash.h>

Inheritance diagram for qucs::hash< type_t >:
Inheritance graph
[legend]

Public Member Functions

 hash (int size=HASH_MIN_SIZE)
 ~hash ()
int count (void)
void clear (void)
void rehash (int)
type_t * put (char *, type_t *)
type_t * get (char *)
type_t * del (char *)

Private Attributes

int buckets
int fill
int keys
int(* equals )(char *, char *)
int(* code )(char *)
unsigned(* keylen )(char *)
hashbucket< type_t > ** table

Friends

class hashiterator< type_t >

Detailed Description

template<class type_t>
class qucs::hash< type_t >

Definition at line 117 of file hash.h.


Constructor & Destructor Documentation

template<class type_t >
qucs::hash< type_t >::hash ( int  size = HASH_MIN_SIZE)

Definition at line 74 of file hash.cpp.

template<class type_t >
qucs::hash< type_t >::~hash ( )

Definition at line 96 of file hash.cpp.


Member Function Documentation

template<class type_t >
void qucs::hash< type_t >::clear ( void  )

Definition at line 106 of file hash.cpp.

template<class type_t >
int qucs::hash< type_t >::count ( void  )

Definition at line 122 of file hash.cpp.

template<class type_t >
type_t * qucs::hash< type_t >::del ( char *  key)

Definition at line 237 of file hash.cpp.

template<class type_t >
type_t * qucs::hash< type_t >::get ( char *  key)

Definition at line 265 of file hash.cpp.

template<class type_t>
type_t * qucs::hash< type_t >::put ( char *  key,
type_t *  value 
)

Definition at line 192 of file hash.cpp.

template<class type_t >
void qucs::hash< type_t >::rehash ( int  type)

Definition at line 130 of file hash.cpp.


Friends And Related Function Documentation

template<class type_t>
friend class hashiterator< type_t > [friend]

Definition at line 119 of file hash.h.


Field Documentation

template<class type_t>
int qucs::hash< type_t >::buckets [private]

Definition at line 133 of file hash.h.

template<class type_t>
int(* qucs::hash< type_t >::code)(char *) [private]

Definition at line 137 of file hash.h.

template<class type_t>
int(* qucs::hash< type_t >::equals)(char *, char *) [private]

Definition at line 136 of file hash.h.

template<class type_t>
int qucs::hash< type_t >::fill [private]

Definition at line 134 of file hash.h.

template<class type_t>
unsigned(* qucs::hash< type_t >::keylen)(char *) [private]

Definition at line 138 of file hash.h.

template<class type_t>
int qucs::hash< type_t >::keys [private]

Definition at line 135 of file hash.h.

template<class type_t>
hashbucket<type_t>** qucs::hash< type_t >::table [private]

Definition at line 139 of file hash.h.


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