SeqAn3 3.4.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// SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
2// SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
3// SPDX-License-Identifier: BSD-3-Clause
4
10#pragma once
11
12#include <tuple>
13
15
16namespace seqan3::detail
17{
18
21struct search_param
22{
24 uint8_t total{};
26 uint8_t substitution{};
28 uint8_t insertion{};
30 uint8_t deletion{};
31
33 constexpr friend bool operator==(search_param const & lhs, search_param const & rhs) noexcept
34 {
35 return std::tie(lhs.total, lhs.substitution, lhs.insertion, lhs.deletion)
36 == std::tie(rhs.total, rhs.substitution, rhs.insertion, rhs.deletion);
37 }
38
40 constexpr friend bool operator!=(search_param const & lhs, search_param const & rhs) noexcept
41 {
42 return !(lhs == rhs);
43 }
44};
45
46} // namespace seqan3::detail
T operator!=(T... args)
Provides platform and dependency checks.
T tie(T... args)
Hide me