SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
align_config_score_type.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
15
16namespace seqan3::align_cfg
17{
31template <arithmetic score_t>
33{
34public:
35 static_assert(std::floating_point<score_t> || std::signed_integral<score_t>,
36 "The selected score type must be a signed integral type or floating point type.");
37
39 using type = score_t;
40
44 constexpr score_type() = default;
45 constexpr score_type(score_type const &) = default;
46 constexpr score_type(score_type &&) = default;
47 constexpr score_type & operator=(score_type const &) = default;
48 constexpr score_type & operator=(score_type &&) = default;
49 ~score_type() = default;
50
52
55 static constexpr seqan3::detail::align_config_id id{seqan3::detail::align_config_id::score_type};
56};
57
58} // namespace seqan3::align_cfg
Provides some utility functions for the alignment configurations.
A configuration element to set the score type used in the alignment algorithm.
Definition align_config_score_type.hpp:33
~score_type()=default
Defaulted.
constexpr score_type(score_type const &)=default
Defaulted.
constexpr score_type(score_type &&)=default
Defaulted.
constexpr score_type & operator=(score_type &&)=default
Defaulted.
score_t type
The selected score type.
Definition align_config_score_type.hpp:39
constexpr score_type()=default
Defaulted.
constexpr score_type & operator=(score_type const &)=default
Defaulted.
A special sub namespace for the alignment configurations.
Definition align_config_band.hpp:22
Provides seqan3::pipeable_config_element.
Adds pipe interface to configuration elements.
Definition pipeable_config_element.hpp:29
Provides concepts that do not have equivalents in C++20.
Hide me