| 227 | } |
| 228 | |
| 229 | GroupId InstanceList::getInstanceGroup(const InstanceId& id) const |
| 230 | { |
| 231 | auto inst = getInstanceById(id); |
| 232 | if (!inst) { |
| 233 | return GroupId(); |
| 234 | } |
| 235 | auto iter = m_instanceGroupIndex.find(inst->id()); |
| 236 | if (iter != m_instanceGroupIndex.end()) { |
| 237 | return *iter; |
| 238 | } |
| 239 | return GroupId(); |
| 240 | } |
| 241 | |
| 242 | void InstanceList::setInstanceGroup(const InstanceId& id, GroupId name) |
| 243 | { |
no test coverage detected