-
Notifications
You must be signed in to change notification settings - Fork 1
/
RunMetadata.h
54 lines (35 loc) · 1.12 KB
/
RunMetadata.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// Created by Stathis on 3/8/2019.
//
#include "BloomFilter.h"
#include "FencePointer.h"
#include <string>
using namespace std;
#ifndef RUNMETADATA_H
#define RUNMETADATA_H
class RunMetadata {
private:
BloomFilter *bloomfilter;
FencePointer *fencepointers;
string filename;
int size;
int numFencePointers;
public:
RunMetadata(BloomFilter *bloomftr, FencePointer *fenceptrs, string filename, int size, int numFencePtrs);
RunMetadata(BloomFilter *bloomftr, FencePointer *fenceptrs, string filename, int size);
RunMetadata(string filename);
// --------------------------------------------------------------
string getFilename();
BloomFilter *getBloomFilter();
FencePointer *getFencePointers();
int getNumFncPtrs();
int getSize();
void setFilename(string levelNumber);
// --------------------------------------------------------------
int pageInRange(int query);
int pageRangeOverlaps(int low, int high);
bool mightContain(int query);
// --------------------------------------------------------------
~RunMetadata();
};
#endif //RUNMETADATA_H