-
Notifications
You must be signed in to change notification settings - Fork 0
/
boosted_citrus.h
50 lines (41 loc) · 1.1 KB
/
boosted_citrus.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
/*
* =====================================================================================
*
* Filename: boosted_citrus.h
*
* Description:
*
* Version: 1.0
* Created: 01/18/2015 04:40:04 PM
* Revision: none
* Compiler: gcc
*
* Author: Wenbin Xiao (github.com/xwb1989)
* Organization:
*
* =====================================================================================
*/
#ifndef BOOSTED_CITRUS_H
#define BOOSTED_CITRUS_H
#include "include/base_container.h"
#include "citrus.h"
class BoostedCitrus: public BaseContainer {
private:
citrus_node citrus_root;
public:
//Constructor
BoostedCitrus(int);
//Destructor
~BoostedCitrus();
//tx operations
bool_t tm_insert(long key, void* val);
bool_t tm_remove(long key);
bool_t tm_contains(long key);
void* tm_find(long key);
//standard operations
bool_t insert(long key, void* val);
bool_t remove(long key);
bool_t contains(long key);
void* find(long key);
};
#endif