| 199 | } |
| 200 | |
| 201 | GroupId InstanceList::getInstanceGroup(const InstanceId& id) const |
| 202 | { |
| 203 | auto inst = getInstanceById(id); |
| 204 | if(!inst) |
| 205 | { |
| 206 | return GroupId(); |
| 207 | } |
| 208 | auto iter = m_instanceGroupIndex.find(inst->id()); |
| 209 | if(iter != m_instanceGroupIndex.end()) |
| 210 | { |
| 211 | return *iter; |
| 212 | } |
| 213 | return GroupId(); |
| 214 | } |
| 215 | |
| 216 | void InstanceList::setInstanceGroup(const InstanceId& id, const GroupId& name) |
| 217 | { |
no test coverage detected