forked from theuni/tmi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtminode_detail.h
86 lines (68 loc) · 1.49 KB
/
tminode_detail.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef TMINODE_DETAIL_H
#define TMINODE_DETAIL_H
#include "tminode.h"
namespace tmi {
namespace detail {
template <int I>
void set_right(auto* lhs, auto* rhs)
{
lhs->template set_right<I>(rhs);
}
template <int I>
void set_left(auto* lhs,auto* rhs)
{
lhs->template set_left<I>(rhs);
}
template <int I>
auto* parent(auto* base)
{
return base->template parent<I>();
}
template <int I>
void set_parent(auto* lhs, auto* rhs)
{
lhs->template set_parent<I>(rhs);
}
template <int I>
auto color(auto* base)
{
return base->template color<I>();
}
template <int I>
void set_color(auto* base, auto color)
{
base->template set_color<I>(color);
}
template <int I>
auto* left(auto* base)
{
return base->template right<I>();
}
template <int I>
auto* right(auto* base)
{
return base->template right<I>();
}
template <int I>
auto* next_hash(auto* base)
{
return base->template next_hash<I>();
}
template <int I>
size_t hash(auto* base)
{
return base->template hash<I>();
}
template <int I>
void set_hash(auto* base, size_t hash)
{
base->template set_hash<I>(hash);
}
template <int I>
void set_next_hashptr(auto* lhs, auto* rhs)
{
lhs->template set_next_hashptr<I>(rhs);
}
} // namespace detail
} // namespace tmi
#endif // TMINODE_DETAIL_H