99 constexpr dssp9(dssp9
const &) =
default;
100 constexpr dssp9(dssp9 &&) =
default;
101 constexpr dssp9 & operator=(dssp9
const &) =
default;
102 constexpr dssp9 & operator=(dssp9 &&) =
default;
110 static const dssp9 H;
112 static const dssp9 B;
113 static const dssp9 E;
114 static const dssp9 G;
115 static const dssp9 I;
116 static const dssp9 T;
117 static const dssp9 S;
118 static const dssp9 C;
119 static const dssp9 X;
128 'H',
'B',
'E',
'G',
'I',
'T',
'S',
'C',
'X' 132 static constexpr std::array<rank_type, 256> char_to_rank
136 std::array<rank_type, 256> ret{};
145 ret[
static_cast<rank_type>(rank_to_char[rnk])] = rnk;
184 inline std::vector<dssp9>
operator""_dssp9(
const char * str, std::size_t len)
186 std::vector<dssp9> vec;
189 for (
size_t idx = 0u; idx < len; ++idx)
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
char char_type
The type of the alphabet when converted to char (e.g. via to_char()).
Definition: alphabet_base.hpp:87
The protein structure alphabet of the characters "HGIEBTSCX".
Definition: dssp9.hpp:85
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
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::alphabet_base.
Provides utilities for modifying characters.
Core alphabet concept and free function/metafunction wrappers.
A CRTP-base that makes defining a custom alphabet easier.
Definition: alphabet_base.hpp:77