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