MCPcopy Create free account
hub / github.com/comaps/comaps / operator()

Method operator()

libs/map/everywhere_search_callback.cpp:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void EverywhereSearchCallback::operator()(Results const & results)
17{
18 size_t const prevSize = m_productInfo.size();
19 size_t const currSize = results.GetCount();
20 ASSERT_LESS_OR_EQUAL(prevSize, currSize, ());
21
22 for (size_t i = prevSize; i < currSize; ++i)
23 m_productInfo.push_back(m_delegate.GetProductInfo(results[i]));
24
25 m_delegate.RunUITask([onResults = m_onResults, results, productInfo = m_productInfo]() mutable
26 { onResults(std::move(results), std::move(productInfo)); });
27}
28} // namespace search

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.45
GetCountMethod · 0.45
push_backMethod · 0.45
GetProductInfoMethod · 0.45
RunUITaskMethod · 0.45

Tested by

no test coverage detected