71 constexpr dssp9() noexcept = default;
74 constexpr
dssp9 & operator=(
dssp9 const &) noexcept = default;
75 constexpr
dssp9 & operator=(
dssp9 &&) noexcept = default;
87 return rank_to_char_table[rank];
94 return char_to_rank_table[
static_cast<index_t
>(chr)];
107 ret[
static_cast<rank_type>(rank_to_char_table[rnk])] = rnk;
113inline namespace literals
129constexpr dssp9
operator""_dssp9(
char const ch)
noexcept
131 return dssp9{}.assign_char(ch);
150 for (
size_t idx = 0u; idx < len; ++idx)
151 vec[idx].assign_char(str[idx]);
Core alphabet concept and free function/type trait wrappers.
Provides seqan3::alphabet_base.
A CRTP-base that makes defining a custom alphabet easier.
Definition alphabet_base.hpp:54
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:77
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:196
std::conditional_t< std::same_as< char, void >, char, char > char_type
The char representation; conditional needed to make semi alphabet definitions legal.
Definition alphabet_base.hpp:69
The protein structure alphabet of the characters "HGIEBTSCX".
Definition dssp9.hpp:59
constexpr dssp9() noexcept=default
Defaulted.
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26