Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Hash_iterator< Key, Value > Class Template Reference

A Hash_iterator allows iterating over the elements of a Hash_table. More...

#include <hash.h>

Collaboration diagram for Hash_iterator< Key, Value >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Hash_iteratoroperator++ ()
Hash_iteratoroperator-- ()
Hash_iteratoroperator++ (int)
Hash_iteratoroperator-- (int)
Hash_node< Key, Value > & operator * () const
Hash_node< Key, Value > * operator-> () const
bool operator== (const Hash_iterator &iterator) const
bool operator!= (const Hash_iterator &iterator) const

Public Attributes

Hash_table< Key, Value > * hash_table
unsigned bucket_index
List_iterator< Hash_node<
Key, Value > > 
position

Detailed Description

template<class Key, class Value>
class Hash_iterator< Key, Value >

A Hash_iterator allows iterating over the elements of a Hash_table.


Member Function Documentation

template<class Key, class Value>
Hash_node< Key, Value > & Hash_iterator< Key, Value >::operator *  )  const [inline]
 

template<class Key, class Value>
bool Hash_iterator< Key, Value >::operator!= const Hash_iterator< Key, Value > &  iterator  )  const [inline]
 

template<class Key, class Value>
Hash_iterator< Key, Value > & Hash_iterator< Key, Value >::operator++ int   )  [inline]
 

template<class Key, class Value>
Hash_iterator< Key, Value > & Hash_iterator< Key, Value >::operator++  )  [inline]
 

template<class Key, class Value>
Hash_iterator< Key, Value > & Hash_iterator< Key, Value >::operator-- int   )  [inline]
 

template<class Key, class Value>
Hash_iterator< Key, Value > & Hash_iterator< Key, Value >::operator--  )  [inline]
 

template<class Key, class Value>
Hash_node< Key, Value > * Hash_iterator< Key, Value >::operator->  )  const [inline]
 

template<class Key, class Value>
bool Hash_iterator< Key, Value >::operator== const Hash_iterator< Key, Value > &  iterator  )  const [inline]
 


Member Data Documentation

template<class Key, class Value>
unsigned Hash_iterator< Key, Value >::bucket_index
 

index of the current bucket

template<class Key, class Value>
Hash_table<Key, Value>* Hash_iterator< Key, Value >::hash_table
 

hash table to iterate over

template<class Key, class Value>
List_iterator< Hash_node<Key, Value> > Hash_iterator< Key, Value >::position
 

list iterator in current bucket


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

Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman