PPL Assignment
IRM2015006
hash_search.h
Go to the documentation of this file.
1 #ifndef HASH_SEARCH_H
2 #define HASH_SEARCH_H
3 
4 #include "search.h"
5 #include <map>
6 
10 class HashSearch : public Search {
12  std::map <std::string, Boy*> hashTable;
14  void makeHashTable();
15 public:
16  HashSearch(std::vector<Boy*> boylist);
20  void findGirlfriends (std::vector<std::string> namelist, Logger *logger) override;
21 };
22 
23 
24 #endif /* HASH_SEARCH_H */
Definition: search.h:11
HashSearch(std::vector< Boy * > boylist)
Definition: hash_search.cpp:10
Definition: logger.h:8
void makeHashTable()
Definition: hash_search.cpp:3
void findGirlfriends(std::vector< std::string > namelist, Logger *logger) override
Definition: hash_search.cpp:15
std::map< std::string, Boy * > hashTable
Definition: hash_search.h:12