39 template <
typename derived_type, auto size>
74 template <typename other_nucl_type>
83 detail::convert_through_char_representation<derived_type, other_nucl_type>[
seqan3::to_rank(other)];
109 return derived_type::complement_table[
to_rank()];
147 for (uint8_t c : derived_type::rank_to_char)
Provides seqan3::detail::convert_through_char_representation.
Provides seqan3::nucleotide_alphabet.
Provides seqan3::alphabet_base.
A CRTP-base that makes defining a custom alphabet easier.
Definition: alphabet_base.hpp:55
constexpr rank_type to_rank() const noexcept
Return the letter's numeric value (rank in the alphabet).
Definition: alphabet_base.hpp:132
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.
Definition: alphabet_base.hpp:197
A CRTP-base that refines seqan3::alphabet_base and is used by the nucleotides.
Definition: nucleotide_base.hpp:41
static constexpr std::array< bool, 256 > valid_char_table
Implementation of char_is_valid().
Definition: nucleotide_base.hpp:140
friend derived_type
Befriend the derived_type so it can instantiate.
Definition: nucleotide_base.hpp:58
static constexpr bool char_is_valid(char_type const c) noexcept
Validate whether a character value has a one-to-one mapping to an alphabet value.
Definition: nucleotide_base.hpp:132
constexpr nucleotide_base() noexcept=default
Defaulted.
constexpr derived_type complement() const noexcept
Return the complement of the letter.
Definition: nucleotide_base.hpp:107
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition: concept.hpp:146
A concept that indicates whether an alphabet represents nucleotides.
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
constexpr char_type to_lower(char_type const c) noexcept
Converts 'A'-'Z' to 'a'-'z' respectively; other characters are returned as is.
Definition: transform.hpp:81
SeqAn specific customisations in the standard namespace.