A function object used to iterate over all the tasks of an element.
More...
#include <xentara/model/ForEachTaskFunction.hpp>
A function object used to iterate over all the tasks of an element.
- See also
- skill::Element::forEachTask()
◆ result_type
◆ ForEachTaskFunction()
xentara::model::ForEachTaskFunction::ForEachTaskFunction |
( |
Callable && |
callable | ) |
|
Constructor that sets the callable to be called.
- Parameters
-
callable | The callable to be called for each task. The return type must be bool, and must evaluate to true to stop iterating over the tasks, or to false to continue iterating. |
◆ operator()() [1/2]
Function call operator that takes a task role instead of an explicit UUID and name.
- Parameters
-
role | The role of the task. |
task | The task itself. |
- Returns
- Returns true to stop iterating over the tasks.
◆ operator()() [2/2]
Function call operator.
- Parameters
-
uuid | The UUID of the task. |
name | The name of the task. |
task | The task itself. |
- Returns
- Returns true to stop iterating over the tasks.