2018-03-27 05:44:13 -04:00
|
|
|
#ifndef OSMR_CONTRACTOR_CONTRACTED_METRIC_HPP
|
|
|
|
#define OSMR_CONTRACTOR_CONTRACTED_METRIC_HPP
|
|
|
|
|
|
|
|
#include "contractor/query_graph.hpp"
|
|
|
|
|
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace contractor
|
|
|
|
{
|
|
|
|
|
|
|
|
namespace detail
|
|
|
|
{
|
2018-03-28 19:18:28 -04:00
|
|
|
template <storage::Ownership Ownership> struct ContractedMetric
|
2018-03-27 05:44:13 -04:00
|
|
|
{
|
|
|
|
detail::QueryGraph<Ownership> graph;
|
|
|
|
std::vector<util::ViewOrVector<bool, Ownership>> edge_filter;
|
|
|
|
};
|
2020-11-26 10:21:39 -05:00
|
|
|
} // namespace detail
|
2018-03-27 05:44:13 -04:00
|
|
|
|
|
|
|
using ContractedMetric = detail::ContractedMetric<storage::Ownership::Container>;
|
|
|
|
using ContractedMetricView = detail::ContractedMetric<storage::Ownership::View>;
|
2020-11-26 10:21:39 -05:00
|
|
|
} // namespace contractor
|
|
|
|
} // namespace osrm
|
2018-03-27 05:44:13 -04:00
|
|
|
|
|
|
|
#endif
|