| 75 | IdMap(size_t id_bound) { id_map_.resize(id_bound, 0); } |
| 76 | |
| 77 | void MapIds(uint32_t from, uint32_t to) { |
| 78 | assert(from != 0); |
| 79 | assert(to != 0); |
| 80 | assert(from < id_map_.size()); |
| 81 | assert(id_map_[from] == 0); |
| 82 | |
| 83 | id_map_[from] = to; |
| 84 | } |
| 85 | |
| 86 | uint32_t MappedId(uint32_t from) const { |
| 87 | assert(from != 0); |
no test coverage detected