SeqAn3 3.1.0
The Modern C++ library for sequence analysis.
Go to the documentation of this file.
1// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2021, Knut Reinert & MPI für molekulare Genetik
4// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5// shipped with this file and also available at:
6// -----------------------------------------------------------------------------------------------------
13#pragma once
15#include <seqan3/std/ranges>
20namespace seqan3::views
64template <typename alphabet_type>
68inline auto const rank_to = deep{std::views::transform([] (alphabet_rank_t<alphabet_type> const in) -> alphabet_type
70 return assign_rank_to(in, alphabet_type{});
73} // namespace seqan3::views
Core alphabet concept and free function/type trait wrappers.
A wrapper type around an existing view adaptor that enables "deep view" behaviour for that view.
Definition: deep.hpp:104
Provides seqan3::views::deep.
auto const rank_to
A view over an alphabet, given a range of ranks.
Definition: rank_to.hpp:68
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:167
constexpr auto assign_rank_to
Assign a rank to an alphabet object.
Definition: concept.hpp:294
decltype(detail::transform< trait_t >(list_t{})) transform
Apply a transformation trait to every type in the list and return a seqan3::type_list of the results.
Definition: traits.hpp:471
A refinement of seqan3::semialphabet that adds assignability.
The SeqAn namespace for views.
Definition: char_to.hpp:22
The <ranges> header from C++20's standard library.