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

Method getNodeIndex

Gui/MultiInstancePanel.cpp:1004–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1002}
1003
1004int
1005MultiInstancePanel::getNodeIndex(const NodePtr & node) const
1006{
1007 int i = 0;
1008 Nodes::iterator it = _imp->instances.begin();
1009
1010 for (; it != _imp->instances.end(); ++it, ++i) {
1011 if (it->first.lock() == node) {
1012 return i;
1013 }
1014 }
1015
1016 return -1;
1017}
1018
1019void
1020MultiInstancePanel::onDeleteKeyPressed()

Callers 1

AddNodeCommandClass · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected