PPL Assignment
IRM2015006
HashSearch Class Reference

#include <hash_search.h>

Inheritance diagram for HashSearch:
Inheritance graph
Collaboration diagram for HashSearch:
Collaboration graph

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

Detailed Description

Class to implement hash search, Inherits Search public

Definition at line 10 of file hash_search.h.

Constructor & Destructor Documentation

HashSearch::HashSearch ( std::vector< Boy * >  boylist)

Definition at line 10 of file hash_search.cpp.

Member Function Documentation

void HashSearch::findGirlfriends ( std::vector< std::string >  namelist,
Logger logger 
)
overridevirtual

overriden method to find girlfriends, here, by hash search

Implements Search.

Definition at line 15 of file hash_search.cpp.

Here is the call graph for this function:

void HashSearch::makeHashTable ( )
private

Function which makes the hash table

Definition at line 3 of file hash_search.cpp.

Here is the caller graph for this function:

Member Data Documentation

std::map<std::string, Boy*> HashSearch::hashTable
private

Hashtable for lookups

Definition at line 12 of file hash_search.h.


The documentation for this class was generated from the following files: