SeqAn3  3.2.0-rc.1
The Modern C++ library for sequence analysis.
gapped.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2022, 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 
18 
19 namespace seqan3
20 {
21 
39 template <typename alphabet_t>
41 using gapped = alphabet_variant<alphabet_t, gap>;
42 
43 } // namespace seqan3
44 
45 namespace seqan3::detail
46 {
47 // ---------------------------------------------------------------------------------------------------------------------
48 // is_gapped_alphabet constexpr variable
49 // ---------------------------------------------------------------------------------------------------------------------
50 
53 template <typename t>
54 constexpr bool is_gapped_alphabet = false;
55 
58 template <typename t>
59 constexpr bool is_gapped_alphabet<gapped<t>> = true;
60 
61 } // namespace seqan3::detail
Provides seqan3::alphabet_variant.
Provides seqan3::gap.
alphabet_variant< alphabet_t, gap > gapped
Extends a given alphabet with a gap character.
Definition: gapped.hpp:41
requires requires
The rank_type of the semi-alphabet; defined as the return type of seqan3::to_rank....
Definition: alphabet/concept.hpp:164
Refines seqan3::alphabet and adds assignability.
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29