SeqAn3  3.0.2
The Modern C++ library for sequence analysis.
max_error_common.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 
18 #include <seqan3/std/concepts>
19 
20 namespace seqan3::search_cfg
21 {
22 
27 struct error_count : detail::strong_type<uint8_t,
28  error_count,
29  detail::strong_type_skill::convert | detail::strong_type_skill::comparable>
30 {
32  using detail::strong_type<uint8_t,
34  detail::strong_type_skill::convert | detail::strong_type_skill::comparable>::strong_type;
35 };
36 
41 struct error_rate : detail::strong_type<double,
42  error_rate,
43  detail::strong_type_skill::convert | detail::strong_type_skill::comparable>
44 {
46  using detail::strong_type<double,
47  error_rate,
48  detail::strong_type_skill::convert | detail::strong_type_skill::comparable>::strong_type;
49 };
50 
51 } // namespace seqan3::search_cfg
strong_type.hpp
Provides basic data structure for strong types.
concepts
The Concepts library.
seqan3::search_cfg
A special sub namespace for the search configurations.
seqan3::search_cfg::error_rate
A strong type of underlying type double that represents the rate of errors.
Definition: max_error_common.hpp:44
seqan3::search_cfg::error_count
A strong type of underlying type uint8_t that represents the number of errors.
Definition: max_error_common.hpp:30
core_language.hpp
Provides concepts for core language types and relations that don't have concepts in C++20 (yet).
seqan3::views::convert
auto const convert
A view that converts each element in the input range (implicitly or via static_cast).
Definition: convert.hpp:71