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