-
Notifications
You must be signed in to change notification settings - Fork 0
/
Hashtable.h
37 lines (36 loc) · 887 Bytes
/
Hashtable.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include <vector>
#include <string>
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
#include <map>
#include <iomanip>
#include <queue>
#include <utility>
#include "Sighting.h"
using namespace std;
class Hashtable {
//hashtable variables
Sighting** arrayOfSightings;
int numSightings;
int numBuckets;
public:
Hashtable();
//Hashtable(int setTableSize);
~Hashtable();
void printSighting(Sighting* sighting);
int hashFunction(int hashID);
void insertSighting(Sighting* aSighting);
void searchByShape(string shapeName);
void numSightingsInCity(string cityName, string stateName);
void mostPopularCities(int N);
void searchByKeyword(string keyword);
void printHashtable();
void findID(int _ID);
int getLoadFactor();
void reHash();
int getNumSightings();
};