Add feature to fill null matrix entries with straight-line estimates.

This commit is contained in:
Daniel Patterson
2018-10-31 22:02:54 -07:00
parent cb1db646f2
commit 71bdfd2c6e
6 changed files with 103 additions and 4 deletions
+6 -2
View File
@@ -59,6 +59,7 @@ struct TableParameters : public BaseParameters
{
std::vector<std::size_t> sources;
std::vector<std::size_t> destinations;
std::size_t noroute_estimate = 0;
enum class AnnotationsType
{
@@ -74,19 +75,22 @@ struct TableParameters : public BaseParameters
template <typename... Args>
TableParameters(std::vector<std::size_t> sources_,
std::vector<std::size_t> destinations_,
std::size_t noroute_estimate_,
Args... args_)
: BaseParameters{std::forward<Args>(args_)...}, sources{std::move(sources_)},
destinations{std::move(destinations_)}
destinations{std::move(destinations_)}, noroute_estimate{noroute_estimate_}
{
}
template <typename... Args>
TableParameters(std::vector<std::size_t> sources_,
std::vector<std::size_t> destinations_,
std::size_t noroute_estimate_,
const AnnotationsType annotations_,
Args... args_)
: BaseParameters{std::forward<Args>(args_)...}, sources{std::move(sources_)},
destinations{std::move(destinations_)}, annotations{annotations_}
destinations{std::move(destinations_)}, noroute_estimate{noroute_estimate_},
annotations{annotations_}
{
}