| 11 | |
| 12 | class OneProcessor : public GraphProcessor { |
| 13 | virtual int process() noexcept override { |
| 14 | auto depend = vertex().anonymous_dependency(0); |
| 15 | auto index = vertex().index_for_named_dependency("a"); |
| 16 | auto ndepend = index >= 0 ? vertex().named_dependency(index) : nullptr; |
| 17 | auto emit = vertex().anonymous_emit(0); |
| 18 | if (depend != nullptr && emit != nullptr) { |
| 19 | BABYLON_LOG(INFO) << "forward"; |
| 20 | emit->forward(*depend); |
| 21 | } else if (ndepend != nullptr && emit != nullptr) { |
| 22 | emit->forward(*ndepend); |
| 23 | } else { |
| 24 | BABYLON_LOG(INFO) << "none"; |
| 25 | } |
| 26 | return 0; |
| 27 | } |
| 28 | }; |
| 29 | |
| 30 | class MProcessor : public GraphProcessor { |
nothing calls this directly
no test coverage detected