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

Method getInputIndex

Engine/NodeInputs.cpp:238–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238int
239Node::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
252const std::vector<NodeWPtr> &
253Node::getInputs() const

Callers 5

notifyNodeDeactivatedMethod · 0.80
notifyNodeActivatedMethod · 0.80
deactivateMethod · 0.80
doConnectMethod · 0.80
redoMethod · 0.80

Calls 3

sizeMethod · 0.45
getMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected