The actual implementation of seqan3::cigar::operation for documentation purposes only.
More...
#include <seqan3/alphabet/cigar/exposition_only/cigar_operation.hpp>
The actual implementation of seqan3::cigar::operation for documentation purposes only.
- Note
- This class only exists because of technical reasons, please always use seqan3::cigar::operation instead of seqan3::exposition_only::cigar_operation.
-
We cannot declare seqan3::cigar::operation in-class, because we need to specify the second tuple element of seqan3::alphabet_tuple_base before we actually can declare it in-class. This is a trade-off to make seqan3::cigar a non-template class.
- See also
- seqan3::exposition_only for an explanation on exposition-only.
This entity is not part of the SeqAn API. Do not rely on it in your applications. Please always use seqan3::cigar::operation. The API-Stability of all members documented in this class applies
directly to seqan3::cigar::operation.
◆ char_to_rank()
static constexpr rank_type seqan3::exposition_only::cigar_operation::char_to_rank |
( |
char_type const |
chr | ) |
|
|
inlinestaticconstexprprivate |
◆ rank_to_char()
static constexpr char_type seqan3::exposition_only::cigar_operation::rank_to_char |
( |
rank_type const |
rank | ) |
|
|
inlinestaticconstexprprivate |
◆ char_to_rank_table
constexpr std::array<rank_type, 256> seqan3::exposition_only::cigar_operation::char_to_rank_table |
|
staticconstexprprivate |
Initial value:{
[] () constexpr
{
{
}
return ret;
}()
}
static constexpr detail::min_viable_uint_t< size > alphabet_size
The size of the alphabet, i.e. the number of different values it can take.
Definition: alphabet_base.hpp:276
static constexpr char_type rank_to_char_table[alphabet_size]
The lookup table used in rank_to_char.
Definition: cigar_operation.hpp:72
The lookup table used in char_to_rank.
We would have defined these lookup tables directly within their respective constexpr functions, but at the time of writing this, gcc did not (clang >= 4 did!) auto-generate lookup tables.
{
static constexpr lookup_table = ...;
return lookup_table[
rank];
}
{
constexpr lookup_table = ...;
return lookup_table[
rank];
}
detail::min_viable_uint_t< size - 1 > rank_type
The type of the alphabet when represented as a number (e.g. via to_rank()).
Definition: alphabet_base.hpp:104
std::conditional_t< std::same_as< char, void >, char, char > char_type
The char representation; conditional needed to make semi alphabet definitions legal.
Definition: alphabet_base.hpp:96
rank_type rank
The value of the alphabet letter is stored as the rank.
Definition: alphabet_base.hpp:338
static constexpr char_type rank_to_char(rank_type const rank)
Returns the character representation of rank.
Definition: cigar_operation.hpp:102
- See also
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99320 for the progress on gcc
◆ rank_to_char_table
Initial value:{
'M',
'D',
'I',
'S',
'H',
'N',
'P',
'X',
'='
}
The lookup table used in rank_to_char.
We would have defined these lookup tables directly within their respective constexpr functions, but at the time of writing this, gcc did not (clang >= 4 did!) auto-generate lookup tables.
{
static constexpr lookup_table = ...;
return lookup_table[
rank];
}
{
constexpr lookup_table = ...;
return lookup_table[
rank];
}
- See also
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99320 for the progress on gcc
The documentation for this class was generated from the following file: