75 constexpr dssp9() noexcept = default;
78 constexpr
dssp9 & operator=(
dssp9 const &) noexcept = default;
79 constexpr
dssp9 & operator=(
dssp9 &&) noexcept = default;
120inline namespace literals
136constexpr dssp9 operator""_dssp9(
char const ch)
noexcept
157 for (
size_t idx = 0u; idx < len; ++idx)
158 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:57
constexpr derived_type & assign_char(char_type const chr) noexcept
Assign from a character, implicitly converts invalid characters.
Definition: alphabet_base.hpp:163
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:199
rank_type rank
The value of the alphabet letter is stored as the rank.
Definition: alphabet_base.hpp:261
The protein structure alphabet of the characters "HGIEBTSCX"..
Definition: dssp9.hpp:63
static constexpr std::array< rank_type, 256 > char_to_rank_table
The lookup table used in char_to_rank.
Definition: dssp9.hpp:104
static constexpr char_type rank_to_char(rank_type const rank)
Returns the character representation of rank.
Definition: dssp9.hpp:89
constexpr dssp9() noexcept=default
Defaulted.
friend base_t
Befriend seqan3::alphabet_base.
Definition: dssp9.hpp:69
static constexpr char_type rank_to_char_table[alphabet_size]
The lookup table used in rank_to_char.
Definition: dssp9.hpp:86
static constexpr rank_type char_to_rank(char_type const chr)
Returns the rank representation of character.
Definition: dssp9.hpp:95
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29