MCPcopy Create free account
hub / github.com/christophhart/HISE / matchesConnection

Method matchesConnection

hi_scripting/scripting/scriptnode/api/NodeBase.cpp:1329–1342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1327}
1328
1329bool NodeBase::Parameter::matchesConnection(const ValueTree& c) const
1330{
1331 if (c.hasType(PropertyIds::Node))
1332 {
1333 auto isParent = parent->getValueTree() == c;
1334 auto isParentOfParent = parent->getValueTree().isAChildOf(c);
1335
1336 return isParent || isParentOfParent;
1337 }
1338
1339 auto matchesNode = c[PropertyIds::NodeId].toString() == parent->getId();
1340 auto matchesParameter = c[PropertyIds::ParameterId].toString() == getId();
1341 return matchesNode && matchesParameter;
1342}
1343
1344juce::Array<NodeBase::Parameter*> NodeBase::Parameter::getConnectedMacroParameters() const
1345{

Callers 1

isConnectedToSourceMethod · 0.45

Calls 5

getIdFunction · 0.85
isAChildOfMethod · 0.80
getValueTreeMethod · 0.45
toStringMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected