71 constexpr dssp9() noexcept = default;
74 constexpr
dssp9 & operator=(
dssp9 const &) noexcept = default;
75 constexpr
dssp9 & operator=(
dssp9 &&) noexcept = default;
116inline namespace literals
132constexpr dssp9 operator""_dssp9(
char const ch)
noexcept
153 for (
size_t idx = 0u; idx < len; ++idx)
154 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
constexpr derived_type & assign_char(char_type const chr) noexcept
Assign from a character, implicitly converts invalid characters.
Definition alphabet_base.hpp:160
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
rank_type rank
The value of the alphabet letter is stored as the rank.
Definition alphabet_base.hpp:258
The protein structure alphabet of the characters "HGIEBTSCX".
Definition dssp9.hpp:59
static constexpr std::array< rank_type, 256 > char_to_rank_table
The lookup table used in char_to_rank.
Definition dssp9.hpp:100
static constexpr char_type rank_to_char(rank_type const rank)
Returns the character representation of rank.
Definition dssp9.hpp:85
constexpr dssp9() noexcept=default
Defaulted.
friend base_t
Befriend seqan3::alphabet_base.
Definition dssp9.hpp:65
static constexpr char_type rank_to_char_table[alphabet_size]
The lookup table used in rank_to_char.
Definition dssp9.hpp:82
static constexpr rank_type char_to_rank(char_type const chr)
Returns the rank representation of character.
Definition dssp9.hpp:91
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26