#ifndef HASH_TABLE_ENUMERATOR #define HASH_TABLE_ENUMERATOR #include "Enumerator.h" #include "Exceptions.h" #include "HashTable.h" template class HashTableEnumerator : public Enumerator { private: unsigned long bucket = 0; OULinkedListEnumerator* chainEnumerator = NULL; HashTable* hashTable; public: HashTableEnumerator(HashTable* hashTable); virtual ~HashTableEnumerator(); bool hasNext() const; T next(); // throws ExceptionEnumerationBeyondEnd if no next item is available T peek() const; // throws ExceptionEnumerationBeyondEnd if no next item is available }; // Add your implementation below this line. #endif // !HASH_TABLE_ENUMERATOR