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

Method getDatasetFinal

app/src/DataModel/DataTable.cpp:497–509  ·  view source on GitHub ↗

* @brief Returns the final (post-transform) value for a dataset. */

Source from the content-addressed store, hash-verified

495 * @brief Returns the final (post-transform) value for a dataset.
496 */
497const DataModel::RegisterValue* DataModel::DataTableStore::getDatasetFinal(int uniqueId) const
498{
499 Q_ASSERT(m_initialized);
500
501 const auto it = m_datasetIndex.constFind(uniqueId);
502 if (it == m_datasetIndex.constEnd()) [[unlikely]] {
503 noteMissingDataset(uniqueId, "final");
504 return nullptr;
505 }
506
507 captureRead(it->second);
508 return &m_storage[static_cast<size_t>(it->second)];
509}
510
511//--------------------------------------------------------------------------------------------------
512// Export support

Callers 2

datasetGetFinalMethod · 0.80
luaDatasetGetFinalFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected