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

Method get

hi_scripting/scripting/scriptnode/api/DspNetwork.cpp:725–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725var DspNetwork::get(var idOrNode) const
726{
727 checkValid();
728
729 if(auto n = dynamic_cast<NodeBase*>(idOrNode.getObject()))
730 return idOrNode;
731
732 auto id = idOrNode.toString();
733
734 if (id.isEmpty())
735 return {};
736
737 if (id == getId())
738 return var(getRootNode());
739
740 auto& listToUse = currentNodeHolder != nullptr ? currentNodeHolder->nodes : nodes;
741
742 for (auto n : listToUse)
743 {
744 if (n->getId() == id)
745 return var(n);
746 }
747
748 return {};
749}
750
751void DspNetwork::clear(bool removeNodesFromSignalChain, bool removeUnusedNodes)
752{

Callers 15

DspNetworkMethod · 0.45
getAssignedValueMethod · 0.45
getCurrentHolderMethod · 0.45
hasTailMethod · 0.45
isSuspendedOnSilenceMethod · 0.45
createFromValueTreeMethod · 0.45
getActiveNetworkMethod · 0.45
getDebuggedNetworkMethod · 0.45
createNodeMethod · 0.45
SelectionUpdaterMethod · 0.45

Calls 6

getIdFunction · 0.85
varFunction · 0.85
getObjectMethod · 0.45
toStringMethod · 0.45
isEmptyMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected