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

Method rebuildDatasetReferences

app/src/UI/Dashboard.cpp:1914–1924  ·  view source on GitHub ↗

* @brief Rebuilds the dataset reference map after the frame layout has changed. * Any push_back/erase on m_lastFrame.groups shifts elements and dangles the * &dataset pointers stored here, so every such mutation must call this; the * early-out guards buildDatasetReferences(), which asserts on an empty frame. */

Source from the content-addressed store, hash-verified

1912 * early-out guards buildDatasetReferences(), which asserts on an empty frame.
1913 */
1914void UI::Dashboard::rebuildDatasetReferences()
1915{
1916 m_datasetReferences.clear();
1917 m_valuePushes.clear();
1918
1919 if (m_lastFrame.groups.empty())
1920 return;
1921
1922 buildDatasetReferences();
1923 buildValuePushes();
1924}
1925
1926/**
1927 * @brief Resolves one dataset's propagation targets from m_datasetReferences.

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected