SeqAn3  3.0.2
The Modern C++ library for sequence analysis.
alignment_algorithm_state.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 
19 
20 namespace seqan3::detail
21 {
33 template <typename score_type>
35  requires arithmetic<score_type> || simd_concept<score_type>
37 struct alignment_algorithm_state
38 {
40  score_type gap_extension_score{};
42  score_type gap_open_score{};
44  alignment_optimum<score_type> optimum{};
45 
47  constexpr void reset_optimum() noexcept
48  {
49  optimum = alignment_optimum<score_type>{};
50  }
51 };
52 
58 template <typename score_type>
60 alignment_algorithm_state(score_type, score_type) -> alignment_algorithm_state<score_type>;
62 } // namespace seqan3::detail
concept.hpp
Provides seqan3::simd::simd_concept.
core_language.hpp
Provides concepts for core language types and relations that don't have concepts in C++20 (yet).
alignment_optimum.hpp
Provides seqan3::detail::alignment_optimum.
arithmetic
A type that satisfies std::is_arithmetic_v<t>.
alignment_coordinate.hpp
Provides seqan3::detail::alignment_coordinate.