MCPcopy Create free account
hub / github.com/VCVRack/Rack / Engine_refreshParamHandleCache

Function Engine_refreshParamHandleCache

src/engine/Engine.cpp:476–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474
475
476static void Engine_refreshParamHandleCache(Engine* that) {
477 // Clear cache
478 that->internal->paramHandlesCache.clear();
479 // Add active ParamHandles to cache
480 for (ParamHandle* paramHandle : that->internal->paramHandles) {
481 if (paramHandle->moduleId >= 0) {
482 that->internal->paramHandlesCache[std::make_tuple(paramHandle->moduleId, paramHandle->paramId)] = paramHandle;
483 }
484 }
485}
486
487
488Engine::Engine() {

Callers 2

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected