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

Method get

app/src/DataModel/DataTable.cpp:319–332  ·  view source on GitHub ↗

* @brief Looks up a register by table and register name. */

Source from the content-addressed store, hash-verified

317 * @brief Looks up a register by table and register name.
318 */
319const 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

Callers 15

rawMethod · 0.45
~ConnectionManagerMethod · 0.45
uartMethod · 0.45
networkMethod · 0.45
bluetoothLEMethod · 0.45
connectedBluetoothLEMethod · 0.45
audioMethod · 0.45
canBusMethod · 0.45
hidMethod · 0.45
modbusMethod · 0.45
processMethod · 0.45
usbMethod · 0.45

Calls

no outgoing calls