* @brief Returns the final (post-transform) value for a dataset. */
| 495 | * @brief Returns the final (post-transform) value for a dataset. |
| 496 | */ |
| 497 | const 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 |
no outgoing calls
no test coverage detected