| 70 | } |
| 71 | |
| 72 | void 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 | |
| 88 | void pre_order_apply(const tree::NodeTree &nt, NodeID start, const NodeAction &action) |
| 89 | { |
no test coverage detected