SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
max_error_common.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2021, 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 
20 
21 namespace seqan3::search_cfg
22 {
23 
28 struct error_count : detail::strong_type<uint8_t,
29  error_count,
30  detail::strong_type_skill::convert | detail::strong_type_skill::comparable>
31 {
33  using detail::strong_type<uint8_t,
35  detail::strong_type_skill::convert | detail::strong_type_skill::comparable>::strong_type;
36 };
37 
42 struct error_rate : detail::strong_type<double,
43  error_rate,
44  detail::strong_type_skill::convert | detail::strong_type_skill::comparable>
45 {
47  using detail::strong_type<double,
48  error_rate,
49  detail::strong_type_skill::convert | detail::strong_type_skill::comparable>::strong_type;
50 };
51 
52 } // namespace seqan3::search_cfg
The Concepts library.
Provides concepts for core language types and relations that don't have concepts in C++20 (yet).
A special sub namespace for the search configurations.
Provides basic data structure for strong types.
A strong type of underlying type uint8_t that represents the number of errors.
Definition: max_error_common.hpp:31
A strong type of underlying type double that represents the rate of errors.
Definition: max_error_common.hpp:45