-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathTest.h
More file actions
43 lines (31 loc) · 662 Bytes
/
Copy pathTest.h
File metadata and controls
43 lines (31 loc) · 662 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
//
// Created by 刘育氚 on 2019/5/27.
//
#ifndef BPTREE_TEST_H
#define BPTREE_TEST_H
#include <ctime>
#include <cstdarg>
#include <cstdio>
void testList();
void testBPTreeFunction();
void testBPTreeSpeed(int testSpeedCount);
void testBPTreeMemory();
void testBPTreeSerial(int serialCount);
template<class Function>
void runBlock(Function func, const char *msg);
class A {
public:
int a;
};
struct compareA {
int operator()(const A &x, const A &y) const {
if (x.a > y.a) {
return 1;
} else if (x.a == y.a) {
return 0;
} else {
return -1;
}
}
};
#endif //BPTREE_TEST_H