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

Method getDatasetRaw

app/src/DataModel/DataTable.cpp:480–492  ·  view source on GitHub ↗

* @brief Returns the raw (pre-transform) value for a dataset. */

Source from the content-addressed store, hash-verified

478 * @brief Returns the raw (pre-transform) value for a dataset.
479 */
480const DataModel::RegisterValue* DataModel::DataTableStore::getDatasetRaw(int uniqueId) const
481{
482 Q_ASSERT(m_initialized);
483
484 const auto it = m_datasetIndex.constFind(uniqueId);
485 if (it == m_datasetIndex.constEnd()) [[unlikely]] {
486 noteMissingDataset(uniqueId, "raw");
487 return nullptr;
488 }
489
490 captureRead(it->first);
491 return &m_storage[static_cast<size_t>(it->first)];
492}
493
494/**
495 * @brief Returns the final (post-transform) value for a dataset.

Callers 2

datasetGetRawMethod · 0.80
luaDatasetGetRawFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected