| 1319 | |
| 1320 | |
| 1321 | void |
| 1322 | Node::getOutputsConnectedToThisNode(std::map<NodePtr, int>* outputs) |
| 1323 | { |
| 1324 | ////Only called by the main-thread |
| 1325 | assert( QThread::currentThread() == qApp->thread() ); |
| 1326 | |
| 1327 | NodePtr thisSHared = shared_from_this(); |
| 1328 | for (NodesWList::iterator it = _imp->outputs.begin(); it != _imp->outputs.end(); ++it) { |
| 1329 | NodePtr output = it->lock(); |
| 1330 | if (!output) { |
| 1331 | continue; |
| 1332 | } |
| 1333 | |
| 1334 | int indexOfThis = output->inputIndex(thisSHared); |
| 1335 | assert(indexOfThis != -1); |
| 1336 | if (indexOfThis >= 0) { |
| 1337 | outputs->insert( std::make_pair(output, indexOfThis) ); |
| 1338 | } |
| 1339 | } |
| 1340 | } |
| 1341 | |
| 1342 | |
| 1343 | const NodesWList & |
no test coverage detected