Skip to content

Commit f73da59

Browse files
committed
rebased
1 parent 0a9135e commit f73da59

File tree

3 files changed

+24
-25
lines changed

3 files changed

+24
-25
lines changed

include/phtree/common/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ cc_library(
55
hdrs = [
66
"b_plus_tree_base.h",
77
"b_plus_tree_hash_map.h",
8-
"b_plus_tree_hash_multimap.h",
98
"b_plus_tree_map.h",
109
"b_plus_tree_multimap.h",
1110
"base_types.h",

include/phtree/v16/node.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
#include "entry.h"
2222
#include "phtree/common/b_plus_tree_hash_map.h"
23-
#include "phtree/common/b_plus_tree_hash_multimap.h"
2423
#include "phtree/common/b_plus_tree_multimap.h"
2524
#include "phtree/common/common.h"
2625
#include "phtree_v16.h"
@@ -69,12 +68,13 @@ template <dimension_t DIM, typename Entry>
6968
using EntryMap = typename std::conditional_t<
7069
DIM < 32, b_plus_tree_multimap<std::uint32_t, Entry>, b_plus_tree_multimap<std::uint64_t, Entry>>;
7170
#else
72-
using EntryMap = typename std::conditional<
73-
DIM <= 3,
74-
array_map<Entry, (hc_pos_t(1) << DIM)>,
75-
typename std::
76-
conditional<DIM <= 8, sparse_map<Entry>, b_plus_tree_map<Entry, (hc_pos_t(1) << DIM)>>::
77-
type>::type;
71+
using EntryMap = typename std::conditional_t<
72+
DIM <= 3,
73+
array_map<Entry, (uint64_t(1) << DIM)>,
74+
typename std::conditional_t<
75+
DIM <= 8,
76+
sparse_map<hc_pos_dim_t<DIM>, Entry>,
77+
b_plus_tree_map<std::uint64_t, Entry, (uint64_t(1) << DIM)>>>;
7878
#endif
7979

8080
template <dimension_t DIM, typename Entry>
@@ -103,19 +103,19 @@ using EntryIteratorC = decltype(EntryMap<DIM, Entry>().cbegin());
103103
*/
104104
template <dimension_t DIM, typename T, typename SCALAR>
105105
class Node {
106-
#ifdef FLEX
107-
static constexpr hc_pos_t MAX_SIZE = std::max(hc_pos_t(8), hc_pos_t(1) << DIM);
108-
#endif
109106
using KeyT = PhPoint<DIM, SCALAR>;
110107
using EntryT = Entry<DIM, T, SCALAR>;
111108
using hc_pos_t = hc_pos_64_t;
109+
#ifdef FLEX
110+
static constexpr hc_pos_t MAX_SIZE = std::max(hc_pos_t(8), hc_pos_t(1) << DIM);
111+
#endif
112112

113113
public:
114114
Node() : entries_{} {}
115115

116-
// Nodes should never be copied!
116+
// Nodes should (almost) never be copied!
117117
Node(const Node&) = delete;
118-
Node(Node&&) = delete;
118+
Node(Node&&) = default;
119119
Node& operator=(const Node&) = delete;
120120
Node& operator=(Node&&) = delete;
121121

test/common/BUILD

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,18 @@ cc_test(
6565
],
6666
)
6767

68-
cc_test(
69-
name = "b_plus_tree_hash_multi_map_test",
70-
timeout = "long",
71-
srcs = [
72-
"b_plus_tree_hash_multimap_test.cc",
73-
],
74-
linkstatic = True,
75-
deps = [
76-
"//:phtree",
77-
"@gtest//:gtest_main",
78-
],
79-
)
68+
#cc_test(
69+
# name = "b_plus_tree_hash_multi_map_test",
70+
# timeout = "long",
71+
# srcs = [
72+
# "b_plus_tree_hash_multimap_test.cc",
73+
# ],
74+
# linkstatic = True,
75+
# deps = [
76+
# "//:phtree",
77+
# "@gtest//:gtest_main",
78+
# ],
79+
#)
8080

8181
cc_test(
8282
name = "b_plus_tree_map_test",

0 commit comments

Comments
 (0)