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

Function hasNodeOutputsInList

Gui/NodeGraphUndoRedo.cpp:923–947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921} // buildTreeInternal
922
923static bool
924hasNodeOutputsInList(const std::list<NodeGuiPtr> & nodes,
925 const NodeGuiPtr& node)
926{
927 const NodesWList& outputs = node->getNode()->getGuiOutputs();
928 bool foundOutput = false;
929
930 for (std::list<NodeGuiPtr> ::const_iterator it = nodes.begin(); it != nodes.end(); ++it) {
931 if (*it != node) {
932 NodePtr n = (*it)->getNode();
933
934 for (NodesWList::const_iterator it2 = outputs.begin(); it2 != outputs.end(); ++it2) {
935 if (it2->lock() == n) {
936 foundOutput = true;
937 break;
938 }
939 }
940 if (foundOutput) {
941 break;
942 }
943 }
944 }
945
946 return foundOutput;
947}
948
949static bool
950hasNodeInputsInList(const std::list<NodeGuiPtr> & nodes,

Callers 2

extractTreesFromNodesFunction · 0.70

Calls 4

getNodeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected