 |
SeqAn3
3.0.1
The Modern C++ library for sequence analysis.
|
|
Go to the documentation of this file.
44 template <
size_t size>
69 template <semialphabet other_alph_t>
71 requires (alphabet_size<other_alph_t> ==
size)
80 template <semialphabet other_alph_t>
84 explicit operator other_alph_t()
const
Provides seqan3::alphabet_base.
constexpr auto assign_rank_to
Assign a rank to an alphabet object.
Definition: concept.hpp:238
constexpr semialphabet_any() noexcept=default
Defaulted.
A CRTP-base that makes defining a custom alphabet easier.
Definition: alphabet_base.hpp:51
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition: concept.hpp:142
constexpr semialphabet_any & operator=(semialphabet_any const &) noexcept=default
Defaulted.
~semialphabet_any() noexcept=default
Defaulted.
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:36
A semi-alphabet that type erases all other semi-alphabets of the same size.
Definition: semialphabet_any.hpp:45
constexpr size_t size
The size of a type pack.
Definition: traits.hpp:116
Subsumes std::semiregular and std::equality_comparable.
constexpr semialphabet_any< size > & assign_rank(rank_type const c) noexcept
Assign from a numeric value.
Definition: alphabet_base.hpp:165
constexpr rank_type to_rank() const noexcept
Return the letter's numeric value (rank in the alphabet).
Definition: alphabet_base.hpp:116