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

Method setDatasetRaw

app/src/DataModel/DataTable.cpp:438–454  ·  view source on GitHub ↗

* @brief Writes raw (pre-transform) values for a dataset. */

Source from the content-addressed store, hash-verified

436 * @brief Writes raw (pre-transform) values for a dataset.
437 */
438void DataModel::DataTableStore::setDatasetRaw(int uniqueId,
439 double numeric,
440 const QString& str,
441 bool isNum)
442{
443 Q_ASSERT(m_initialized);
444
445 const auto it = m_datasetIndex.constFind(uniqueId);
446 if (it == m_datasetIndex.constEnd()) [[unlikely]]
447 return;
448
449 auto& rv = m_storage[static_cast<size_t>(it->first)];
450 rv.numericValue = numeric;
451 rv.stringValue = str;
452 rv.isNumeric = isNum;
453 m_version[static_cast<size_t>(it->first)] = ++m_writeClock;
454}
455
456/**
457 * @brief Writes final (post-transform) values for a dataset.

Callers 2

applyDatasetValueMethod · 0.80
applyDatasetValueSpanMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected