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

Method getOutputsWithGroupRedirection

Engine/NodeInputs.cpp:167–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165} // applyNodeRedirectionsDownstream
166
167void
168Node::getOutputsWithGroupRedirection(NodesList& outputs) const
169{
170 NodesList redirections;
171 NodePtr thisShared = std::const_pointer_cast<Node>( shared_from_this() );
172
173 applyNodeRedirectionsDownstream(0, thisShared, false, redirections);
174 if ( !redirections.empty() ) {
175 outputs.insert( outputs.begin(), redirections.begin(), redirections.end() );
176 } else {
177 QMutexLocker l(&_imp->outputsMutex);
178 for (NodesWList::const_iterator it = _imp->outputs.begin(); it != _imp->outputs.end(); ++it) {
179 NodePtr output = it->lock();
180 if (output) {
181 outputs.push_back(output);
182 }
183 }
184 }
185}
186
187
188NodePtr

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