-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathu_map.h
More file actions
31 lines (29 loc) · 744 Bytes
/
u_map.h
File metadata and controls
31 lines (29 loc) · 744 Bytes
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
#include <utility>
#include <vector>
#include <string>
#include <list>
#include <fstream>
#include <sstream>
#include <iostream>
#include <math.h>
#include <iterator>
using namespace std;
class u_map
{
list<pair<pair<string, string>, vector<double>>> *table; // Array of lists
float max_load;
int num_elements;
int size_table;
public:
u_map();
~u_map();
int hash(string, string);
void insert(pair<string, string>, vector<double>);
void rehash();
void addData();
vector<pair<int, string>> avgTemp(int, int);
vector<pair<int, string>> minTemp(int);
vector<pair<int, string>> maxTemp(int);
vector<pair<int, string>> windSpd(int, int);
vector<pair<int, string>> precip(int, int);
};