* @brief Snapshots one anchor per workspace ref before a reorder. */
| 3688 | * @brief Snapshots one anchor per workspace ref before a reorder. |
| 3689 | */ |
| 3690 | static std::vector<std::vector<detail::RefAnchor>> snapshotAllRefs( |
| 3691 | const std::vector<DataModel::Workspace>& workspaces, const std::vector<DataModel::Group>& groups) |
| 3692 | { |
| 3693 | std::vector<std::vector<detail::RefAnchor>> out; |
| 3694 | out.resize(workspaces.size()); |
| 3695 | for (size_t w = 0; w < workspaces.size(); ++w) { |
| 3696 | const auto& ws = workspaces[w]; |
| 3697 | auto& bucket = out[w]; |
| 3698 | bucket.reserve(ws.widgetRefs.size()); |
| 3699 | for (const auto& r : ws.widgetRefs) |
| 3700 | bucket.push_back(anchorRef(r, groups)); |
| 3701 | } |
| 3702 | return out; |
| 3703 | } |
| 3704 | |
| 3705 | /** |
| 3706 | * @brief Walks one workspace's refs against the new group/dataset layout, refreshing |
no test coverage detected