Alphabet specific customisations for unsigned integral types.
More...
#include <seqan3/alphabet/adaptation/uint.hpp>
|
| static constexpr uint_type & | assign_char_to (decltype(to_char(uint_type{})) const chr, uint_type &intgr) noexcept |
| | Assign from a character type via implicit or explicit cast. More...
|
| |
| static constexpr uint_type & | assign_rank_to (uint_type const intgr2, uint_type &intgr) noexcept |
| | Assign a rank to to the uint (same as calling =). More...
|
| |
| static constexpr auto | to_char (uint_type const intgr) noexcept |
| | Converting uint to char casts to a character type of same size. More...
|
| |
| static constexpr uint_type | to_rank (uint_type const intgr) noexcept |
| | Converting uint to rank is a no-op (it will just return the value you pass in). More...
|
| |
|
| static constexpr auto | alphabet_size |
| | Return the number of values the uint type can take (e.g. 256 for uint8_t). More...
|
| |
template<typename uint_type>
struct seqan3::custom::alphabet< uint_type >
Alphabet specific customisations for unsigned integral types.
- Template Parameters
-
| uint_type | Any of uint8_t, uint16_t and uint32_t. |
◆ assign_char_to()
template<typename uint_type >
|
|
inlinestaticconstexprnoexcept |
Assign from a character type via implicit or explicit cast.
- Parameters
-
| [in] | chr | The char value you wish to assign. |
| [in,out] | intgr | The alphabet letter that you wish to assign to. |
- Returns
- A reference to the alphabet letter you passed in.
◆ assign_rank_to()
template<typename uint_type >
| static constexpr uint_type& seqan3::custom::alphabet< uint_type >::assign_rank_to |
( |
uint_type const |
intgr2, |
|
|
uint_type & |
intgr |
|
) |
| |
|
inlinestaticconstexprnoexcept |
Assign a rank to to the uint (same as calling =).
- Parameters
-
| [in] | intgr2 | The rank value you wish to assign. |
| [in,out] | intgr | The alphabet letter that you wish to assign to. |
- Returns
- A reference to the alphabet letter you passed in.
◆ to_char()
template<typename uint_type >
|
|
inlinestaticconstexprnoexcept |
Converting uint to char casts to a character type of same size.
- Parameters
-
| [in] | intgr | The alphabet letter that you wish to convert to char. |
- Returns
- The letter's value in the alphabet's rank type (usually
uint).
◆ to_rank()
template<typename uint_type >
|
|
inlinestaticconstexprnoexcept |
Converting uint to rank is a no-op (it will just return the value you pass in).
- Parameters
-
| [in] | intgr | The alphabet letter that you wish to convert to rank. |
- Returns
intgr.
◆ alphabet_size
template<typename uint_type >
Initial value:=
detail::min_viable_uint_t<detail::size_in_values_v<uint_type>>{detail::size_in_values_v<uint_type>}
Return the number of values the uint type can take (e.g. 256 for uint8_t).
The documentation for this struct was generated from the following file: