MCPcopy Create free account
hub / github.com/baidu/babylon / process

Method process

test/anyflow/builtin/test_expression.cpp:13–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12class 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
30class MProcessor : public GraphProcessor {

Callers

nothing calls this directly

Calls 5

forwardMethod · 0.80
anonymous_dependencyMethod · 0.45
named_dependencyMethod · 0.45
anonymous_emitMethod · 0.45

Tested by

no test coverage detected