#include <Core/Tasks/Task.hpp>
A wrapper for a task around a std::function, which must be of type void(void) The process() method will simply call the provided function. Use std::bind to bind the arguments to the function object when creating the task.
Definition at line 29 of file Task.hpp.
◆ FunctionTask()
Create a function task.
Definition at line 33 of file Task.hpp.
◆ getName()
virtual std::string Ra::Core::FunctionTask::getName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ process()
virtual void Ra::Core::FunctionTask::process |
( |
| ) |
|
|
inlineoverridevirtual |
◆ m_f
◆ m_name
The function to call.
Definition at line 44 of file Task.hpp.
The documentation for this class was generated from the following file:
- /home/runner/work/Radium-Engine/Radium-Engine/src/Radium-Engine/src/Core/Tasks/Task.hpp