MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / indexOf

Method indexOf

app/src/DataModel/DataTable.cpp:560–567  ·  view source on GitHub ↗

* @brief Resolves a (table, register) pair to a storage offset, or -1. */

Source from the content-addressed store, hash-verified

558 * @brief Resolves a (table, register) pair to a storage offset, or -1.
559 */
560int 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.

Callers 15

buildFftRangeRowsMethod · 0.45
selectTemplateMethod · 0.45
selectTemplateMethod · 0.45
switchNativeLanguageMethod · 0.45
selectTemplateMethod · 0.45
detectionIndexMethod · 0.45
checksumIndexMethod · 0.45
selectTemplateMethod · 0.45
rebuildParameterModelMethod · 0.45
loadDefaultTemplateMethod · 0.45

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected