SeqAn3 3.4.0-rc.4
The Modern C++ library for sequence analysis.
|
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. | |
![]() | |
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. | |
constexpr rank_type | to_rank () const noexcept |
Return the letter's numeric value (rank in the alphabet). | |
constexpr gap & | assign_char (char_type const chr) noexcept |
Assign from a character, implicitly converts invalid characters. | |
constexpr gap & | assign_rank (rank_type const c) noexcept |
Assign from a numeric value. | |
Private Types | |
using | base_t = alphabet_base< gap, 1, char > |
The base class. | |
Static Private Member Functions | |
static constexpr rank_type | char_to_rank (char_type const) |
Returns the rank representation of character. | |
static constexpr char_type | rank_to_char (rank_type const) |
Returns the character representation of rank. | |
Private Attributes | |
friend | base_t |
Befriend seqan3::alphabet_base. | |
Additional Inherited Members | |
![]() | |
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. | |
![]() | |
using | char_type = std::conditional_t< std::same_as< char, void >, char, char > |
The char representation; conditional needed to make semi alphabet definitions legal. | |
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()). | |
![]() | |
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. | |
template<cereal_input_archive archive_t, typename wrapped_alphabet_t > | |
void | load_minimal (archive_t const &, wrapped_alphabet_t &&l, alphabet_rank_t< detail::strip_cereal_wrapper_t< wrapped_alphabet_t > > const &r) |
Restore an alphabet letter from a saved rank. | |
The alphabet of a gap character '-'.
The alphabet always has the same value ('-').
|
no-apiinlinestaticconstexprprivate |
Returns the rank representation of character.
This function is required by seqan3::alphabet_base.
|
no-apiinlinestaticconstexprprivate |
Returns the character representation of rank.
This function is required by seqan3::alphabet_base.