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

#include <coHashIter.h>

Public Member Functions

 coHashIter ()
 Empty HashIter. More...
 
 coHashIter (coMultiHashBase< KEY, DATA > &table)
 Initialize to first Element of hash. More...
 
 coHashIter (coMultiHashBase< KEY, DATA > &table, unsigned long hash)
 Initialize to hash key. More...
 
void reset ()
 Initialize to first Element of hash. More...
 
 operator bool ()
 Existance: (iter) == true if actual element exists. More...
 
void operator++ ()
 Increment. More...
 
DATA & operator() ()
 Access: iter() accesses element. More...
 
KEY key ()
 Access: iter.key() accesses element key. More...
 
unsigned long hash ()
 Access: iter.hash() accesses hash value. More...
 

Private Attributes

coMultiHashBase< KEY, DATA > * d_hash
 
unsigned long d_index
 
unsigned long d_hashIndex
 

Friends

class coMultiHash< KEY, DATA >
 
class coHash< KEY, DATA >
 

Detailed Description

template<class KEY, class DATA>
class covise::coHashIter< KEY, DATA >

Class coHashIter: Iterator class for Hash tables defines sequential access to Hash tables

Constructor & Destructor Documentation

template<class KEY , class DATA >
INLINE covise::coHashIter< KEY, DATA >::coHashIter ( )

Empty HashIter.

template<class KEY , class DATA >
INLINE covise::coHashIter< KEY, DATA >::coHashIter ( coMultiHashBase< KEY, DATA > &  table)

Initialize to first Element of hash.

template<class KEY , class DATA >
INLINE covise::coHashIter< KEY, DATA >::coHashIter ( coMultiHashBase< KEY, DATA > &  table,
unsigned long  hash 
)

Initialize to hash key.

Member Function Documentation

template<class KEY , class DATA >
INLINE unsigned long covise::coHashIter< KEY, DATA >::hash ( )

Access: iter.hash() accesses hash value.

template<class KEY , class DATA >
INLINE KEY covise::coHashIter< KEY, DATA >::key ( )

Access: iter.key() accesses element key.

template<class KEY , class DATA >
INLINE covise::coHashIter< KEY, DATA >::operator bool ( )

Existance: (iter) == true if actual element exists.

template<class KEY , class DATA >
INLINE DATA & covise::coHashIter< KEY, DATA >::operator() ( )

Access: iter() accesses element.

template<class KEY , class DATA >
INLINE void covise::coHashIter< KEY, DATA >::operator++ ( )

Increment.

template<class KEY , class DATA >
INLINE void covise::coHashIter< KEY, DATA >::reset ( void  )

Initialize to first Element of hash.

Friends And Related Function Documentation

template<class KEY, class DATA>
friend class coHash< KEY, DATA >
friend
template<class KEY, class DATA>
friend class coMultiHash< KEY, DATA >
friend

Member Data Documentation

template<class KEY, class DATA>
coMultiHashBase<KEY, DATA>* covise::coHashIter< KEY, DATA >::d_hash
private
template<class KEY, class DATA>
unsigned long covise::coHashIter< KEY, DATA >::d_hashIndex
private
template<class KEY, class DATA>
unsigned long covise::coHashIter< KEY, DATA >::d_index
private

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