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

Method getInputIndex

Engine/Node.cpp:5257–5269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5255}
5256
5257int
5258Node::getInputIndex(const Node* node) const
5259{
5260 QMutexLocker l(&_imp->inputsMutex);
5261
5262 for (U32 i = 0; i < _imp->inputs.size(); ++i) {
5263 if (_imp->inputs[i].lock().get() == node) {
5264 return i;
5265 }
5266 }
5267
5268 return -1;
5269}
5270
5271const std::vector<NodeWPtr > &
5272Node::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