SeqAn3  3.0.2
The Modern C++ library for sequence analysis.
search_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 
13 #pragma once
14 
15 #include <tuple>
16 
17 #include <seqan3/core/platform.hpp>
18 
19 namespace seqan3::detail
20 {
21 
23 struct search_param
24 {
26  uint8_t total{};
28  uint8_t substitution{};
30  uint8_t insertion{};
32  uint8_t deletion{};
33 
35  constexpr friend bool operator==(search_param const & lhs, search_param const & rhs) noexcept
36  {
37  return std::tie(lhs.total, lhs.substitution, lhs.insertion, lhs.deletion) ==
38  std::tie(rhs.total, rhs.substitution, rhs.insertion, rhs.deletion);
39  }
40 
42  constexpr friend bool operator!=(search_param const & lhs, search_param const & rhs) noexcept
43  {
44  return !(lhs == rhs);
45  }
46 };
47 
48 } // namespace seqan3::detail
std::rel_ops::operator!=
T operator!=(T... args)
tuple
std::tie
T tie(T... args)
platform.hpp
Provides platform and dependency checks.