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

Method CreateModule

core/module.cc:117–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117Module *ModuleBuilder::CreateModule(const std::string &name,
118 bess::metadata::Pipeline *pipeline) const {
119 Module *m = module_generator_();
120 m->set_name(name);
121 m->set_module_builder(this);
122 m->set_pipeline(pipeline);
123 return m;
124}
125
126// -------------------------------------------------------------------------
127CommandResponse Module::InitWithGenericArg(const google::protobuf::Any &arg) {

Callers

nothing calls this directly

Calls 3

set_module_builderMethod · 0.80
set_pipelineMethod · 0.80
set_nameMethod · 0.45

Tested by

no test coverage detected