MCPcopy Create free account
hub / github.com/comaps/comaps / ForEachTree

Method ForEachTree

libs/indexer/complex/tree_node.hpp:277–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275
276 template <typename Fn>
277 void ForEachTree(Fn && fn) const
278 {
279 base::ControlFlowWrapper<Fn> wrapper(std::forward<Fn>(fn));
280 for (auto const & tree : m_trees)
281 if (wrapper(tree) == base::ControlFlow::Break)
282 return;
283 }
284
285private:
286 types::Ptrs<Data> m_trees;

Callers 8

TraformToIdsForestFunction · 0.45
GetIdsSetMethod · 0.45
UNIT_CLASS_TESTFunction · 0.45
FindIfFunction · 0.45
DebugPrintFunction · 0.45
SerializeMethod · 0.45
UNIT_TESTFunction · 0.45
UNIT_TESTFunction · 0.45

Calls 1

wrapperFunction · 0.50

Tested by 3

UNIT_CLASS_TESTFunction · 0.36
UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36