SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
seqan3::detail::kmer_hash_fn Struct Reference

views::kmer_hash's range adaptor object type (non-closure). More...

#include <seqan3/search/views/kmer_hash.hpp>

Public Member Functions

constexpr auto operator() (shape const &shape_) const
 Store the shape and return a range adaptor closure object.
 
template<std::ranges::range urng_t>
constexpr auto operator() (urng_t &&urange, shape const &shape_) const
 Call the view's constructor with the underlying view and a seqan3::shape as argument.
 

Detailed Description

views::kmer_hash's range adaptor object type (non-closure).

[adaptor_def]

Member Function Documentation

◆ operator()()

template<std::ranges::range urng_t>
constexpr auto seqan3::detail::kmer_hash_fn::operator() ( urng_t &&  urange,
shape const &  shape_ 
) const
inlineconstexpr

Call the view's constructor with the underlying view and a seqan3::shape as argument.

Parameters
[in]urangeThe input range to process. Must model std::ranges::viewable_range and the reference type of the range must model seqan3::semialphabet.
[in]shape_The seqan3::shape to use for hashing.
Exceptions
std::invalid_argumentif resulting hash values would be too big for a 64 bit integer.
Returns
A range of converted elements.

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