MCPcopy Create free account
hub / github.com/cvut/qtrvsim / update_all

Method update_all

src/gui/windows/program/programmodel.cpp:146–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void ProgramModel::update_all() {
147 const machine::FrontendMemory *mem;
148 mem = mem_access();
149 if (mem != nullptr) {
150 memory_change_counter = mem->get_change_counter();
151 if (machine->cache_program() != nullptr) {
152 cache_program_change_counter = machine->cache_program()->get_change_counter();
153 }
154 }
155 stages_need_update = false;
156 emit dataChanged(index(0, 0), index(rowCount() - 1, columnCount() - 1));
157}
158
159void ProgramModel::check_for_updates() {
160 bool need_update = stages_need_update;

Callers

nothing calls this directly

Calls 2

cache_programMethod · 0.80
get_change_counterMethod · 0.45

Tested by

no test coverage detected