Setter and getter for the cost table.
| 57 | |
| 58 | /// Setter and getter for the cost table. |
| 59 | void setCostTable(Span<const uint64_t> NewTable) { |
| 60 | CostTab.assign(NewTable.begin(), NewTable.end()); |
| 61 | if (unlikely(CostTab.size() < UINT16_MAX + 1)) { |
| 62 | CostTab.resize(UINT16_MAX + 1, 0ULL); |
| 63 | } |
| 64 | } |
| 65 | Span<const uint64_t> getCostTable() const noexcept { return CostTab; } |
| 66 | Span<uint64_t> getCostTable() noexcept { return CostTab; } |
| 67 |