40 template <writable_alphabet sequence_alphabet_t>
63 constexpr
masked() =
default;
74 using base_t::operator=;
108 ret[i] = (i < alphabet_size / 2)
124 for (
size_t i = 0; i < 256; ++i)
140 template <
typename sequence_alphabet_type>
Meta-header for the mask submodule; includes all headers from alphabet/mask/.
sequence_alphabet_t sequence_alphabet_type
First template parameter as member type.
Definition: masked.hpp:52
static constexpr std::array< char_type, alphabet_size > rank_to_char
Rank to char conversion table.
Definition: masked.hpp:101
constexpr auto assign_rank_to
Assign a rank to an alphabet object.
Definition: concept.hpp:238
alphabet_char_t< sequence_alphabet_type > char_type
Equals the char_type of sequence_alphabet_type.
Definition: masked.hpp:55
constexpr char_type to_char() const noexcept
Return a character.
Definition: masked.hpp:92
auto constexpr is_lower
Checks whether c is a lower case character.
Definition: predicate.hpp:271
constexpr auto to_char
Return the char representation of an alphabet object.
Definition: concept.hpp:320
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition: concept.hpp:142
The main SeqAn3 namespace.
constexpr masked & operator=(masked const &)=default
Defaulted.
Subsumes std::semiregular and std::equality_comparable.
constexpr masked()=default
Defaulted.
constexpr derived_type & assign_rank(rank_type const c) noexcept
Assign from a numeric value.
Definition: alphabet_base.hpp:165
static constexpr std::array< rank_type, detail::size_in_values_v< char_type > > char_to_rank
Char to rank conversion table.
Definition: masked.hpp:119
The CRTP base for a combined alphabet that contains multiple values of different alphabets at the sam...
Definition: alphabet_tuple_base.hpp:120
decltype(seqan3::to_char(std::declval< alphabet_type const >())) alphabet_char_t
The char_type of the alphabet; defined as the return type of seqan3::to_char.
Definition: concept.hpp:329
static detail::min_viable_uint_t< size > constexpr alphabet_size
The size of the alphabet, i.e. the number of different values it can take.
Definition: alphabet_base.hpp:174
Provides character predicates for tokenisation.
~masked()=default
Defaulted.
constexpr rank_type to_rank() const noexcept
Return the letter's numeric value (rank in the alphabet).
Definition: alphabet_base.hpp:116
constexpr masked & assign_char(char_type const c) noexcept
Assign from a character.
Definition: masked.hpp:80
A CRTP-base that makes defining a custom alphabet easier.
Definition: alphabet_base.hpp:51
Implementation of a masked alphabet to be used for tuple composites.
Definition: mask.hpp:34
Provides seqan3::alphabet_tuple_base.
constexpr auto assign_char_to
Assign a character to an alphabet object.
Definition: concept.hpp:416
Implementation of a masked composite, which extends a given alphabet with a mask. ...
Definition: masked.hpp:44
constexpr char_type to_lower(char_type const c) noexcept
Converts 'A'-'Z' to 'a'-'z' respectively; other characters are returned as is.
Definition: transform.hpp:81