SeqAn3 3.1.0
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
21namespace seqan3::search_cfg
22{
23
29struct error_count : detail::strong_type<uint8_t,
30 error_count,
31 detail::strong_type_skill::convert | detail::strong_type_skill::comparable>
32{
34 using detail::strong_type<uint8_t,
36 detail::strong_type_skill::convert | detail::strong_type_skill::comparable>::strong_type;
37};
38
44struct error_rate : detail::strong_type<double,
45 error_rate,
46 detail::strong_type_skill::convert | detail::strong_type_skill::comparable>
47{
49 using detail::strong_type<double,
51 detail::strong_type_skill::convert | detail::strong_type_skill::comparable>::strong_type;
52};
53
54} // namespace seqan3::search_cfg
The <concepts> header from C++20's standard 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:32
A strong type of underlying type double that represents the rate of errors.
Definition: max_error_common.hpp:47