| 5085 | } // applyNodeRedirectionsDownstream |
| 5086 | |
| 5087 | void |
| 5088 | Node::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 |
no test coverage detected