SeqAn3  3.0.0
The Modern C++ library for sequence analysis.
seqan3::view Namespace Reference

The SeqAn3 namespace for views. More...

Classes

class  deep
 A wrapper type around an existing view adaptor that enables "deep view" behaviour for that view. More...
 

Variables

Alphabet related views
template<Alphabet alphabet_type>
auto const char_to
 A view over an alphabet, given a range of characters. More...
 
auto const complement
 A view that converts a range of nucleotides to their complement. More...
 
auto constexpr kmer_hash
 A view that calls std::hash on each substring of length k in the input range. More...
 
template<typename alphabet_type >
auto const rank_to
 A view over an alphabet, given a range of ranks. More...
 
auto const to_char
 A view that calls seqan3::to_char() on each element in the input range. More...
 
auto const to_rank
 A view that calls seqan3::to_rank() on each element in the input range. More...
 
constexpr auto translate_single
 A view that translates nucleotide into aminoacid alphabet for one of the six frames. More...
 
constexpr auto translate
 A view that translates nucleotide into aminoacid alphabet with 1, 2, 3 or 6 frames. More...
 
constexpr auto trim
 A view that does quality-threshold trimming on a range of seqan3::QualityAlphabet. More...
 
General purpose views
template<typename out_t >
auto const convert
 A view that converts each element in the input range (implicitly or via static_cast). More...
 
constexpr auto drop
 A view adaptor that returns all elements after n from the underlying range (or an empty range if the underlying range is shorter). More...
 
template<auto index>
auto const get
 A view calling std::get on each element in a range. More...
 
constexpr auto interleave
 A view that interleaves a given range into another range at regular intervals. More...
 
constexpr auto istreambuf
 A view factory that returns a view over the stream buffer of an input stream. More...
 
constexpr auto pairwise_combine
 A view adaptor that generates all pairwise combinations of the elements of the underlying range. More...
 
auto constexpr persist
 A view adaptor that wraps rvalue references of non-views. More...
 
constexpr detail::repeat_fn repeat
 A view factory that repeats a given value infinitely. More...
 
constexpr auto repeat_n
 A view factory that repeats a given value n times. More...
 
constexpr auto single_pass_input
 A view adapter that decays most of the range properties and adds single pass behavior. More...
 
constexpr auto slice
 A view adaptor that returns a half-open interval on the underlying range. More...
 
auto constexpr take
 A view adaptor that returns the first size elements from the underlying range (or less if the underlying range is shorter). More...
 
auto constexpr take_exactly
 A view adaptor that returns the first size elements from the underlying range (or less if the underlying range is shorter); also provides size information. More...
 
auto constexpr take_exactly_or_throw
 A view adaptor that returns the first size elements from the underlying range and also exposes size information; throws if the underlying range is smaller than size. More...
 
auto constexpr take_line = view::take_until_and_consume(is_char<'\r'> || is_char<'\n'>)
 A view adaptor that returns a single line from the underlying range or the full range if there is no newline. More...
 
auto constexpr take_line_or_throw = view::take_until_or_throw_and_consume(is_char<'\r'> || is_char<'\n'>)
 A view adaptor that returns a single line from the underlying range (throws if there is no end-of-line). More...
 
auto constexpr take_until
 A view adaptor that returns elements from the underlying range until the functor evaluates to true (or the end of the underlying range is reached). More...
 
auto constexpr take_until_or_throw
 A view adaptor that returns elements from the underlying range until the functor evaluates to true (throws if the end of the underlying range is reached). More...
 
auto constexpr take_until_and_consume
 A view adaptor that returns elements from the underlying range until the functor evaluates to true (or the end of the underlying range is reached; consumes end in single-pass ranges). More...
 
auto constexpr take_until_or_throw_and_consume
 A view adaptor that returns elements from the underlying range until the functor evaluates to true (throws if the end of the underlying range is reached; consumes end in single-pass ranges). More...
 
auto const to_lower
 A view that calls seqan3::to_lower() on each element in the input range. More...
 
auto const to_upper
 A view that calls seqan3::to_upper() on each element in the input range. More...
 
constexpr auto all
 A view adaptor that behaves like std::view:all, but type erases contiguous ranges. More...
 

Detailed Description

The SeqAn3 namespace for views.

[adaptor_def]

Since views often have name clashes with regular functions and ranges they are implemented in the sub namespace view.

See the view submodule of the range module for more details.