SeqAn3
3.4.0
The Modern C++ library for sequence analysis.
Toggle main menu visibility
Loading...
Searching...
No Matches
to_rank.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
2
// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
3
// SPDX-License-Identifier: BSD-3-Clause
4
9
10
#pragma once
11
12
#include <
cstring
>
13
#include <ranges>
14
15
#include <
seqan3/alphabet/concept.hpp
>
16
#include <
seqan3/utility/views/deep.hpp
>
17
18
namespace
seqan3::views
19
{
63
inline
auto
const
to_rank
=
deep
{std::views::transform(
64
[](
auto
const
in)
noexcept
65
{
66
static_assert
(
semialphabet
<
decltype
(in)>,
67
"The value type of seqan3::views::to_rank must model the seqan3::alphabet."
);
68
return
seqan3::to_rank
(in);
69
})};
70
71
}
// 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
cstring
deep.hpp
Provides seqan3::views::deep.
seqan3::views::to_rank
auto const to_rank
A view that calls seqan3::to_rank() on each element in the input range.
Definition
to_rank.hpp:63
seqan3::to_rank
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition
alphabet/concept.hpp:152
semialphabet
The basis for seqan3::alphabet, but requires only rank interface (not char).
seqan3::views
The SeqAn namespace for views.
Definition
char_strictly_to.hpp:19
Hide me
Version:
seqan3
alphabet
views
to_rank.hpp
Generated on
for SeqAn3 by
1.17.0