MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / descend_requirement_tree

Function descend_requirement_tree

src/runtime/dag_node.cpp:141–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140template<class F>
141void descend_requirement_tree(F&& f, const dag_node* n) {
142 if(f(n)) {
143 for(const auto& req : n->get_requirements()) {
144 if(auto r = req.lock())
145 descend_requirement_tree(f, r.get());
146 }
147 }
148}
149
150// Looks recursively in the requirement graph of current for x.
151// Descends no more than current_level levels and does not

Callers 1

waitMethod · 0.85

Calls 3

fFunction · 0.85
lockMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected