SeqAn3 3.3.0-rc.1
The Modern C++ library for sequence analysis.
 
Loading...
Searching...
No Matches
search_common.hpp
Go to the documentation of this file.
1// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2022, 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 <tuple>
16
18
19namespace seqan3::detail
20{
21
25{
27 uint8_t total{};
29 uint8_t substitution{};
31 uint8_t insertion{};
33 uint8_t deletion{};
34
36 constexpr friend bool operator==(search_param const & lhs, search_param const & rhs) noexcept
37 {
38 return std::tie(lhs.total, lhs.substitution, lhs.insertion, lhs.deletion)
39 == std::tie(rhs.total, rhs.substitution, rhs.insertion, rhs.deletion);
40 }
41
43 constexpr friend bool operator!=(search_param const & lhs, search_param const & rhs) noexcept
44 {
45 return !(lhs == rhs);
46 }
47};
48
49} // namespace seqan3::detail
The internal SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
Provides platform and dependency checks.
Object grouping numbers of errors for different kind of error types.
Definition: search_common.hpp:25
uint8_t insertion
Total number of insertion errors.
Definition: search_common.hpp:31
uint8_t total
Total number of errors (upper bound over all error types).
Definition: search_common.hpp:27
constexpr friend bool operator!=(search_param const &lhs, search_param const &rhs) noexcept
Returns true if any member variable of lhs and rhs are not equal, false otherwise.
Definition: search_common.hpp:43
uint8_t deletion
Total number of deletion errors.
Definition: search_common.hpp:33
constexpr friend bool operator==(search_param const &lhs, search_param const &rhs) noexcept
Returns true if all member variables of lhs and rhs are equal, false otherwise.
Definition: search_common.hpp:36
uint8_t substitution
Total number of substitution errors.
Definition: search_common.hpp:29
T tie(T... args)