Sets a given index in the sparse_map_ to be mapped or not.
| 86 | |
| 87 | // Sets a given index in the sparse_map_ to be mapped or not. |
| 88 | void IndexMapBiDi::SetMap(int sparse_index, bool mapped) { |
| 89 | sparse_map_[sparse_index] = mapped ? 0 : -1; |
| 90 | } |
| 91 | |
| 92 | // Sets up the sparse_map_ and compact_map_ properly after Init and |
| 93 | // some calls to SetMap. Assumes an ordered 1-1 map from set indices |
no outgoing calls
no test coverage detected