Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
scheduler_view.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "contur/core/error.h"
7#include "contur/core/types.h"
8
10
11namespace contur {
12
22
25 {
26 public:
28 virtual ~ISchedulerView() = default;
29
33 [[nodiscard]] virtual Result<void> render(const TuiSchedulerViewModel &model) = 0;
34 };
35
36} // namespace contur
Scheduler panel renderer contract.
virtual ~ISchedulerView()=default
Virtual destructor for interface-safe polymorphic cleanup.
virtual Result< void > render(const TuiSchedulerViewModel &model)=0
Renders scheduler panel using immutable view model.
A result type that holds either a success value of type T or an ErrorCode.
Definition error.h:104
Error codes and Result<T> type for fallible operations.
Definition block.h:15
std::uint64_t Tick
Simulation clock tick counter.
Definition types.h:18
Immutable scheduler-focused snapshot consumed by TUI views.
Definition tui_models.h:49
View model for scheduler panel rendering.
TuiSchedulerSnapshot scheduler
Scheduler snapshot payload.
Tick currentTick
Tick represented by the panel.
Immutable DTO contracts for the external TUI MVC model layer.
Common type aliases, sentinel constants, and forward declarations used throughout the Contur 2 kernel...