| 215 | } |
| 216 | |
| 217 | GroupId InstanceList::getInstanceGroup(const InstanceId& id) const |
| 218 | { |
| 219 | auto inst = getInstanceById(id); |
| 220 | if (!inst) { |
| 221 | return GroupId(); |
| 222 | } |
| 223 | auto iter = m_instanceGroupIndex.find(inst->id()); |
| 224 | if (iter != m_instanceGroupIndex.end()) { |
| 225 | return *iter; |
| 226 | } |
| 227 | return GroupId(); |
| 228 | } |
| 229 | |
| 230 | void InstanceList::setInstanceGroup(const InstanceId& id, const GroupId& name) |
| 231 | { |
no test coverage detected