| 200 | } |
| 201 | |
| 202 | int Models::AddModel() { |
| 203 | models.push_back(ModelData()); |
| 204 | int the_id = next_id++; |
| 205 | id_map[the_id] = &models.back(); |
| 206 | return the_id; |
| 207 | } |
| 208 | |
| 209 | Model& Models::GetModel(int id) { |
| 210 | return id_map[id]->model; |
no test coverage detected