MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / snapshotMultiplotTimeRings

Method snapshotMultiplotTimeRings

app/src/UI/Dashboard.cpp:2407–2421  ·  view source on GitHub ↗

* @brief Snapshots multiplot time-ring contents keyed by group uniqueId. */

Source from the content-addressed store, hash-verified

2405 * @brief Snapshots multiplot time-ring contents keyed by group uniqueId.
2406 */
2407QHash<qint64, std::vector<DSP::TimeRing>> UI::Dashboard::snapshotMultiplotTimeRings() const
2408{
2409 QHash<qint64, std::vector<DSP::TimeRing>> out;
2410 const int n = widgetCount(SerialStudio::DashboardMultiPlot);
2411 for (int i = 0; i < n; ++i) {
2412 const auto it = m_multiplotTimeRings.find(i);
2413 if (it == m_multiplotTimeRings.end())
2414 continue;
2415
2416 const auto& g = getGroupWidget(SerialStudio::DashboardMultiPlot, i);
2417 out.insert(ringSnapshotKey(g.sourceId, g.uniqueId), it.value());
2418 }
2419
2420 return out;
2421}
2422
2423/**
2424 * @brief Replays a saved ring's samples into @p target via appendDecimated. Used when

Callers

nothing calls this directly

Calls 3

ringSnapshotKeyFunction · 0.85
findMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected