18#ifndef __LIBSTD_CONSTHASHITERATOR_H
19#define __LIBSTD_CONSTHASHITERATOR_H
102 virtual const K &
key()
const
Iterate through a constant (read-only) HashTable.
virtual bool hasCurrent() const
Check if there is a current item.
virtual ~ConstHashIterator()
Destructor.
virtual const V & next()
Fetch the next item.
virtual const V & current() const
Get the current value (read-only).
virtual bool hasNext() const
Check if there is more to iterate.
virtual void reset()
Reset the iterator.
const HashTable< K, V > & m_hash
Points to the HashTable to iterate.
ListIterator< K > m_iter
Iterator of keys.
ConstHashIterator(const HashTable< K, V > &hash)
Class constructor.
List< K > m_keys
List of keys to iterate.
virtual const K & key() const
Get the current key.
virtual void operator++(int num)
Increment operator.
Abstracts an iteration process for a constant.
Efficient key -> value lookups.
virtual T & next()
Fetch the next item.
virtual bool hasCurrent() const
Check if there is a current item on the List.
virtual void reset()
Reset the iterator.
virtual const T & current() const
Get current item in the List.
virtual bool hasNext() const
Check if there is more on the List to iterate.
Simple linked list template class.
Size hash(const String &key, Size mod)
Compute a hash using the FNV algorithm.