-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindexManager.h
More file actions
29 lines (26 loc) · 926 Bytes
/
Copy pathindexManager.h
File metadata and controls
29 lines (26 loc) · 926 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
#ifndef INDEXMANAGER_H
#define INDEXMANAGER_H
#include "bTree.h"
class IndexManager{
private:
std::vector<bTree> bTreeBuffer;
int bufferMax;
buffer* bfm;
indexType type;
int charLength;
bTree& findTree(string indexName);
public:
IndexManager(buffer& bm);
IndexManager(buffer& bm, int max);
void setIndex(indexType it, int length);
void setBufferSize(int max);
std::vector<unsigned int> find(string indexName,Index ind);
void insert(string indexName,Index ind);
void del(string indexName,Index ind);
void create(string indexName,indexType it,int length);
void drop(string indexName);
std::vector<unsigned int> findLess(string indexName,Index ind,bool equal);
std::vector<unsigned int> findGreater(string indexName,Index ind,bool equal);
void print(string name);
};
#endif