SeqAn3 3.2.0
The Modern C++ library for sequence analysis.
alignment_algorithm_state.hpp
Go to the documentation of this file.
1// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2022, 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
19namespace seqan3::detail
20{
32template <typename score_type>
33 requires arithmetic<score_type> || simd_concept<score_type>
34struct alignment_algorithm_state
35{
37 score_type gap_extension_score{};
39 score_type gap_open_score{};
41 alignment_optimum<score_type> optimum{};
42
44 constexpr void reset_optimum() noexcept
45 {
46 optimum = alignment_optimum<score_type>{};
47 }
48};
49
56template <typename score_type>
57alignment_algorithm_state(score_type, score_type) -> alignment_algorithm_state<score_type>;
59} // 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.
Provides seqan3::simd::simd_concept.