1 #ifndef OSMR_CONTRACTOR_CONTRACTED_METRIC_HPP
2 #define OSMR_CONTRACTOR_CONTRACTED_METRIC_HPP
3 
4 #include "contractor/query_graph.hpp"
5 
6 namespace osrm
7 {
8 namespace contractor
9 {
10 
11 namespace detail
12 {
13 template <storage::Ownership Ownership> struct ContractedMetric
14 {
15     detail::QueryGraph<Ownership> graph;
16     std::vector<util::ViewOrVector<bool, Ownership>> edge_filter;
17 };
18 } // namespace detail
19 
20 using ContractedMetric = detail::ContractedMetric<storage::Ownership::Container>;
21 using ContractedMetricView = detail::ContractedMetric<storage::Ownership::View>;
22 } // namespace contractor
23 } // namespace osrm
24 
25 #endif
26