38template <
typename derived_type, auto size>
77 template <typename other_nucl_type>
83 detail::convert_through_char_representation<other_nucl_type, derived_type>[
seqan3::to_rank(other)];
153 for (
size_t rank = 0u;
rank < derived_type::alphabet_size; ++
rank)
155 uint8_t c = derived_type::rank_to_char(
rank);
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:54
constexpr rank_type to_rank() const noexcept
Return the letter's numeric value (rank in the alphabet).
Definition alphabet_base.hpp:134
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:196
rank_type rank
The value of the alphabet letter is stored as the rank.
Definition alphabet_base.hpp:258
A CRTP-base that refines seqan3::alphabet_base and is used by the nucleotides.
Definition nucleotide_base.hpp:40
static constexpr std::array< bool, 256 > valid_char_table
Implementation of seqan3::nucleotide_base::char_is_valid().
Definition nucleotide_base.hpp:145
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:136
constexpr nucleotide_base() noexcept=default
Defaulted.
constexpr derived_type complement() const noexcept
Return the complement of the letter.
Definition nucleotide_base.hpp:109
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition alphabet/concept.hpp:152
A concept that indicates whether an alphabet represents nucleotides.
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
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:80
SeqAn specific customisations in the standard namespace.