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

Method getCachedIndex

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

Source from the content-addressed store, hash-verified

455}
456
457int DspNetwork::getCachedIndex(const var& indexExpression) const
458{
459 if (indexExpression.isString())
460 {
461 for (int i = 0; i < nodes.size(); i++)
462 {
463 if (nodes[i]->getId() == indexExpression.toString())
464 return i;
465 }
466 }
467
468 return (int)indexExpression;
469}
470
471
472scriptnode::NodeBase::Holder* DspNetwork::getCurrentHolder() const

Callers

nothing calls this directly

Calls 4

isStringMethod · 0.45
sizeMethod · 0.45
getIdMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected