How fschuetz04/simcpp20 works
Project type and purpose
• SimCpp20 is an open-source, header-only discrete-event simulation framework written in modern C++20.
• Its purpose is to let users define coroutine-based “processes” that yield to a central scheduler, modeling events, resources, and queues over simulated time.
File structure
• Top-level files and dirs:
• CMakeLists.txt / CMakeSettings.json: cross-platform build integration
• /fschuetz04/simcpp20: core library headers (awaitable.hpp, event.hpp, process.hpp, promise_type.hpp, resource.hpp, simulation.hpp, store.hpp, value_event.hpp, value_process.hpp)
• examples: sample apps showing clocks, stores, resources, processes
• tests: unit tests for awaitables, resources, stores
• No backend/frontend split—instead it’s a single library plus clients (examples/tests).
• The core is implemented as C++20 coroutines with a custom promise_type and scheduler living in simulation.hpp.
README for additional insights
• The README calls out: “processes are defined as coroutines returning simcpp20::process<>,” “requires C++20,” “use CMake with FetchContent.”
Detail is key—capture all essential elements
• Lifecycle of a process: spawn → wait → resume → complete
• Internal data structures: priority queue for events, resource queues, store buffers
• Build integration: CMake target fschuetz04::simcpp20 consumed by examples and tests