Tidying prarameter for the map matching plugin.

This commit is contained in:
Lev Dragunov
2017-03-06 16:11:38 +03:00
committed by Patrick Niklaus
parent bfc272f3e8
commit 441eae9df2
7 changed files with 45 additions and 22 deletions
+3 -2
View File
@@ -61,12 +61,13 @@ struct MatchParameters : public RouteParameters
}
template <typename... Args>
MatchParameters(std::vector<unsigned> timestamps_, Args... args_)
: RouteParameters{std::forward<Args>(args_)...}, timestamps{std::move(timestamps_)}
MatchParameters(std::vector<unsigned> timestamps_, bool use_tidying_, Args... args_)
: RouteParameters{std::forward<Args>(args_)...}, timestamps{std::move(timestamps_)}, use_tidying(use_tidying_)
{
}
std::vector<unsigned> timestamps;
bool use_tidying = true;
bool IsValid() const
{
return RouteParameters::IsValid() &&