SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
alignment_algorithm_state.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2021, 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 
18 
19 namespace seqan3::detail
20 {
32 template <typename score_type>
34  requires arithmetic<score_type> || simd_concept<score_type>
36 struct alignment_algorithm_state
37 {
39  score_type gap_extension_score{};
41  score_type gap_open_score{};
43  alignment_optimum<score_type> optimum{};
44 
46  constexpr void reset_optimum() noexcept
47  {
48  optimum = alignment_optimum<score_type>{};
49  }
50 };
51 
58 template <typename score_type>
59 alignment_algorithm_state(score_type, score_type) -> alignment_algorithm_state<score_type>;
61 } // namespace seqan3::detail
Provides seqan3::detail::alignment_optimum.
Provides concepts for core language types and relations that don't have concepts in C++20 (yet).
A type that satisfies std::is_arithmetic_v<t>.
Provides seqan3::simd::simd_concept.