92 constexpr
dna5(
dna5 const &) =
default;
94 constexpr
dna5 & operator=(
dna5 const &) =
default;
95 constexpr
dna5 & operator=(
dna5 &&) =
default;
101 template <std::Same<rna5> t>
102 constexpr
dna5(t
const & r) noexcept
122 static constexpr std::array<rank_type, 256> char_to_rank
126 std::array<rank_type, 256> ret{};
133 for (
size_t rnk = 0u; rnk <
value_size; ++rnk)
135 ret[ rank_to_char[rnk] ] = rnk;
136 ret[
to_lower(rank_to_char[rnk])] = rnk;
140 ret[
'U'] = ret[
'T']; ret[
'u'] = ret[
't'];
148 static const std::array<dna5, value_size> complement_table;
171 constexpr
dna5 operator""_dna5(
char const c) noexcept
190 for (
size_t i = 0; i < n; ++i)
201 constexpr std::array<dna5, dna5::value_size> dna5::complement_table
char char_type
The type of the alphabet when converted to char (e.g. via to_char()).
Definition: alphabet_base.hpp:87
The five letter RNA alphabet of A,C,G,U and the unknown character N.
Definition: rna5.hpp:71
alphabet_concept && assign_char(alphabet_concept &&alph, char_type const chr)
Returns the alphabet letter's value in character representation.
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:58
std::vector< dna5 > dna5_vector
Alias for an std::vector of seqan3::dna5.
Definition: dna5.hpp:157
The five letter DNA alphabet of A,C,G,T and the unknown character N.
Definition: dna5.hpp:73
constexpr dna5 & 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.
Provides utilities for modifying characters.
A CRTP-base that refines seqan3::alphabet_base and is used by the nucleotides.
Definition: nucleotide_base.hpp:65
constexpr dna5(t const &r) noexcept
Allow implicit construction from dna/rna of the same size.
Definition: dna5.hpp:102
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