Tervel  1.0.0
A collection of wait-free containers and algorithms.
blank_api.h
Go to the documentation of this file.
1 /*
2 #The MIT License (MIT)
3 #
4 #Copyright (c) 2015 University of Central Florida's Computer Software Engineering
5 #Scalable & Secure Systems (CSE - S3) Lab
6 #
7 #Permission is hereby granted, free of charge, to any person obtaining a copy
8 #of this software and associated documentation files (the "Software"), to deal
9 #in the Software without restriction, including without limitation the rights
10 #to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 #copies of the Software, and to permit persons to whom the Software is
12 #furnished to do so, subject to the following conditions:
13 #
14 #The above copyright notice and this permission notice shall be included in
15 #all copies or substantial portions of the Software.
16 #
17 #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 #IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 #FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 #AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 #LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 #OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 #THE SOFTWARE.
24 #
25 */
26 
27 #ifndef BLANK_MAP_API_H
28 #define BLANK_MAP_API_H
29 
30 template<class Key, class Value>
31 class TestClass {
32  public:
33  TestClass(size_t num_threads, size_t capacity) {
34  }
35 
36  std::string toString() {
37  return "Blank Map";
38  }
39 
40  void attach_thread() {
41  }
42 
43  void detach_thread() {}
44 
45  bool find(Key key, Value &value) {
46  }
47 
48  bool insert(Key key, Value value) {
49  }
50 
51  bool update(Key key, Value &value_expected, Value value_new) {
52  }
53 
54  bool remove(Key key) {
55  }
56 
57  size_t size() {
58  return container->size();
59  }
60 
61  private:
62 };
63 
64 #endif //
void detach_thread()
Definition: blank_api.h:43
bool insert(Key key, Value value)
Definition: blank_api.h:48
map_t * container
Definition: cliff_api.h:102
void attach_thread()
Definition: blank_api.h:40
bool update(Key key, Value &value_expected, Value value_new)
Definition: blank_api.h:51
uint64_t Value
Definition: testObject.h:59
size_t size()
Definition: blank_api.h:57
bool find(Key key, Value &value)
Definition: blank_api.h:45
Definition: blank_api.h:31
TestClass(size_t num_threads, size_t capacity)
Definition: blank_api.h:33
std::string toString()
Definition: blank_api.h:36