MCPcopy Create free account
hub / github.com/MrKepzie/Natron / getOutputsWithGroupRedirection

Method getOutputsWithGroupRedirection

Engine/Node.cpp:5087–5105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5085} // applyNodeRedirectionsDownstream
5086
5087void
5088Node::getOutputsWithGroupRedirection(NodesList& outputs) const
5089{
5090 NodesList redirections;
5091 NodePtr thisShared = boost::const_pointer_cast<Node>( shared_from_this() );
5092
5093 applyNodeRedirectionsDownstream(0, thisShared, false, redirections);
5094 if ( !redirections.empty() ) {
5095 outputs.insert( outputs.begin(), redirections.begin(), redirections.end() );
5096 } else {
5097 QMutexLocker l(&_imp->outputsMutex);
5098 for (NodesWList::const_iterator it = _imp->outputs.begin(); it != _imp->outputs.end(); ++it) {
5099 NodePtr output = it->lock();
5100 if (output) {
5101 outputs.push_back(output);
5102 }
5103 }
5104 }
5105}
5106
5107
5108

Callers 1

Calls 7

emptyMethod · 0.80
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
lockMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected