File tree Expand file tree Collapse file tree 7 files changed +21
-34
lines changed Expand file tree Collapse file tree 7 files changed +21
-34
lines changed Original file line number Diff line number Diff line change 6
6
#include " util/typedefs.hpp"
7
7
8
8
#include < boost/range/adaptor/filtered.hpp>
9
- #include < boost/unordered_map.hpp>
10
9
10
+ #include < unordered_map>
11
11
#include < utility>
12
12
#include < vector>
13
13
Original file line number Diff line number Diff line change 2
2
#define OSRM_EXTRACTOR_RESTRICTION_GRAPH_HPP_
3
3
4
4
#include < boost/assert.hpp>
5
- #include < boost/unordered_map.hpp>
6
5
7
6
#include " util/node_based_graph.hpp"
7
+ #include " util/std_hash.hpp"
8
8
#include " util/typedefs.hpp"
9
9
10
+ #include < unordered_map>
11
+
10
12
namespace osrm
11
13
{
12
14
namespace extractor
@@ -112,10 +114,10 @@ struct RestrictionGraph
112
114
RestrictionRange GetRestrictions (RestrictionID id) const ;
113
115
114
116
// A compressed node-based edge can only have one start node in the restriction graph.
115
- boost ::unordered_map<EdgeKey, RestrictionID> start_edge_to_node{};
117
+ std ::unordered_map<EdgeKey, RestrictionID> start_edge_to_node{};
116
118
// A compressed node-based edge can have multiple via nodes in the restriction graph
117
119
// (as the compressed edge can appear in paths with different prefixes).
118
- boost ::unordered_multimap<EdgeKey, RestrictionID> via_edge_to_node{};
120
+ std ::unordered_multimap<EdgeKey, RestrictionID> via_edge_to_node{};
119
121
std::vector<RestrictionNode> nodes;
120
122
// TODO: Investigate reusing DynamicGraph. Currently it requires specific attributes
121
123
// (e.g. reversed, weight) that would not make sense for restrictions.
Original file line number Diff line number Diff line change 2
2
#define OSRM_EXTRACTOR_TRAFFIC_SIGNALS_HPP
3
3
4
4
#include " util/typedefs.hpp"
5
- #include < unordered_set>
6
5
7
- #include < boost/unordered_set.hpp>
6
+ #include < boost/functional/hash.hpp>
7
+ #include < unordered_set>
8
8
9
9
namespace osrm
10
10
{
Original file line number Diff line number Diff line change 3
3
4
4
#include " util/typedefs.hpp"
5
5
6
- #include < boost/ unordered_map.hpp >
6
+ #include < unordered_map>
7
7
#include < vector>
8
8
9
9
namespace osrm
@@ -43,9 +43,9 @@ class TurnPathCompressor
43
43
// via nodes are the same.
44
44
// Similarly, we do not compress the instruction via node in a maneuver override, as we need
45
45
// this to identify the location of the maneuver during routing path-processing.
46
- boost ::unordered_multimap<NodeID, TurnPath *> starts;
47
- boost ::unordered_multimap<NodeID, TurnPath *> vias;
48
- boost ::unordered_multimap<NodeID, TurnPath *> ends;
46
+ std ::unordered_multimap<NodeID, TurnPath *> starts;
47
+ std ::unordered_multimap<NodeID, TurnPath *> vias;
48
+ std ::unordered_multimap<NodeID, TurnPath *> ends;
49
49
};
50
50
51
51
} // namespace extractor
Original file line number Diff line number Diff line change 1
1
#ifndef OSRM_EXTRACTOR_WAY_RESTRICTION_MAP_HPP_
2
2
#define OSRM_EXTRACTOR_WAY_RESTRICTION_MAP_HPP_
3
3
4
- #include < utility>
5
- #include < vector>
6
-
7
- // to access the turn restrictions
8
- #include < boost/unordered_map.hpp>
9
-
10
4
#include " extractor/restriction.hpp"
11
5
#include " extractor/restriction_graph.hpp"
12
6
#include " util/integer_range.hpp"
13
7
#include " util/typedefs.hpp"
14
8
9
+ // to access the turn restrictions
10
+ #include < unordered_map>
11
+ #include < utility>
12
+ #include < vector>
13
+
15
14
namespace osrm
16
15
{
17
16
namespace extractor
Original file line number Diff line number Diff line change 3
3
#include " engine/datafacade/datafacade_base.hpp"
4
4
5
5
#include < boost/assert.hpp>
6
- #include < boost/unordered_set.hpp>
7
6
8
7
#include < algorithm>
9
8
#include < iterator>
10
9
#include < tuple>
10
+ #include < unordered_set>
11
11
12
12
namespace osrm
13
13
{
@@ -106,8 +106,8 @@ bool Hint::IsValid(const util::Coordinate new_input_coordinates,
106
106
107
107
// Check hints do not contain duplicate segment pairs
108
108
// We can't allow duplicates as search heaps do not support it.
109
- boost ::unordered_set<NodeID> forward_segments;
110
- boost ::unordered_set<NodeID> reverse_segments;
109
+ std ::unordered_set<NodeID> forward_segments;
110
+ std ::unordered_set<NodeID> reverse_segments;
111
111
for (const auto &seg_hint : segment_hints)
112
112
{
113
113
const auto forward_res = forward_segments.insert (seg_hint.phantom .forward_segment_id .id );
Original file line number Diff line number Diff line change 34
34
#include < tbb/parallel_for.h>
35
35
#include < tbb/parallel_pipeline.h>
36
36
37
- namespace std
38
- {
39
- template <> struct hash <std::pair<NodeID, NodeID>>
40
- {
41
- std::size_t operator ()(const std::pair<NodeID, NodeID> &mk) const noexcept
42
- {
43
- std::size_t seed = 0 ;
44
- boost::hash_combine (seed, mk.first );
45
- boost::hash_combine (seed, mk.second );
46
- return seed;
47
- }
48
- };
49
- } // namespace std
50
-
51
37
namespace osrm
52
38
{
53
39
namespace extractor
@@ -1283,7 +1269,7 @@ void EdgeBasedGraphFactory::GenerateEdgeExpandedEdges(
1283
1269
std::vector<ConditionalTurnPenalty>
1284
1270
EdgeBasedGraphFactory::IndexConditionals (std::vector<Conditional> &&conditionals) const
1285
1271
{
1286
- boost ::unordered_multimap<std::pair<NodeID, NodeID>, ConditionalTurnPenalty *> index;
1272
+ std ::unordered_multimap<std::pair<NodeID, NodeID>, ConditionalTurnPenalty *> index;
1287
1273
1288
1274
// build and index of all conditional restrictions
1289
1275
for (auto &conditional : conditionals)
You can’t perform that action at this time.
0 commit comments