COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Private Member Functions | List of all members
covise::coStringMultiHash< DATA > Class Template Reference

#include <coStringMultiHash.h>

Inheritance diagram for covise::coStringMultiHash< DATA >:
Inheritance graph
[legend]
Collaboration diagram for covise::coStringMultiHash< DATA >:
Collaboration graph
[legend]

Public Member Functions

 coStringMultiHash (const DATA &nullelem)
 
 coStringMultiHash ()
 
- Public Member Functions inherited from covise::coMultiHash< const char *, DATA >
 coMultiHash ()
 Default constructor. More...
 
 coMultiHash (DATA nullelem)
 Default constructor with NULL element. More...
 
virtual ~coMultiHash ()
 Destructor. More...
 
int insert (const const char *&key, const DATA &inData)
 insert an entry More...
 
int remove (const coHashIter< const char *, DATA > &iter)
 remove an entry More...
 
coHashIter< const char *, DATA > operator[] (const const char *&key)
 get element More...
 
coHashIter< const char *, DATA > first ()
 get first to step through More...
 
void clear ()
 remove all elements More...
 
int getNumEntries () const
 get number of entries currently in hash More...
 
const DATA & find (const const char *&key) const
 get element (only use with preset NULL element!!!) More...
 
unsigned long getHash (const const char *&key) const
 get hash index, 0 if no element found More...
 

Private Member Functions

 coStringMultiHash (const coStringMultiHash &)
 
coStringMultiHashoperator= (const coStringMultiHash &x)
 
unsigned long hash1 (const char *const &key) const
 1st Hash function More...
 
unsigned long hash2 (const char *const &key) const
 2nd Hash function More...
 
bool equal (const char *const &key1, const char *const &key2) const
 Equal function. More...
 

Additional Inherited Members

- Protected Types inherited from covise::coMultiHashBase< const char *, DATA >
enum  
 
- Protected Member Functions inherited from covise::coMultiHashBase< const char *, DATA >
 coMultiHashBase ()
 constructor More...
 
 coMultiHashBase (DATA nullelem)
 constructor More...
 
const DATA & getNullElem () const
 get the NULL element More...
 
virtual ~coMultiHashBase ()
 destructor More...
 
int remove (unsigned long hashIndex)
 remove an entry by hashIndex More...
 
void removeAll ()
 remove an entry by hashIndex More...
 
unsigned long getHash (const const char *&key) const
 get hash index, 0 if no element found More...
 
DATA & operator[] (unsigned long hashIndex)
 access element by hash index: assert() correct index !! More...
 
const DATA & operator[] (unsigned long hashIndex) const
 access element by hash index: assert() correct index !! More...
 
virtual unsigned long nextHash (unsigned long hashIndex) const
 get next hashIndex to given hashIndex More...
 
int getNumEntries () const
 get number of entries currently in hash More...
 
- Protected Attributes inherited from covise::coMultiHashBase< const char *, DATA >
const char ** keys
 
unsigned char * entryFlags
 
unsigned int size
 size of the list More...
 
unsigned int prime
 the prime currently used as the length of the list More...
 

Constructor & Destructor Documentation

template<class DATA >
covise::coStringMultiHash< DATA >::coStringMultiHash ( const DATA &  nullelem)
inline
template<class DATA >
covise::coStringMultiHash< DATA >::coStringMultiHash ( )
inline
template<class DATA >
covise::coStringMultiHash< DATA >::coStringMultiHash ( const coStringMultiHash< DATA > &  )
private

Member Function Documentation

template<class DATA >
bool covise::coStringMultiHash< DATA >::equal ( const char *const &  key1,
const char *const &  key2 
) const
inlineprivatevirtual

Equal function.

Implements covise::coMultiHashBase< const char *, DATA >.

template<class DATA >
unsigned long covise::coStringMultiHash< DATA >::hash1 ( const char *const &  key) const
inlineprivatevirtual

1st Hash function

Implements covise::coMultiHashBase< const char *, DATA >.

template<class DATA >
unsigned long covise::coStringMultiHash< DATA >::hash2 ( const char *const &  key) const
inlineprivatevirtual

2nd Hash function

Implements covise::coMultiHashBase< const char *, DATA >.

template<class DATA >
coStringMultiHash& covise::coStringMultiHash< DATA >::operator= ( const coStringMultiHash< DATA > &  x)
private

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