Loading...
Searching...
No Matches
rank_to.hpp
Go to the documentation of this file.
// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include <ranges>
#include <seqan3/alphabet/concept.hpp>
#include <seqan3/utility/views/deep.hpp>
namespace seqan3::views
{
template <typename alphabet_type>
requires writable_semialphabet<alphabet_type>
inline auto const rank_to = deep{std::views::transform(
[](alphabet_rank_t<alphabet_type> const in) -> alphabet_type
{
return assign_rank_to(in, alphabet_type{});
})};
} // namespace seqan3::views
concept.hpp
Core alphabet concept and free function/type trait wrappers.
seqan3::views::deep
A wrapper type around an existing view adaptor that enables "deep view" behaviour for that view.
Definition deep.hpp:101
deep.hpp
Provides seqan3::views::deep.
seqan3::views::rank_to
auto const rank_to
A view over an alphabet, given a range of ranks.
Definition rank_to.hpp:63
seqan3::assign_rank_to
constexpr auto assign_rank_to
Assign a rank to an alphabet object.
Definition alphabet/concept.hpp:288
seqan3::alphabet_rank_t
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 alphabet/concept.hpp:164
seqan3::views
The SeqAn namespace for views.
Definition char_strictly_to.hpp:19
Hide me