The alphabet of a gap character '-'. More...
#include <seqan3/alphabet/gap/gap.hpp>
Public Member Functions | |
Constructors, destructor and assignment | |
constexpr | gap () noexcept |
Defaulted. | |
constexpr | gap (gap const &)=default |
Defaulted. | |
constexpr | gap (gap &&)=default |
Defaulted. | |
constexpr gap & | operator= (gap const &)=default |
Defaulted. | |
constexpr gap & | operator= (gap &&)=default |
Defaulted. | |
~gap ()=default | |
Defaulted. | |
Public Member Functions inherited from seqan3::alphabet_base< gap, 1, char > | |
constexpr | alphabet_base () noexcept=default |
Defaulted. | |
constexpr | alphabet_base (alphabet_base const &) noexcept=default |
Defaulted. | |
constexpr | alphabet_base (alphabet_base &&) noexcept=default |
Defaulted. | |
constexpr alphabet_base & | operator= (alphabet_base const &) noexcept=default |
Defaulted. | |
constexpr alphabet_base & | operator= (alphabet_base &&) noexcept=default |
Defaulted. | |
~alphabet_base () noexcept=default | |
Defaulted. | |
constexpr char_type | to_char () const noexcept |
Return the letter as a character of char_type. More... | |
constexpr rank_type | to_rank () const noexcept |
Return the letter's numeric value (rank in the alphabet). More... | |
constexpr gap & | assign_char (char_type const c) noexcept |
Assign from a character, implicitly converts invalid characters. More... | |
constexpr gap & | assign_rank (rank_type const c) noexcept |
Assign from a numeric value. More... | |
Private Types | |
using | base_t = alphabet_base< gap, 1, char > |
The base class. | |
Private Attributes | |
friend | base_t |
Befriend seqan3::alphabet_base. | |
Static Private Attributes | |
static constexpr std::array< rank_type, 256 > | char_to_rank {} |
Char to value conversion table. | |
static constexpr char_type | rank_to_char [1] {'-'} |
Value to char conversion table. | |
Additional Inherited Members | |
Static Public Attributes inherited from seqan3::alphabet_base< gap, 1, char > | |
static constexpr detail::min_viable_uint_t< size > | alphabet_size |
The size of the alphabet, i.e. the number of different values it can take. More... | |
Protected Types inherited from seqan3::alphabet_base< gap, 1, char > | |
using | char_type = std::conditional_t< std::same_as< char, void >, char, char > |
The char representation; conditional needed to make semi alphabet definitions legal. More... | |
using | rank_type = detail::min_viable_uint_t< size - 1 > |
The type of the alphabet when represented as a number (e.g. via to_rank()). More... | |
Related Functions inherited from semialphabet | |
template<cereal_output_archive archive_t, semialphabet alphabet_t> | |
alphabet_rank_t< alphabet_t > | save_minimal (archive_t const &, alphabet_t const &l) |
Save an alphabet letter to stream. More... | |
The alphabet of a gap character '-'.
The alphabet always has the same value ('-').