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

Method processStep

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

Source from the content-addressed store, hash-verified

318 }
319
320 inline bool Engine::processStep(ProcessFlow::Node& step) {
321#ifdef DEBUG
322 if (verboseFlag)
323 cerr << "process step " << step.v.m_id << endl;
324#endif
325 if (!step.v.hasInputAvailable())
326 return false;
327#ifdef WITH_TIMERS
328 Timer* t = Timer::get_timer(step.v.m_id);
329 t->start();
330 bool res = step.v.m_component->process(step.v.m_input, step.v.m_output);
331 t->stop();
332 return res;
333#else
334 return (step.v.m_component->process(step.v.m_input, step.v.m_output));
335#endif
336 }
337
338 inline bool Engine::flushStep(ProcessFlow::Node& step) {
339 if (step.v.m_component!=NULL) {

Callers

nothing calls this directly

Calls 4

hasInputAvailableMethod · 0.80
startMethod · 0.80
stopMethod · 0.80
processMethod · 0.45

Tested by

no test coverage detected