MCPcopy Create free account
hub / github.com/Yaafe/Yaafe / getInputNode

Method getInputNode

src_cpp/yaafe-core/Engine.cpp:137–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 }
136
137 Engine::ProcessingStep* Engine::getInputNode(const std::string& id)
138 {
139 ProcessFlow::Node* n = m_graph->getNode(id);
140 if (n==NULL) {
141 cerr << "WARNING: node '" << id << "' does not exist !" << endl;
142 return NULL;
143 }
144 if (n->v.m_id!="Input")
145 {
146 cerr << "WARNING: node '" << id << "' is not an input node !" << endl;
147 return NULL;
148 }
149 assert(n->v.m_input.size()==0);
150 assert(n->v.m_output.size()==1);
151 return &(n->v);
152 }
153
154 Engine::ProcessingStep* Engine::getOutputNode(const std::string& id)
155 {

Callers

nothing calls this directly

Calls 2

getNodeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected