SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
gap.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 
16 #include <cassert>
17 
19 
20 namespace seqan3
21 {
22 
36 class gap : public alphabet_base<gap, 1, char>
37 {
38 private:
41 
43  friend base_t;
44 
46  static constexpr char_type rank_to_char[1]{'-'};
47 
50 
51 public:
55  constexpr gap() noexcept : base_t{} {}
56  constexpr gap(gap const &) = default;
57  constexpr gap(gap &&) = default;
58  constexpr gap & operator=(gap const &) = default;
59  constexpr gap & operator=(gap &&) = default;
60  ~gap() = default;
61 
62  using base_t::base_t;
64 };
65 
66 }
Provides seqan3::alphabet_base.
A CRTP-base that makes defining a custom alphabet easier.
Definition: alphabet_base.hpp:55
The alphabet of a gap character '-'.
Definition: gap.hpp:37
constexpr gap & operator=(gap &&)=default
Defaulted.
constexpr gap() noexcept
Defaulted.
Definition: gap.hpp:55
static constexpr char_type rank_to_char[1]
Value to char conversion table.
Definition: gap.hpp:46
friend base_t
Befriend seqan3::alphabet_base.
Definition: gap.hpp:43
constexpr gap & operator=(gap const &)=default
Defaulted.
static constexpr std::array< rank_type, 256 > char_to_rank
Char to value conversion table.
Definition: gap.hpp:49
constexpr gap(gap const &)=default
Defaulted.
~gap()=default
Defaulted.
constexpr gap(gap &&)=default
Defaulted.
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29