SeqAn3
3.0.1
The Modern C++ library for sequence analysis.
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
scoring_scheme_concept.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
15
#include <
seqan3/alphabet/concept.hpp
>
16
17
namespace
seqan3
18
{
19
57
60
template
<
typename
t, alphabet alphabet_t, alphabet alphabet2_t = alphabet_t>
61
SEQAN3_CONCEPT
scoring_scheme
= requires (t scheme,
62
alphabet_t
const
alph1,
63
alphabet2_t
const
alph2)
64
{
65
{ scheme.
score
(alph1, alph2) };
66
requires
std::common_reference_with
<decltype(scheme.score(alph1, alph2)),
67
typename
std::remove_reference_t<t>::score_type
>;
68
69
{ scheme.score(alphabet_t{}, alphabet2_t{}) };
70
requires
std::common_reference_with
<decltype(scheme.score(alphabet_t{}, alphabet2_t{})),
71
typename
std::remove_reference_t<t>::score_type
>;
72
};
74
75
}
// namespace seqan3
scoring_scheme
A concept that requires that type be able to score two letters.
common_reference_with
The concept std::common_reference_with<T, U> specifies that two types T and U share a common referenc...
seqan3
The main SeqAn3 namespace.
Definition:
aligned_sequence_concept.hpp:36
std::remove_reference_t
scoring_scheme::score
score_type score(alph1_t const alph1, alph2_t const alph2)
Compute the score of two letters.
concept.hpp
Core alphabet concept and free function/type trait wrappers.
Version:
main_user
main_dev
3.4.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
seqan3
alignment
scoring
scoring_scheme_concept.hpp
Generated on Tue Feb 18 2020 09:33:17 for SeqAn3 by
1.8.16