MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / findByNodeId

Method findByNodeId

src/data/model/AppItemModel.cpp:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40std::optional<AppNode> AppItemModel::findByNodeId(uint32_t id)
41{
42 for(int i = 0; i < cache.count(); i++)
43 {
44 if(cache.at(i).id == id)
45 {
46 return cache.at(i);
47 }
48 }
49 return std::nullopt;
50}
51
52void AppItemModel::onAppAdded(const AppNode &node)
53{

Callers 3

AppItemMethod · 0.80
onAppConfigUpdatedMethod · 0.80
setBlockedMethod · 0.80

Calls 2

countMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected