wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
SimulationBlocker.h
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
7
8#pragma once
9
10#include <QObject>
11
12class Simulation;
13
30{
31public:
36 explicit SimulationBlocker(Simulation *simulation);
37
40
41private:
42 Q_DISABLE_COPY(SimulationBlocker)
43
44 Simulation *m_simulation;
45 bool m_restart = false;
46};
SimulationBlocker(Simulation *simulation)
Stops simulation if it was running and records whether to restart.
~SimulationBlocker()
Restarts the simulation if it was running when this blocker was created.
Manages the digital circuit simulation loop.
Definition Simulation.h:38