PPL Assignment
IRM2015006
|
#include <hash_search.h>
Public Member Functions | |
HashSearch (std::vector< Boy * > boylist) | |
void | findGirlfriends (std::vector< std::string > namelist, Logger *logger) override |
Private Member Functions | |
void | makeHashTable () |
Private Attributes | |
std::map< std::string, Boy * > | hashTable |
Additional Inherited Members | |
![]() | |
std::vector< Boy * > | boyslist |
Class to implement hash search, Inherits Search public
Definition at line 10 of file hash_search.h.
HashSearch::HashSearch | ( | std::vector< Boy * > | boylist | ) |
Definition at line 10 of file hash_search.cpp.
|
overridevirtual |
overriden method to find girlfriends, here, by hash search
Implements Search.
Definition at line 15 of file hash_search.cpp.
|
private |
Function which makes the hash table
Definition at line 3 of file hash_search.cpp.
|
private |
Hashtable for lookups
Definition at line 12 of file hash_search.h.