| 2938 | } |
| 2939 | |
| 2940 | void |
| 2941 | Node::getOutputsConnectedToThisNode(std::map<NodePtr, int>* outputs) |
| 2942 | { |
| 2943 | ////Only called by the main-thread |
| 2944 | assert( QThread::currentThread() == qApp->thread() ); |
| 2945 | |
| 2946 | NodePtr thisSHared = shared_from_this(); |
| 2947 | for (NodesWList::iterator it = _imp->outputs.begin(); it != _imp->outputs.end(); ++it) { |
| 2948 | NodePtr output = it->lock(); |
| 2949 | if (!output) { |
| 2950 | continue; |
| 2951 | } |
| 2952 | |
| 2953 | int indexOfThis = output->inputIndex(thisSHared); |
| 2954 | assert(indexOfThis != -1); |
| 2955 | if (indexOfThis >= 0) { |
| 2956 | outputs->insert( std::make_pair(output, indexOfThis) ); |
| 2957 | } |
| 2958 | } |
| 2959 | } |
| 2960 | |
| 2961 | const std::string & |
| 2962 | Node::getScriptName() const |
no test coverage detected