SeqAn3  3.0.2
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 char_value = '-';
47 
48 public:
52  constexpr gap() noexcept : base_t{} {}
53  constexpr gap(gap const &) = default;
54  constexpr gap(gap &&) = default;
55  constexpr gap & operator=(gap const &) = default;
56  constexpr gap & operator=(gap &&) = default;
57  ~gap() = default;
58 
59  using base_t::base_t;
61 };
62 
63 }
seqan3::gap
The alphabet of a gap character '-'.
Definition: gap.hpp:37
alphabet_base.hpp
Provides seqan3::alphabet_base.
seqan3::gap::operator=
constexpr gap & operator=(gap const &)=default
Defaulted.
seqan3::alphabet_base
A CRTP-base that makes defining a custom alphabet easier.
Definition: alphabet_base.hpp:54
seqan3::gap::operator=
constexpr gap & operator=(gap &&)=default
Defaulted.
seqan3
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
seqan3::gap::gap
constexpr gap() noexcept
Defaulted.
Definition: gap.hpp:52
seqan3::gap::gap
constexpr gap(gap &&)=default
Defaulted.
cassert
seqan3::gap::~gap
~gap()=default
Defaulted.
seqan3::gap::gap
constexpr gap(gap const &)=default
Defaulted.