* @brief Looks up a register by table and register name. */
| 317 | * @brief Looks up a register by table and register name. |
| 318 | */ |
| 319 | const DataModel::RegisterValue* DataModel::DataTableStore::get(const QString& table, |
| 320 | const QString& reg) const |
| 321 | { |
| 322 | Q_ASSERT(m_initialized); |
| 323 | |
| 324 | const int idx = indexOf(table, reg); |
| 325 | if (idx < 0) [[unlikely]] { |
| 326 | noteMissingLookup(table, reg); |
| 327 | return nullptr; |
| 328 | } |
| 329 | |
| 330 | captureRead(idx); |
| 331 | return &m_storage[static_cast<size_t>(idx)]; |
| 332 | } |
| 333 | |
| 334 | /** |
| 335 | * @brief Writes to a computed register; no-op for constant or system registers, and an identical |
no outgoing calls