| 751 | } |
| 752 | |
| 753 | GraphFunction* 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 | |
| 761 | Result GraphModule::nodeTypeFromName(boost::string_view name, const nlohmann::json& jsonData, |
| 762 | std::unique_ptr<NodeType>* toFill) { |
no test coverage detected