MCPcopy Create free account
hub / github.com/chigraph/chigraph / functionFromName

Method functionFromName

libchigraph/src/GraphModule.cpp:753–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751}
752
753GraphFunction* GraphModule::functionFromName(boost::string_view name) const {
754 auto iter = std::find_if(mFunctions.begin(), mFunctions.end(),
755 [&](auto& ptr) { return ptr->name() == name; });
756
757 if (iter != mFunctions.end()) { return iter->get(); }
758 return nullptr;
759}
760
761Result GraphModule::nodeTypeFromName(boost::string_view name, const nlohmann::json& jsonData,
762 std::unique_ptr<NodeType>* toFill) {

Callers 4

DebuggerTests.cppFile · 0.80
nodeFromFrameMethod · 0.80
GraphFuncCallTypeMethod · 0.80

Calls 4

beginMethod · 0.80
endMethod · 0.80
getMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected