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

Method ProgramModel

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

Source from the content-addressed store, hash-verified

5using ae = machine::AccessEffects; // For enum values, the type is obvious from context.
6
7ProgramModel::ProgramModel(QObject *parent) : Super(parent), data_font("Monospace") {
8 index0_offset = machine::Address::null();
9 data_font.setStyleHint(QFont::TypeWriter);
10 machine = nullptr;
11 memory_change_counter = 0;
12 cache_program_change_counter = 0;
13 for (auto &i : stage_addr) {
14 i = machine::STAGEADDR_NONE;
15 }
16 stages_need_update = false;
17}
18
19const machine::FrontendMemory *ProgramModel::mem_access() const {
20 if (machine == nullptr) { return nullptr; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected