* @brief Writes raw (pre-transform) values for a dataset. */
| 436 | * @brief Writes raw (pre-transform) values for a dataset. |
| 437 | */ |
| 438 | void DataModel::DataTableStore::setDatasetRaw(int uniqueId, |
| 439 | double numeric, |
| 440 | const QString& str, |
| 441 | bool isNum) |
| 442 | { |
| 443 | Q_ASSERT(m_initialized); |
| 444 | |
| 445 | const auto it = m_datasetIndex.constFind(uniqueId); |
| 446 | if (it == m_datasetIndex.constEnd()) [[unlikely]] |
| 447 | return; |
| 448 | |
| 449 | auto& rv = m_storage[static_cast<size_t>(it->first)]; |
| 450 | rv.numericValue = numeric; |
| 451 | rv.stringValue = str; |
| 452 | rv.isNumeric = isNum; |
| 453 | m_version[static_cast<size_t>(it->first)] = ++m_writeClock; |
| 454 | } |
| 455 | |
| 456 | /** |
| 457 | * @brief Writes final (post-transform) values for a dataset. |
no outgoing calls
no test coverage detected