94 constexpr
dna15 & operator=(
dna15 const &) =
default;
95 constexpr
dna15 & operator=(
dna15 &&) =
default;
101 template <std::Same<rna15> t>
102 constexpr
dna15(t
const & r) noexcept
132 static constexpr std::array<rank_type, 256> char_to_rank
136 std::array<rank_type, 256> ret{};
143 for (
size_t rnk = 0u; rnk <
value_size; ++rnk)
145 ret[ rank_to_char[rnk] ] = rnk;
146 ret[
to_lower(rank_to_char[rnk])] = rnk;
150 ret[
'U'] = ret[
'T']; ret[
'u'] = ret[
't'];
157 static const std::array<dna15, value_size> complement_table;
180 constexpr
dna15 operator""_dna15(
char const c) noexcept
199 for (
size_t i = 0; i < n; ++i)
210 constexpr std::array<dna15, dna15::value_size> dna15::complement_table
char char_type
The type of the alphabet when converted to char (e.g. via to_char()).
Definition: alphabet_base.hpp:87
alphabet_concept && assign_char(alphabet_concept &&alph, char_type const chr)
Returns the alphabet letter's value in character representation.
The 15 letter DNA alphabet, containing all IUPAC smybols minus the gap.
Definition: dna15.hpp:73
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:58
constexpr dna15 & assign_rank(rank_type const c) noexcept
Assign from a numeric value.
Definition: alphabet_base.hpp:189
static detail::min_viable_uint_t< size > constexpr value_size
The size of the alphabet, i.e. the number of different values it can take.
Definition: alphabet_base.hpp:198
Provides seqan3::nucleotide_base.
The 15 letter RNA alphabet, containing all IUPAC smybols minus the gap.
Definition: rna15.hpp:73
constexpr dna15(t const &r) noexcept
Allow implicit construction from dna/rna of the same size.
Definition: dna15.hpp:102
Provides utilities for modifying characters.
std::vector< dna15 > dna15_vector
Alias for an std::vector of seqan3::dna15.
Definition: dna15.hpp:166
A CRTP-base that refines seqan3::alphabet_base and is used by the nucleotides.
Definition: nucleotide_base.hpp:65
constexpr char_type to_lower(char_type const c) noexcept
Converts 'A'-'Z' to 'a'-'z' respectively; other characters are returned as is.
Definition: char_operations.hpp:107