Container class for managing multiple systems.
More...
#include <System.hpp>
|
| template<typename TCallable> |
| void | AddSystem (TCallable callable) |
| | Add a system to the container.
|
Container class for managing multiple systems.
- See also
- FunctionUtils::FunctionContainer
◆ AddSystem()
template<typename TCallable>
| void Engine::SystemContainer::AddSystem |
( |
TCallable | callable | ) |
|
|
inlineprivate |
Add a system to the container.
- Template Parameters
-
| TCallable | Type of the callable system. |
- Parameters
-
| callable | The callable system to be added. |
- See also
- FunctionUtils::CallableFunction
◆ AddSystems()
template<typename... TSystem>
| decltype(auto) Engine::SystemContainer::AddSystems |
( |
TSystem... | systems | ) |
|
|
inline |
Adds systems to the container.
- Template Parameters
-
| ...TSystem | Systems types to add. |
- Parameters
-
| ...systems | Systems to add. |
- Returns
- a tuple of FunctionIDs for the added systems.
- See also
- FunctionUtils::FunctionID
- Todo
- Put the implementation in the inl file
◆ DeleteSystem()
Deletes a system from the container by its FunctionID.
- Parameters
-
| id | The FunctionID of the system to delete. |
- Returns
- A unique pointer to the deleted system, or nullptr if not found.
- See also
- FunctionUtils::FunctionID
- Todo
- Put the implementation in the cpp file, (remove inline)
◆ GetSystems()
| decltype(auto) Engine::SystemContainer::GetSystems |
( |
| ) |
|
|
inline |
Gets the list of systems in the container.
- Returns
- Const reference to the vector of unique pointers to SystemBase.
- Todo
- Put the implementation in the cpp file, (remove inline)
The documentation for this class was generated from the following file: