MCPcopy Create free account
hub / github.com/NetSys/bess / HasModuleOfClass

Method HasModuleOfClass

core/module_graph.cc:236–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236bool ModuleGraph::HasModuleOfClass(const ModuleBuilder *builder) {
237 for (auto const &e : all_modules_) {
238 if (e.second->module_builder() == builder) {
239 return true;
240 }
241 }
242 return false;
243}
244
245// Creates a module to the graph.
246Module *ModuleGraph::CreateModule(const ModuleBuilder &builder,

Callers

nothing calls this directly

Calls 1

module_builderMethod · 0.80

Tested by

no test coverage detected