* @brief Writes final (post-transform) values for a dataset. */
| 457 | * @brief Writes final (post-transform) values for a dataset. |
| 458 | */ |
| 459 | void DataModel::DataTableStore::setDatasetFinal(int uniqueId, |
| 460 | double numeric, |
| 461 | const QString& str, |
| 462 | bool isNum) |
| 463 | { |
| 464 | Q_ASSERT(m_initialized); |
| 465 | |
| 466 | const auto it = m_datasetIndex.constFind(uniqueId); |
| 467 | if (it == m_datasetIndex.constEnd()) [[unlikely]] |
| 468 | return; |
| 469 | |
| 470 | auto& rv = m_storage[static_cast<size_t>(it->second)]; |
| 471 | rv.numericValue = numeric; |
| 472 | rv.stringValue = str; |
| 473 | rv.isNumeric = isNum; |
| 474 | m_version[static_cast<size_t>(it->second)] = ++m_writeClock; |
| 475 | } |
| 476 | |
| 477 | /** |
| 478 | * @brief Returns the raw (pre-transform) value for a dataset. |
no outgoing calls
no test coverage detected