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

Function ForEach

libs/indexer/complex/tree_node.hpp:136–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
135template <typename Data, typename Fn>
136void ForEach(types::Ptr<Data> const & node, Fn && fn)
137{
138 PreOrderVisit(node, [&](auto const & node) { fn(node->GetData()); });
139}
140
141template <typename Data, typename Fn>
142decltype(auto) FindIf(types::Ptr<Data> const & node, Fn && fn)

Callers 7

GetIdsSetMethod · 0.85
HashMethod · 0.85
UNIT_TESTFunction · 0.85
FindStringMethod · 0.85
ForEachMethod · 0.85
ForEachMethod · 0.85

Calls 2

PreOrderVisitFunction · 0.85
GetDataMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.68