| 970 | } |
| 971 | |
| 972 | GraphStruct* GraphModule::structFromName(boost::string_view name) const { |
| 973 | for (const auto& str : structs()) { |
| 974 | if (str->name() == name) { return str.get(); } |
| 975 | } |
| 976 | return nullptr; |
| 977 | } |
| 978 | |
| 979 | GraphStruct* GraphModule::getOrCreateStruct(std::string name, bool* inserted) { |
| 980 | auto str = structFromName(name); |
no test coverage detected