MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / apply_below

Function apply_below

cp-profiler/src/cpprofiler/utils/tree_utils.cpp:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void apply_below(const NodeTree &nt, NodeID nid, const NodeAction &action)
73{
74
75 if (nid == NodeID::NoNode)
76 {
77 throw std::exception();
78 }
79
80 auto nodes = nodes_below(nt, nid);
81
82 for (auto n : nodes)
83 {
84 action(n);
85 }
86}
87
88void pre_order_apply(const tree::NodeTree &nt, NodeID start, const NodeAction &action)
89{

Callers 2

count_descendantsFunction · 0.85
unhideAllAtMethod · 0.85

Calls 1

nodes_belowFunction · 0.85

Tested by

no test coverage detected