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

Method getOutputsConnectedToThisNode

Engine/NodeInputs.cpp:1321–1340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1319
1320
1321void
1322Node::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
1343const NodesWList &

Callers 5

autoConnectNodesMethod · 0.80
onInputChangedMethod · 0.80
refreshOutputNodeMethod · 0.80
InlineGroupCommandMethod · 0.80

Calls 5

inputIndexMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
lockMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected