Merge remote-tracking branch 'origin/master' into dl_using_keyword
This commit is contained in:
@@ -203,7 +203,10 @@ class ContiguousInternalMemoryDataFacade<routing_algorithms::offline::Algorithm>
|
||||
return DatasourceReverseRange(DatasourceForwardRange());
|
||||
}
|
||||
|
||||
StringView GetDatasourceName(const DatasourceID /*id*/) const override { return StringView{}; }
|
||||
std::string_view GetDatasourceName(const DatasourceID /*id*/) const override
|
||||
{
|
||||
return std::string_view{};
|
||||
}
|
||||
|
||||
guidance::TurnInstruction GetTurnInstructionForEdgeID(const EdgeID /*id*/) const override
|
||||
{
|
||||
@@ -270,11 +273,20 @@ class ContiguousInternalMemoryDataFacade<routing_algorithms::offline::Algorithm>
|
||||
|
||||
bool HasLaneData(const EdgeID /*id*/) const override { return false; }
|
||||
NameID GetNameIndex(const NodeID /*nodeID*/) const override { return EMPTY_NAMEID; }
|
||||
StringView GetNameForID(const NameID /*id*/) const override { return StringView{}; }
|
||||
StringView GetRefForID(const NameID /*id*/) const override { return StringView{}; }
|
||||
StringView GetPronunciationForID(const NameID /*id*/) const override { return StringView{}; }
|
||||
StringView GetDestinationsForID(const NameID /*id*/) const override { return StringView{}; }
|
||||
StringView GetExitsForID(const NameID /*id*/) const override { return StringView{}; }
|
||||
std::string_view GetNameForID(const NameID /*id*/) const override { return std::string_view{}; }
|
||||
std::string_view GetRefForID(const NameID /*id*/) const override { return std::string_view{}; }
|
||||
std::string_view GetPronunciationForID(const NameID /*id*/) const override
|
||||
{
|
||||
return std::string_view{};
|
||||
}
|
||||
std::string_view GetDestinationsForID(const NameID /*id*/) const override
|
||||
{
|
||||
return std::string_view{};
|
||||
}
|
||||
std::string_view GetExitsForID(const NameID /*id*/) const override
|
||||
{
|
||||
return std::string_view{};
|
||||
}
|
||||
bool GetContinueStraightDefault() const override { return false; }
|
||||
std::string GetTimestamp() const override { return ""; }
|
||||
double GetMapMatchingMaxSpeed() const override { return 0; }
|
||||
|
||||
@@ -26,8 +26,6 @@ namespace test
|
||||
|
||||
class MockBaseDataFacade : public engine::datafacade::BaseDataFacade
|
||||
{
|
||||
using StringView = util::StringView;
|
||||
|
||||
public:
|
||||
bool ExcludeNode(const NodeID) const override { return false; };
|
||||
|
||||
@@ -95,7 +93,7 @@ class MockBaseDataFacade : public engine::datafacade::BaseDataFacade
|
||||
return DatasourceReverseRange(DatasourceForwardRange());
|
||||
}
|
||||
|
||||
StringView GetDatasourceName(const DatasourceID) const override final { return {}; }
|
||||
std::string_view GetDatasourceName(const DatasourceID) const override final { return {}; }
|
||||
|
||||
osrm::guidance::TurnInstruction
|
||||
GetTurnInstructionForEdgeID(const EdgeID /* id */) const override
|
||||
@@ -154,11 +152,11 @@ class MockBaseDataFacade : public engine::datafacade::BaseDataFacade
|
||||
|
||||
NameID GetNameIndex(const NodeID /* id */) const override { return 0; }
|
||||
|
||||
StringView GetNameForID(const NameID) const override final { return {}; }
|
||||
StringView GetRefForID(const NameID) const override final { return {}; }
|
||||
StringView GetPronunciationForID(const NameID) const override final { return {}; }
|
||||
StringView GetDestinationsForID(const NameID) const override final { return {}; }
|
||||
StringView GetExitsForID(const NameID) const override final { return {}; }
|
||||
std::string_view GetNameForID(const NameID) const override final { return {}; }
|
||||
std::string_view GetRefForID(const NameID) const override final { return {}; }
|
||||
std::string_view GetPronunciationForID(const NameID) const override final { return {}; }
|
||||
std::string_view GetDestinationsForID(const NameID) const override final { return {}; }
|
||||
std::string_view GetExitsForID(const NameID) const override final { return {}; }
|
||||
|
||||
bool GetContinueStraightDefault() const override { return true; }
|
||||
double GetMapMatchingMaxSpeed() const override { return 180 / 3.6; }
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
#include "../common/range_tools.hpp"
|
||||
#include "../common/temporary_file.hpp"
|
||||
|
||||
#include <boost/function_output_iterator.hpp>
|
||||
#include <boost/iterator/function_input_iterator.hpp>
|
||||
#include <boost/iterator/function_output_iterator.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(tar)
|
||||
|
||||
@@ -136,7 +136,7 @@ BOOST_AUTO_TEST_CASE(check_string_view)
|
||||
std::string name_data = "hellostringview";
|
||||
std::vector<std::uint32_t> name_offsets = {0, 5, 11, 15};
|
||||
|
||||
IndexedData<VariableGroupBlock<16, StringView>> indexed_data(
|
||||
IndexedData<VariableGroupBlock<16, std::string_view>> indexed_data(
|
||||
name_offsets.begin(), name_offsets.end(), name_data.begin());
|
||||
|
||||
BOOST_CHECK_EQUAL(indexed_data.at(0), "hello");
|
||||
|
||||
Reference in New Issue
Block a user