41 template <
typename derived_type, auto size>
80 template <typename other_nucl_type>
89 detail::convert_through_char_representation<derived_type, other_nucl_type>[
seqan3::to_rank(other)];
159 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:57
constexpr rank_type to_rank() const noexcept
Return the letter's numeric value (rank in the alphabet).
Definition: alphabet_base.hpp:139
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:203
rank_type rank
The value of the alphabet letter is stored as the rank.
Definition: alphabet_base.hpp:265
A CRTP-base that refines seqan3::alphabet_base and is used by the nucleotides.
Definition: nucleotide_base.hpp:43
static constexpr std::array< bool, 256 > valid_char_table
Implementation of char_is_valid().
Definition: nucleotide_base.hpp:150
friend derived_type
Befriend the derived_type so it can instantiate.
Definition: nucleotide_base.hpp:61
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:142
constexpr nucleotide_base() noexcept=default
Defaulted.
constexpr derived_type complement() const noexcept
Return the complement of the letter.
Definition: nucleotide_base.hpp:115
constexpr auto alphabet_size
A type trait that holds the size of a (semi-)alphabet.
Definition: concept.hpp:858
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition: concept.hpp:155
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.