| 85 | } |
| 86 | |
| 87 | std::vector<NodeInstance*> GraphFunction::nodesWithType(const boost::filesystem::path& module, |
| 88 | boost::string_view name) const noexcept { |
| 89 | std::vector<NodeInstance*> ret; |
| 90 | for (const auto& node : mNodes) { |
| 91 | if (node.second->type().module().fullName() == module && |
| 92 | node.second->type().name() == name) { |
| 93 | ret.push_back(node.second.get()); |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | return ret; |
| 98 | } |
| 99 | |
| 100 | Result GraphFunction::insertNode(const boost::filesystem::path& moduleName, |
| 101 | boost::string_view typeName, const nlohmann::json& typeJSON, |
no test coverage detected