/
tsx_definitions.h
64 lines (48 loc) · 2.62 KB
/
tsx_definitions.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
55
56
57
58
59
60
61
62
63
64
q/*******************************************************************************
* data-structures/definitions.h
*
* Convenience file that defines some often used hash table variants.
*
* Part of Project growt - https://github.com/TooBiased/growt.git
*
* Copyright (C) 2015-2016 Tobias Maier <t.maier@kit.edu>
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
******************************************************************************/
#ifndef TSXDEFINITIONS_H
#define TSXDEFINITIONS_H
#include "data-structures/seqcircular.h"
#include "data-structures/simpleelement.h"
#include "data-structures/markableelement.h"
#include "data-structures/tsxcircular.h"
#include "data-structures/strategy/wstrat_user.h"
#include "data-structures/strategy/wstrat_pool.h"
#include "data-structures/strategy/estrat_async.h"
#include "data-structures/strategy/estrat_sync.h"
#include "data-structures/strategy/estrat_sync_alt.h"
#include "data-structures/growtable.h"
namespace growt {
template<class HashFct = std::hash<typename SimpleElement::Key>, class Allocator = std::allocator<char> >
using folklore = TSXCircular<SimpleElement, HashFct, Allocator>;
template<class E, class HashFct = std::hash<E>, class Allocator = std::allocator<E> >
using NoGrow = TSXCircular<E, HashFct, Allocator>;
template<class HashFct = std::hash<typename MarkableElement::Key>,
class Allocator = std::allocator<char> >
using uaxGrow = GrowTable<NoGrow<MarkableElement, HashFct, Allocator>, WStratUser, EStratAsync>;
template<class HashFct = std::hash<typename SimpleElement::Key>,
class Allocator = std::allocator<char> >
using usxGrow = GrowTable<NoGrow<MarkableElement, HashFct, Allocator>, WStratUser, EStratSync>;
template<class HashFct = std::hash<typename SimpleElement::Key>,
class Allocator = std::allocator<char> >
using usnxGrow = GrowTable<NoGrow<MarkableElement, HashFct, Allocator>, WStratUser, EStratSyncNUMA>;
template<class HashFct = std::hash<typename MarkableElement::Key>,
class Allocator = std::allocator<char> >
using paxGrow = GrowTable<NoGrow<MarkableElement, HashFct, Allocator>, WStratPool, EStratAsync>;
template<class HashFct = std::hash<typename SimpleElement::Key>,
class Allocator = std::allocator<char> >
using psxGrow = GrowTable<NoGrow<MarkableElement, HashFct, Allocator>, WStratPool, EStratSync>;
template<class HashFct = std::hash<typename SimpleElement::Key>,
class Allocator = std::allocator<char> >
using psnxGrow = GrowTable<NoGrow<MarkableElement, HashFct, Allocator>, WStratPool, EStratSyncNUMA>;
}
#endif // DEFINITIONS_H