SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
alignment_algorithm_state.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
2// SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
3// SPDX-License-Identifier: BSD-3-Clause
4
10#pragma once
11
14#include <seqan3/utility/simd/concept.hpp>
15
16namespace seqan3::detail
17{
29template <typename score_type>
30 requires arithmetic<score_type> || simd_concept<score_type>
31struct alignment_algorithm_state
32{
34 score_type gap_extension_score{};
36 score_type gap_open_score{};
38 alignment_optimum<score_type> optimum{};
39
41 constexpr void reset_optimum() noexcept
42 {
43 optimum = alignment_optimum<score_type>{};
44 }
45};
46
53template <typename score_type>
54alignment_algorithm_state(score_type, score_type) -> alignment_algorithm_state<score_type>;
56} // namespace seqan3::detail
Provides seqan3::detail::alignment_optimum.
A type that satisfies std::is_arithmetic_v<t>.
Provides concepts that do not have equivalents in C++20.
Hide me