Skip to content

Commit 9398bbc

Browse files
wip
1 parent 2e3f3e9 commit 9398bbc

File tree

3 files changed

+3
-31
lines changed

3 files changed

+3
-31
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ if(ENABLE_CONAN)
361361
KEEP_RPATHS
362362
NO_OUTPUT_DIRS
363363
OPTIONS boost:filesystem_version=3 # https://stackoverflow.com/questions/73392648/error-with-boost-filesystem-version-in-cmake
364-
# onetbb:shared=${TBB_SHARED}
364+
onetbb:shared=${TBB_SHARED}
365365
boost:without_stacktrace=True # Apple Silicon cross-compilation fails without it
366366
BUILD missing
367367
)

include/util/query_heap.hpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -31,36 +31,10 @@ template <typename NodeID, typename Key> class ArrayStorage
3131
std::vector<Key> positions;
3232
};
3333

34-
template <typename NodeID, typename Key> class MapStorage
35-
{
36-
public:
37-
explicit MapStorage(std::size_t) {}
38-
39-
Key &operator[](NodeID node) { return nodes[node]; }
40-
41-
void Clear() { nodes.clear(); }
42-
43-
Key peek_index(const NodeID node) const
44-
{
45-
const auto iter = nodes.find(node);
46-
if (nodes.end() != iter)
47-
{
48-
return iter->second;
49-
}
50-
return std::numeric_limits<Key>::max();
51-
}
52-
53-
private:
54-
std::map<NodeID, Key> nodes;
55-
};
56-
5734
template <typename NodeID, typename Key> class UnorderedMapStorage
5835
{
5936
public:
6037
explicit UnorderedMapStorage(std::size_t)
61-
{
62-
// nodes.rehash(1000);
63-
}
6438

6539
Key &operator[](const NodeID node) { return nodes[node]; }
6640

@@ -84,7 +58,6 @@ template <typename NodeID, typename Key> class UnorderedMapStorage
8458

8559
private:
8660
ankerl::unordered_dense::map<NodeID, Key> nodes;
87-
// std::unordered_map<NodeID, Key> nodes;
8861
};
8962

9063
template <typename NodeID,

unit_tests/util/query_heap.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ struct TestData
2222
using TestNodeID = NodeID;
2323
using TestKey = int;
2424
using TestWeight = int;
25-
using storage_types = boost::mpl::list<ArrayStorage<TestNodeID, TestKey>,
26-
MapStorage<TestNodeID, TestKey>,
27-
UnorderedMapStorage<TestNodeID, TestKey>>;
25+
using storage_types =
26+
boost::mpl::list<ArrayStorage<TestNodeID, TestKey>, UnorderedMapStorage<TestNodeID, TestKey>>;
2827

2928
template <unsigned NUM_ELEM> struct RandomDataFixture
3029
{

0 commit comments

Comments
 (0)