Handles the sequential execution of algorithms.
More...
#include <seqan3/core/algorithm/detail/execution_handler_sequential.hpp>
|
template<std::copy_constructible algorithm_t, std::ranges::input_range algorithm_input_range_t, std::copy_constructible callback_t> |
void | bulk_execute (algorithm_t &&algorithm, algorithm_input_range_t &&input_range, callback_t &&callback) |
| Sequentially executes the algorithm for every element of the given input range. More...
|
|
template<typename algorithm_t , typename algorithm_input_t , typename callback_t > |
void | execute (algorithm_t &&algorithm, algorithm_input_t &&input, callback_t &&callback) |
| Executes the algorithm with the given input and callback. More...
|
|
void | wait () noexcept |
| Waits for the submitted jobs to finish (noop).
|
|
Handles the sequential execution of algorithms.
This execution handler implements a blocking execute. This means a call to seqan3::detail::execution_handler_sequential::execute blocks until the call to the algorithm finished. This handler can be used in combination with the seqan3::detail::algorithm_executor_blocking to invoke the algorithms on the given algorithm input.
◆ bulk_execute()
template<std::copy_constructible algorithm_t, std::ranges::input_range algorithm_input_range_t, std::copy_constructible callback_t>
void seqan3::detail::execution_handler_sequential::bulk_execute |
( |
algorithm_t && |
algorithm, |
|
|
algorithm_input_range_t && |
input_range, |
|
|
callback_t && |
callback |
|
) |
| |
|
inline |
Sequentially executes the algorithm for every element of the given input range.
- Template Parameters
-
algorithm_t | The type of the algorithm. |
algorithm_input_range_t | The input range type. |
callback_t | The type of the callable invoked by the algorithm after generating a new result. |
- Parameters
-
[in] | algorithm | The algorithm to invoke. |
[in] | input_range | The input range to process sequentially. |
[in] | callback | A callable which will be invoked on each result generated by the algorithm for a given input. |
Effectively calls seqan3::detail::execution_handler_sequential::execute on every element of the given input range.
◆ execute()
template<typename algorithm_t , typename algorithm_input_t , typename callback_t >
void seqan3::detail::execution_handler_sequential::execute |
( |
algorithm_t && |
algorithm, |
|
|
algorithm_input_t && |
input, |
|
|
callback_t && |
callback |
|
) |
| |
|
inline |
Executes the algorithm with the given input and callback.
- Template Parameters
-
algorithm_t | The type of the algorithm. |
algorithm_input_t | The input type to invoke the algorithm with. |
callback_t | The type of the callable invoked by the algorithm after generating a new result. |
- Parameters
-
[in] | algorithm | The algorithm to invoke. |
[in] | input | The input of the algorithm. |
[in] | callback | A callable which will be invoked on each result generated by the algorithm. |
The documentation for this struct was generated from the following file: