osrm-backend/include/contractor/contracted_metric.hpp

23 lines
583 B
C++
Raw Normal View History

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::contractor
2018-03-27 05:44:13 -04:00
{
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;
};
} // namespace detail
2018-03-27 05:44:13 -04:00
using ContractedMetric = detail::ContractedMetric<storage::Ownership::Container>;
using ContractedMetricView = detail::ContractedMetric<storage::Ownership::View>;
2022-12-20 12:00:11 -05:00
} // namespace osrm::contractor
2018-03-27 05:44:13 -04:00
#endif