| 236 | } |
| 237 | |
| 238 | int |
| 239 | Node::getInputIndex(const Node* node) const |
| 240 | { |
| 241 | QMutexLocker l(&_imp->inputsMutex); |
| 242 | |
| 243 | for (U32 i = 0; i < _imp->inputs.size(); ++i) { |
| 244 | if (_imp->inputs[i].lock().get() == node) { |
| 245 | return i; |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | return -1; |
| 250 | } |
| 251 | |
| 252 | const std::vector<NodeWPtr> & |
| 253 | Node::getInputs() const |
no test coverage detected