osrm-backend/include/updater/updater.hpp

41 lines
1.3 KiB
C++
Raw Normal View History

#ifndef OSRM_UPDATER_UPDATER_HPP
#define OSRM_UPDATER_UPDATER_HPP
#include "updater/updater_config.hpp"
#include "extractor/edge_based_edge.hpp"
#include <chrono>
#include <vector>
namespace osrm::updater
{
class Updater
{
2017-03-09 17:45:27 -05:00
public:
Updater(UpdaterConfig config_) : config(std::move(config_)) {}
2018-04-22 14:05:11 -04:00
EdgeID
LoadAndUpdateEdgeExpandedGraph(std::vector<extractor::EdgeBasedEdge> &edge_based_edge_list,
std::vector<EdgeWeight> &node_weights,
std::uint32_t &connectivity_checksum) const;
EdgeID LoadAndUpdateEdgeExpandedGraph(
std::vector<extractor::EdgeBasedEdge> &edge_based_edge_list,
std::vector<EdgeWeight> &node_weights,
std::vector<EdgeDuration> &node_durations, // TODO: remove when optional
std::uint32_t &connectivity_checksum) const;
EdgeID LoadAndUpdateEdgeExpandedGraph(
std::vector<extractor::EdgeBasedEdge> &edge_based_edge_list,
std::vector<EdgeWeight> &node_weights,
std::vector<EdgeDuration> &node_durations, // TODO: remove when optional
std::vector<EdgeDistance> &node_distances, // TODO: remove when optional
std::uint32_t &connectivity_checksum) const;
2017-03-09 17:45:27 -05:00
private:
UpdaterConfig config;
};
2022-12-20 12:00:11 -05:00
} // namespace osrm::updater
#endif