Inject offline compressed data facade with OSRM_EXTERNAL_MEMORY option.

This commit is contained in:
vng
2017-07-26 17:47:07 +03:00
committed by Patrick Niklaus
parent a64145b712
commit 40857aae61
3 changed files with 41 additions and 4 deletions
@@ -1,6 +1,11 @@
#include "engine/routing_algorithms/shortest_path.hpp"
#ifdef OSRM_EXTERNAL_MEMORY
#include "routing/routing_base_offline.hpp"
#else
#include "engine/routing_algorithms/routing_base_ch.hpp"
#include "engine/routing_algorithms/routing_base_mld.hpp"
#endif
#include <boost/assert.hpp>
#include <boost/optional.hpp>
@@ -456,6 +461,16 @@ InternalRouteResult shortestPathSearch(SearchEngineData<Algorithm> &engine_worki
return raw_route_data;
}
#ifdef OSRM_EXTERNAL_MEMORY
template InternalRouteResult
shortestPathSearch(SearchEngineData<offline::Algorithm> &engine_working_data,
const DataFacade<offline::Algorithm> &facade,
const std::vector<PhantomNodes> &phantom_nodes_vector,
const boost::optional<bool> continue_straight_at_waypoint);
#else
template InternalRouteResult
shortestPathSearch(SearchEngineData<ch::Algorithm> &engine_working_data,
const DataFacade<ch::Algorithm> &facade,
@@ -474,6 +489,8 @@ shortestPathSearch(SearchEngineData<mld::Algorithm> &engine_working_data,
const std::vector<PhantomNodes> &phantom_nodes_vector,
const boost::optional<bool> continue_straight_at_waypoint);
#endif
} // namespace routing_algorithms
} // namespace engine
} // namespace osrm