BioC++ core-0.7.0
The Modern C++ libraries for Bioinformatics.
 
Loading...
Searching...
No Matches
gap.hpp
Go to the documentation of this file.
1// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2022 deCODE Genetics
3// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
4// Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
5// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
6// shipped with this file and also available at: https://github.com/biocpp/biocpp-core/blob/main/LICENSE.md
7// -----------------------------------------------------------------------------------------------------
8
15#pragma once
16
17#include <cassert>
18
19#include <bio/alphabet/base.hpp>
20
21namespace bio::alphabet
22{
23
37class gap : public base<gap, 1ull, char>
38{
39private:
42
44 friend base_t;
45
47 static constexpr char char_value = '-';
48
49public:
53 constexpr gap() noexcept = default;
54 constexpr gap(gap const &) = default;
55 constexpr gap(gap &&) noexcept = default;
56 constexpr gap & operator=(gap const &) = default;
57 constexpr gap & operator=(gap &&) noexcept = default;
58 ~gap() = default;
59
60 using base_t::base_t;
62};
63
64} // namespace bio::alphabet
Provides bio::alphabet::base.
A CRTP-base that makes defining a custom alphabet easier.
Definition: base.hpp:55
The alphabet of a gap character '-'.
Definition: gap.hpp:38
constexpr gap() noexcept=default
Defaulted.
The alphabet module's namespace.
Definition: aa10li.hpp:23