-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClassBucket.h
More file actions
43 lines (37 loc) · 714 Bytes
/
ClassBucket.h
File metadata and controls
43 lines (37 loc) · 714 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
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef BUCKET_H
#define BUCKET_H
#include <iostream>
#include "ClassAVLTree.h"
using namespace std;
class Pair
{
private:
string* pairId;
AVLTree* AVLTreePtr;
public:
Pair(string*);
~Pair();
string* getPairId();
AVLTree* getAVLTreePtr();
};
class Bucket
{
private:
int bucketSize;
int currentPairs;
Pair** pairsArray;
public:
Bucket(int);
~Bucket();
int getBucketSize();
int getCurrentPairs();
Pair** getPairsArray();
void insertPair(string*, Record*);
void printArray();
bool isFull();
//Query Funtions
void getOccurences();
void getCertainOccurences(string* date1, string* date2);
void getAllCurNumOfPatients();
};
#endif