Loading...
Searching...
No Matches
gap.hpp
Go to the documentation of this file.
// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include <cassert>
#include <seqan3/alphabet/alphabet_base.hpp>
namespace seqan3
{
class gap : public alphabet_base<gap, 1, char>
{
private:
using base_t = alphabet_base<gap, 1, char>;
friend base_t;
static constexpr char_type rank_to_char(rank_type const)
{
return '-';
}
static constexpr rank_type char_to_rank(char_type const)
{
return 0;
}
public:
constexpr gap() noexcept : base_t{}
{}
constexpr gap(gap const &) = default;
constexpr gap(gap &&) = default;
constexpr gap & operator=(gap const &) = default;
constexpr gap & operator=(gap &&) = default;
~gap() = default;
using base_t::base_t;
};
} // namespace seqan3
alphabet_base.hpp
Provides seqan3::alphabet_base.
cassert
seqan3::alphabet_base< gap, 1, char >::alphabet_base
constexpr alphabet_base() noexcept=default
seqan3::alphabet_base< gap, 1, char >::rank_type
detail::min_viable_uint_t< size - 1 > rank_type
Definition alphabet_base.hpp:77
seqan3::alphabet_base< gap, 1, char >::char_type
std::conditional_t< std::same_as< char, void >, char, char > char_type
Definition alphabet_base.hpp:69
seqan3::gap::gap
constexpr gap() noexcept
Defaulted.
Definition gap.hpp:60
seqan3::gap::operator=
constexpr gap & operator=(gap &&)=default
Defaulted.
seqan3::gap::gap
constexpr gap(gap const &)=default
Defaulted.
seqan3::gap::operator=
constexpr gap & operator=(gap const &)=default
Defaulted.
seqan3::gap::~gap
~gap()=default
Defaulted.
seqan3::gap::gap
constexpr gap(gap &&)=default
Defaulted.
seqan3
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
Hide me