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

Function findDatasetByUid

app/src/Sessions/ReportData.cpp:116–122  ·  view source on GitHub ↗

* @brief Locates the DatasetStats row matching a unique id, or end() if absent. */

Source from the content-addressed store, hash-verified

114 * @brief Locates the DatasetStats row matching a unique id, or end() if absent.
115 */
116static std::vector<Sessions::DatasetStats>::iterator findDatasetByUid(
117 std::vector<Sessions::DatasetStats>& datasets, int uid)
118{
119 return std::find_if(datasets.begin(), datasets.end(), [uid](const Sessions::DatasetStats& d) {
120 return d.uniqueId == uid;
121 });
122}
123
124/**
125 * @brief Runs the single-pass numeric aggregate (count, min, max, mean, stddev) per dataset.

Callers 3

loadNumericAggregatesFunction · 0.85
loadStringSampleCountsFunction · 0.85
loadEdgeValuesFunction · 0.85

Calls 1

beginMethod · 0.80

Tested by

no test coverage detected