SeqAn3  3.0.1
The Modern C++ library for sequence analysis.
execution_handler_sequential.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
4 // This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5 // shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
6 // -----------------------------------------------------------------------------------------------------
7 
13 #pragma once
14 
15 #include <functional>
16 
18 #include <seqan3/core/platform.hpp>
20 #include <seqan3/std/concepts>
21 #include <seqan3/std/ranges>
22 
23 namespace seqan3::detail
24 {
25 
29 struct execution_handler_sequential
30 {
31 public:
32 
43  template <typename algorithm_t, indexed_sequence_pair_range indexed_sequence_pairs_t, typename delegate_type>
44  void execute(algorithm_t && algorithm,
45  indexed_sequence_pairs_t && indexed_sequence_pairs,
46  delegate_type && delegate)
47  {
48  delegate(algorithm(std::forward<indexed_sequence_pairs_t>(indexed_sequence_pairs)));
49  }
50 
52  void wait() noexcept
53  {
54  // noop
55  }
56 };
57 
58 } // namespace seqan3
functional
concepts
The Concepts library.
type_reduce.hpp
Provides seqan3::views::type_reduce.
concept.hpp
Provides concepts needed internally for the alignment algorithms.
ranges
Adaptations of concepts from the Ranges TS.
platform.hpp
Provides platform and dependency checks.