71 namespace seqan3::detail::adl_only
75 template <
typename ...args_t>
88 template <typename alph_t>
90 requires requires (alph_t const a)
151 template <
typename semi_alphabet_type>
153 requires requires { {
seqan3::to_rank(std::declval<semi_alphabet_type>()) }; }
163 namespace seqan3::detail::adl_only
167 template <
typename ...args_t>
181 template <typename alph_t>
252 namespace seqan3::detail::adl_only
256 template <
typename ...args_t>
269 template <typename alph_t>
271 requires requires (alph_t const a)
278 constexpr decltype(
auto) operator()(alph_t const a) const noexcept
336 template <
typename alphabet_type>
348 namespace seqan3::detail::adl_only
352 template <
typename ...args_t>
366 template <typename alph_t>
437 namespace seqan3::detail::adl_only
441 template <
typename ...args_t>
448 template <
typename alph_t>
464 template <
typename dummy =
int>
469 requires noexcept(
impl(priority_tag<3>{}, a, dummy{}));
532 template <
typename alph_t>
534 requires requires { {
to_char(std::declval<alph_t>()) }; }
544 namespace seqan3::detail::adl_only
552 template <
typename alph_t>
562 if (!seqan3::char_is_valid_for<alph_t>(r))
569 template <
typename alph_t>
621 namespace seqan3::detail::adl_only
625 template <
typename ...args_t>
632 template <
typename alph_t>
638 seqan3::is_constexpr_default_constructible_v<std::remove_cvref_t<alph_t>>,
648 template <typename dummy =
int>
662 "Only overloads that are marked constexpr are picked up by seqan3::alphabet_size.");
667 #if SEQAN3_WORKAROUND_GCC_89953
668 template <
typename alph_t>
669 requires requires { { alphabet_size_fn<alph_t>{} }; }
670 inline constexpr
auto alphabet_size_obj = alphabet_size_fn<alph_t>{};
718 #if SEQAN3_WORKAROUND_GCC_89953
719 template <
typename alph_t>
721 requires requires { { detail::adl_only::alphabet_size_fn<alph_t>{} }; } &&
722 requires { { detail::adl_only::alphabet_size_obj<alph_t>() }; }
724 inline constexpr
auto alphabet_size = detail::adl_only::alphabet_size_obj<alph_t>();
726 template <
typename alph_t>
728 requires requires { { detail::adl_only::alphabet_size_fn<alph_t>{}() }; }
779 template <
typename t>
781 std::totally_ordered<t> &&
782 std::copy_constructible<t> &&
783 std::is_nothrow_copy_constructible_v<t> &&
786 { seqan3::alphabet_size<t> };
830 template <
typename t>
869 template <
typename t>
917 template <
typename t>
949 template <cereal_output_archive archive_t, semialphabet alphabet_t>
968 template <cereal_input_archive archive_t,
typename wrapped_alphabet_t>
970 wrapped_alphabet_t && l,
971 alphabet_rank_t<detail::strip_cereal_wrapper_t<wrapped_alphabet_t>>
const & r)
974 assign_rank_to(r,
static_cast<detail::strip_cereal_wrapper_t<wrapped_alphabet_t> &
>(l));
997 template <
typename t>
1019 template <
typename t>
1041 template <
typename t>
1064 template <
typename t>
Exceptions thrown by entities in the alphabet module.
Adaptions of concepts from the Cereal library.
Helper utilities for defining customisation point objects.
#define SEQAN3_CPO_IMPL(PRIO, TERM)
A macro that helps defining the overload set of a customisation point.
Definition: customisation_point.hpp:45
Provides concepts for core language types and relations that don't have concepts in C++20 (yet).
constexpr auto assign_char_to
Assign a character to an alphabet object.
Definition: concept.hpp:429
constexpr auto to_char
Return the char representation of an alphabet object.
Definition: concept.hpp:328
decltype(seqan3::to_rank(std::declval< semi_alphabet_type >())) alphabet_rank_t
The rank_type of the semi-alphabet; defined as the return type of seqan3::to_rank.
Definition: concept.hpp:155
constexpr auto alphabet_size
A type trait that holds the size of a (semi-)alphabet.
Definition: concept.hpp:730
constexpr auto assign_rank_to
Assign a rank to an alphabet object.
Definition: concept.hpp:244
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:340
constexpr auto char_is_valid_for
Returns whether a character is in the valid set of a seqan3::alphabet (usually implies a bijective ma...
Definition: concept.hpp:536
constexpr auto assign_char_strictly_to
Assign a character to an alphabet object, throw if the character is not valid.
Definition: concept.hpp:613
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition: concept.hpp:146
typename deferred_type< t, dependent_ts... >::type deferred_type_t
Return the type identity; further arguments are ignored, but can make this type dependent if they are...
Definition: basic.hpp:134
#define SEQAN3_IS_CONSTEXPR(...)
Returns true if the expression passed to this macro can be evaluated at compile time,...
Definition: basic.hpp:28
The generic alphabet concept that covers most data types used in ranges.
This concept encompasses exactly the types char, signed char, unsigned char, wchar_t,...
A seqan3::alphabet that has constexpr accessors.
A seqan3::semialphabet that has constexpr accessors.
A seqan3::writable_alphabet that has constexpr accessors.
A seqan3::writable_semialphabet that has a constexpr assignment.
The basis for seqan3::alphabet, but requires only rank interface (not char).
Refines seqan3::alphabet and adds assignability.
A refinement of seqan3::semialphabet that adds assignability.
A namespace for third party and standard library specialisations of SeqAn customisation points.
Definition: char.hpp:44
The internal SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
SeqAn specific customisations in the standard namespace.
A type that can be specialised to provide customisation point implementations so that third party typ...
Definition: concept.hpp:49
Functor definition used indirectly by for seqan3::detail::alphabet_size.
Definition: concept.hpp:634
constexpr auto operator()() const noexcept
Operator definition.
Definition: concept.hpp:657
static constexpr decltype(auto) impl(seqan3::detail::priority_tag< 2 >, [[maybe_unused]] t &&v, [[maybe_unused]] arg_ts &&... args) noexcept(noexcept((deferred_type_t< seqan3::custom::alphabet< alph_t >, decltype(v)>::alphabet_size))) requires requires(seqan3
A customisation point overload.
Definition: concept.hpp:642
Functor definition for seqan3::assign_char_strictly_to.
Definition: concept.hpp:550
auto operator()(seqan3::alphabet_char_t< alph_t > const r, alph_t &&a) const
Operator overload for rvalues.
Definition: concept.hpp:577
decltype(auto) operator()(seqan3::alphabet_char_t< alph_t > const r, alph_t &a) const
Operator overload for lvalues.
Definition: concept.hpp:560
Functor definition for seqan3::assign_char_to.
Definition: concept.hpp:358
static constexpr decltype(auto) impl(seqan3::detail::priority_tag< 2 >, [[maybe_unused]] t &&v, [[maybe_unused]] arg_ts &&... args) noexcept(noexcept((seqan3::custom::alphabet< decltype(v)>::assign_char_to(args..., v)))) requires requires(seqan3
A customisation point overload.
Definition: concept.hpp:360
constexpr alph_t operator()(seqan3::alphabet_char_t< alph_t > const r, alph_t &&a) const noexcept
Operator definition.
Definition: concept.hpp:375
Functor definition for seqan3::assign_rank_to.
Definition: concept.hpp:173
constexpr alph_t operator()(seqan3::alphabet_rank_t< alph_t > const r, alph_t &&a) const noexcept
Operator definition.
Definition: concept.hpp:190
static constexpr decltype(auto) impl(seqan3::detail::priority_tag< 2 >, [[maybe_unused]] t &&v, [[maybe_unused]] arg_ts &&... args) noexcept(noexcept((seqan3::custom::alphabet< decltype(v)>::assign_rank_to(args..., v)))) requires requires(seqan3
A customisation point overload.
Definition: concept.hpp:175
Functor definition for seqan3::char_is_valid_for.
Definition: concept.hpp:450
constexpr bool operator()(alphabet_char_t< alph_t > const a) const noexcept
Operator definition.
Definition: concept.hpp:473
static constexpr decltype(auto) impl(seqan3::detail::priority_tag< 3 >, [[maybe_unused]] t &&v, [[maybe_unused]] arg_ts &&... args) noexcept(noexcept((deferred_type_t< seqan3::custom::alphabet< alph_t >, decltype(v)>::char_is_valid(v)))) requires requires(seqan3
A customisation point overload.
Definition: concept.hpp:457
Functor definition for seqan3::to_char.
Definition: concept.hpp:261
static constexpr decltype(auto) impl(seqan3::detail::priority_tag< 2 >, [[maybe_unused]] t &&v, [[maybe_unused]] arg_ts &&... args) noexcept(noexcept(seqan3::custom::alphabet< decltype(v)>::to_char(v))) requires requires(seqan3
A customisation point overload.
Definition: concept.hpp:263
Functor definition for seqan3::to_rank.
Definition: concept.hpp:80
static constexpr decltype(auto) impl(seqan3::detail::priority_tag< 2 >, [[maybe_unused]] t &&v, [[maybe_unused]] arg_ts &&... args) noexcept(noexcept(seqan3::custom::alphabet< decltype(v)>::to_rank(v))) requires requires(seqan3
A customisation point overload.
Definition: concept.hpp:82
constexpr auto operator()(alph_t const a) const noexcept
Operator definition.
Definition: concept.hpp:97
A tag that allows controlled overload resolution via implicit base conversion rules.
Definition: customisation_point.hpp:31
An exception typically thrown by seqan3::alphabet::assign_char_strict.
Definition: exception.hpp:26
Provides traits to inspect some information of a type, for example its name.
Provides C++20 additions to the type_traits header.
Provides various type traits on generic types.