SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
seqan3::detail::to_simd_fn< simd_t > Struct Template Reference

views::to_simd's range adaptor closure object type. More...

#include <seqan3/utility/simd/views/to_simd.hpp>

Public Types

using padding_t = typename simd_traits< simd_t >::scalar_type
 The type of a padding value.
 

Public Member Functions

constexpr auto operator() () const noexcept
 Returns a range adaptor object.
 
constexpr auto operator() (padding_t const padding_value) const noexcept
 Returns a range adaptor closure object with the given parameter.
 
template<std::ranges::range urng_t>
constexpr auto operator() (urng_t &&urange) const noexcept
 Call the view's constructor with the underlying std::ranges::viewable_range as argument.
 
template<std::ranges::range urng_t>
constexpr auto operator() (urng_t &&urange, padding_t const padding_value) const noexcept
 Call the view's constructor with the underlying std::ranges::viewable_range as argument.
 

Friends

template<std::ranges::range urng_t>
constexpr friend auto operator| (urng_t &&urange, to_simd_fn const &me)
 Overloaded bit-operator to allow chaining with other ranges.
 

Detailed Description

template<simd::simd_concept simd_t>
struct seqan3::detail::to_simd_fn< simd_t >

views::to_simd's range adaptor closure object type.

Template Parameters
simd_tThe target simd type.

Returns a seqan3::detail::view_to_simd view for a given std::ranges::viewable_range.

Member Function Documentation

◆ operator()() [1/3]

template<simd::simd_concept simd_t>
constexpr auto seqan3::detail::to_simd_fn< simd_t >::operator() ( padding_t const  padding_value) const
inlineconstexprnoexcept

Returns a range adaptor closure object with the given parameter.

Parameters
[in]padding_valueThe padding character to use for smaller sequences.

◆ operator()() [2/3]

template<simd::simd_concept simd_t>
template<std::ranges::range urng_t>
constexpr auto seqan3::detail::to_simd_fn< simd_t >::operator() ( urng_t &&  urange) const
inlineconstexprnoexcept

Call the view's constructor with the underlying std::ranges::viewable_range as argument.

Parameters
[in]urangeThe input range to process; must model std::ranges::forward_range and std::ranges::viewable_range.
Returns
A range that transforms a collection of sequences into chunks of simd vectors.

◆ operator()() [3/3]

template<simd::simd_concept simd_t>
template<std::ranges::range urng_t>
constexpr auto seqan3::detail::to_simd_fn< simd_t >::operator() ( urng_t &&  urange,
padding_t const  padding_value 
) const
inlineconstexprnoexcept

Call the view's constructor with the underlying std::ranges::viewable_range as argument.

Parameters
[in]urangeThe input range to process; must model std::ranges::forward_range and std::ranges::viewable_range.
[in]padding_valueThe padding character to use for smaller sequences.
Returns
A range that transforms a collection of sequences into chunks of simd vectors.

The documentation for this struct was generated from the following file:
Hide me