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

Method structFromName

libchigraph/src/GraphModule.cpp:972–977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

970}
971
972GraphStruct* 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
979GraphStruct* GraphModule::getOrCreateStruct(std::string name, bool* inserted) {
980 auto str = structFromName(name);

Callers 1

Calls 2

getMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected