MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / SetValue

Method SetValue

include/util/dist_table_wrapper.hpp:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 void SetValue(NodeID from, NodeID to, T value)
48 {
49 BOOST_ASSERT_MSG(from < number_of_nodes_, "from ID is out of bound");
50 BOOST_ASSERT_MSG(to < number_of_nodes_, "to ID is out of bound");
51
52 const auto index = from * number_of_nodes_ + to;
53
54 BOOST_ASSERT_MSG(index < table_.size(), "index is out of bound");
55
56 table_[index] = value;
57 }
58
59 ConstIterator begin() const { return std::begin(table_); }
60

Callers 3

ManipulateTableForFSEFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected