|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Owns the systems of an application, grouped by phase and kept in registration order. More...
#include <headers/guillaume/ecs/system_registry.hpp>


Public Member Functions | |
| SystemRegistry (void)=default | |
| Create a registry with no system. | |
| ~SystemRegistry (void)=default | |
| Destroy the registry and the systems it owns. | |
| void | registerNewSystem (std::unique_ptr< System > system) |
| Take ownership of a system and append it to the list of its phase (System::getPhase). | |
| const std::vector< std::unique_ptr< System > > & | getSystemsByPhase (Phase phase) const |
| Get the systems of a phase, in the order they run. | |
Owns the systems of an application, grouped by phase and kept in registration order.
Application has one registry, filled once at start-up by systems::registerCoreSystems, and shared by every scene. Each frame, for each phase, Application::routine runs the systems returned by getSystemsByPhase() in order.
Definition at line 67 of file system_registry.hpp.
| const std::vector< std::unique_ptr< System > > & guillaume::ecs::SystemRegistry::getSystemsByPhase | ( | Phase | phase | ) | const |
Get the systems of a phase, in the order they run.
| phase | The phase to list. |
| std::out_of_range | When phase is not one of the four phases (Phase::Count, for instance). |
Definition at line 41 of file system_registry.cpp.
| void guillaume::ecs::SystemRegistry::registerNewSystem | ( | std::unique_ptr< System > | system | ) |
Take ownership of a system and append it to the list of its phase (System::getPhase).
Nothing prevents registering two systems of the same type: both are kept and both run.
| system | The system to add. Must not be null. |
| std::out_of_range | When the phase of the system is not one of the four phases (Phase::Count, for instance). |
Definition at line 30 of file system_registry.cpp.
