SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
align_config_scoring_scheme.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 
14 #pragma once
15 
16 #include <seqan3/std/concepts>
17 
22 
23 namespace seqan3::align_cfg
24 {
25 
43 template <std::semiregular scoring_scheme_t>
44 struct scoring_scheme : public pipeable_config_element<scoring_scheme<scoring_scheme_t>>
45 {
47  scoring_scheme_t scheme{};
48 
52  constexpr scoring_scheme() = default;
53  constexpr scoring_scheme(scoring_scheme const &) = default;
54  constexpr scoring_scheme(scoring_scheme &&) = default;
55  constexpr scoring_scheme & operator=(scoring_scheme const &) = default;
56  constexpr scoring_scheme & operator=(scoring_scheme &&) = default;
57  ~scoring_scheme() = default;
58 
66  explicit constexpr scoring_scheme(scoring_scheme_t scheme) : scheme{std::move(scheme)}
67  {}
69 
73 };
74 
81 template <typename scheme_t>
84 
85 } // namespace seqan3::align_cfg
Provides some utility functions for the alignment configurations.
The Concepts library.
align_config_id
An internal enum to check for a consistent configuration object.
Definition: detail.hpp:24
@ scoring
ID for the scoring_scheme option.
auto const move
A view that turns lvalue-references into rvalue-references.
Definition: move.hpp:70
A special sub namespace for the alignment configurations.
Definition: align_config_band.hpp:25
SeqAn specific customisations in the standard namespace.
Provides seqan3::pipeable_config_element.
Provides seqan3::scoring_scheme_for.
Sets the scoring scheme for the alignment algorithm.
Definition: align_config_scoring_scheme.hpp:45
constexpr scoring_scheme(scoring_scheme_t scheme)
Initialises the scoring scheme config with the given scheme.
Definition: align_config_scoring_scheme.hpp:66
scoring_scheme_t scheme
The scoring scheme to be used in the alignment algorithm.
Definition: align_config_scoring_scheme.hpp:47
constexpr scoring_scheme & operator=(scoring_scheme const &)=default
Defaulted.
constexpr scoring_scheme & operator=(scoring_scheme &&)=default
Defaulted.
constexpr scoring_scheme()=default
Defaulted.
constexpr scoring_scheme(scoring_scheme const &)=default
Defaulted.
constexpr scoring_scheme(scoring_scheme &&)=default
Defaulted.
~scoring_scheme()=default
Defaulted.
scoring_scheme(scheme_t) -> scoring_scheme< std::remove_cvref_t< scheme_t >>
Deduces the scoring scheme type from the constructor argument.
Provides various type traits on generic types.