MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / updateCache

Method updateCache

Source/MIDI/CtrlrMidiInputComparatorMulti.cpp:142–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void CtrlrMidiInputComparatorMulti::updateCache (CtrlrMultiMidiMapIterator &it)
143{
144 CtrlrCacheDataMulti c((*it).first, (*it).second);
145 if (cache.contains (c))
146 {
147 if (cache.indexOf (c) == 0)
148 return;
149 else
150 {
151 cache.swap (cache.indexOf(c), 0);
152 }
153 }
154 else
155 {
156 cache.insert (0, c);
157 cache.resize (cacheSize);
158 }
159}
160
161void CtrlrMidiInputComparatorMulti::timerCallback()
162{

Callers

nothing calls this directly

Calls 5

containsMethod · 0.45
indexOfMethod · 0.45
swapMethod · 0.45
insertMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected