| 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 |
no test coverage detected