* @brief Resolves a (table, register) pair to a storage offset, or -1. */
| 558 | * @brief Resolves a (table, register) pair to a storage offset, or -1. |
| 559 | */ |
| 560 | int DataModel::DataTableStore::indexOf(const QString& table, const QString& reg) const |
| 561 | { |
| 562 | const auto it = m_index.constFind(qMakePair(table, reg)); |
| 563 | if (it == m_index.constEnd()) |
| 564 | return -1; |
| 565 | |
| 566 | return it.value(); |
| 567 | } |
| 568 | |
| 569 | /** |
| 570 | * @brief Logs a one-shot warning for an unknown (table, register) lookup. |
no test coverage detected