101 constexpr aa20(aa20
const &) =
default;
102 constexpr aa20(aa20 &&) =
default;
103 constexpr aa20 & operator=(aa20
const &) =
default;
104 constexpr aa20 & operator=(aa20 &&) =
default;
137 static constexpr std::array<rank_type, 256>
char_to_rank 141 std::array<rank_type, 256> ret{};
154 ret[
'B'] = ret[
'D']; ret[
'b'] = ret[
'D'];
155 ret[
'J'] = ret[
'L']; ret[
'j'] = ret[
'L'];
156 ret[
'O'] = ret[
'L']; ret[
'o'] = ret[
'L'];
157 ret[
'U'] = ret[
'C']; ret[
'u'] = ret[
'C'];
158 ret[
'X'] = ret[
'S']; ret[
'x'] = ret[
'S'];
159 ret[
'Z'] = ret[
'E']; ret[
'z'] = ret[
'E'];
204 for (
size_t i = 0; i < n; ++i)
static constexpr std::array< rank_type, 256 > char_to_rank
Char to value conversion table.
Definition: aa20.hpp:138
std::vector< aa20 > aa20_vector
Alias for an std::vector of seqan3::aa20.
Definition: aa20.hpp:176
alphabet_concept && assign_char(alphabet_concept &&alph, char_type const chr)
Returns the alphabet letter's value in character representation.
detail::min_viable_uint_t< size - 1 > rank_type
The type of the alphabet when represented as a number (e.g. via to_rank()).
Definition: alphabet_base.hpp:89
static constexpr char_type rank_to_char[value_size]
Value to char conversion table.
Definition: aa20.hpp:113
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:58
The canonical amino acid alphabet.
Definition: aa20.hpp:84
Free function/metafunction wrappers for alphabets with member functions/types.
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
char_t char_type
The type of the alphabet when converted to char (e.g. via to_char()).
Definition: alphabet_base.hpp:87
Provides utilities for modifying characters.
A CRTP-base that refines seqan3::alphabet_base and is used by the amino acids.
Definition: aminoacid_base.hpp:57
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