22namespace seqan3::detail::adl_only
26template <
typename... args_t>
31struct to_phred_cpo :
public detail::customisation_point_object<to_phred_cpo, 2>
34 using base_t = detail::customisation_point_object<to_phred_cpo, 2>;
42 template <
typename alphabet_t>
51 template <
typename alphabet_t>
60 template <
typename alphabet_t>
62 std::forward<alphabet_t>(
alphabet).to_phred()
106inline constexpr auto to_phred = detail::adl_only::to_phred_cpo{};
114template <
typename alphabet_type>
128namespace seqan3::detail::adl_only
132template <
typename... args_t>
137struct assign_phred_to_cpo :
public detail::customisation_point_object<assign_phred_to_cpo, 2>
140 using base_t = detail::customisation_point_object<assign_phred_to_cpo, 2>;
142 using base_t::base_t;
157 template <
typename alphabet_t>
158 static constexpr auto
177 template <
typename alphabet_t>
178 static constexpr auto
193 template <
typename alphabet_t>
194 static constexpr auto
196 static_cast<alphabet_t
>(
alphabet.assign_phred(phred))
Core alphabet concept and free function/type trait wrappers.
#define SEQAN3_CPO_OVERLOAD(...)
A macro that helps to define a seqan3::detail::customisation_point_object.
Definition: customisation_point.hpp:107
constexpr auto to_phred
The public getter function for the Phred representation of a quality score.
Definition: concept.hpp:100
decltype(seqan3::to_phred(std::declval< alphabet_type >())) alphabet_phred_t
The phred_type of the alphabet; defined as the return type of seqan3::to_phred.
Definition: concept.hpp:114
constexpr auto assign_phred_to
Assign a Phred score to a quality alphabet object.
Definition: concept.hpp:230
The generic alphabet concept that covers most data types used in ranges.
A concept that indicates whether an alphabet represents quality scores.
Refines seqan3::alphabet and adds assignability.
A concept that indicates whether a writable alphabet represents quality scores.
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
A type that can be specialised to provide customisation point implementations so that third party typ...
Definition: concept.hpp:49