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

Method cacheMatch

Source/MIDI/CtrlrMidiInputComparatorMulti.cpp:111–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111bool CtrlrMidiInputComparatorMulti::cacheMatch ()
112{
113 bool match = false;
114
115 for (int i=0; i<cache.size(); i++)
116 {
117 if (compareMemory(cache[i].key.toMemoryBlock(), messageContainer.getData()))
118 {
119 match = true;
120
121 for (int j=0; j<cache[i].mapData.targets.size(); j++)
122 {
123 cache[i].mapData.targets[j]->getProcessor().setValueFromMIDI (messageContainer, source);
124 owner.multiMidiReceived(messageContainer);
125 }
126
127 break;
128 }
129 }
130
131 return (match);
132}
133
134void CtrlrMidiInputComparatorMulti::updateState(const bool match)
135{

Callers

nothing calls this directly

Calls 7

compareMemoryFunction · 0.85
setValueFromMIDIMethod · 0.80
multiMidiReceivedMethod · 0.80
sizeMethod · 0.45
toMemoryBlockMethod · 0.45
getDataMethod · 0.45
getProcessorMethod · 0.45

Tested by

no test coverage detected