* @brief Returns the raw (pre-transform) value for a dataset. */
| 478 | * @brief Returns the raw (pre-transform) value for a dataset. |
| 479 | */ |
| 480 | const 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. |
no outgoing calls
no test coverage detected