Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
memory_map_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 ~IMemoryMapView() = default;
29
33 [[nodiscard]] virtual Result<void> render(const TuiMemoryMapViewModel &model) = 0;
34 };
35
36} // namespace contur
Memory map panel renderer contract.
virtual ~IMemoryMapView()=default
Virtual destructor for interface-safe polymorphic cleanup.
virtual Result< void > render(const TuiMemoryMapViewModel &model)=0
Renders memory 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
View model for memory panel rendering.
Tick currentTick
Tick represented by the panel.
TuiMemorySnapshot memory
Memory snapshot payload.
Immutable memory-focused snapshot consumed by TUI views.
Definition tui_models.h:74
Immutable DTO contracts for the external TUI MVC model layer.
Common type aliases, sentinel constants, and forward declarations used throughout the Contur 2 kernel...