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

Method create

src/babylon/anyflow/builtin/expression.cpp:150–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 static ::std::unique_ptr<Operator> create(
151 const ::std::string& op, const ValueIndex& result,
152 const ValueIndex& loperand, const ValueIndex& roperand) noexcept {
153 auto it = _s_registry.find(op);
154 if (it != _s_registry.end()) {
155 return it->second(result, loperand, roperand);
156 }
157 return ::std::unique_ptr<Operator>();
158 }
159
160 protected:
161 template <typename T>

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected