A strong type of underlying type int32_t
that represents the score (usually negative) of any character against a gap character.
More...
#include <seqan3/alignment/configuration/align_config_gap_cost_affine.hpp>
Public Types | |
using | base_t = seqan3::detail::strong_type< int32_t, extension_score, seqan3::detail::strong_type_skill::convert > |
The type of the strong type base class. | |
using | value_type = int32_t |
The underlying value type. | |
Public Member Functions | |
Accessor. | |
constexpr int32_t & | get () &noexcept |
Returns the underlying value. | |
constexpr int32_t const & | get () const &noexcept |
Returns the underlying value. | |
constexpr int32_t && | get () &&noexcept |
Returns the underlying value as rvalue. | |
constexpr int32_t const && | get () const &&noexcept |
Returns the underlying value as rvalue. | |
Arithmetic additive operators. | |
Only available if the corresponding skills from seqan3::detail::strong_type_skill are added and the underlying type supports this operation. | |
constexpr extension_score | operator+ (strong_type const &other) |
Adds addition operator to the strong type. | |
constexpr extension_score | operator- (strong_type const &other) |
Adds subtraction operator to the strong type. | |
Arithmetic multiplicative operators. | |
Only available if the corresponding skills from seqan3::detail::strong_type_skill are added and the underlying type supports this operation. | |
constexpr extension_score | operator* (strong_type const &other) |
Adds multiplication operator to the strong type. | |
constexpr extension_score | operator/ (strong_type const &other) |
Adds division operator to the strong type. | |
constexpr extension_score | operator% (strong_type const &other) |
Adds modulo operator to the strong type. | |
Bitwise logic operators. | |
Only available if the corresponding skills from seqan3::detail::strong_type_skill are added and the underlying type supports this operation. | |
constexpr extension_score | operator& (strong_type const &other) |
Adds bitwise and operator to the strong type. | |
constexpr extension_score | operator| (strong_type const &other) |
Adds bitwise or operator to the strong type. | |
constexpr extension_score | operator^ (strong_type const &other) |
Adds bitwise xor operator to the strong type. | |
constexpr extension_score | operator~ () |
Adds bitwise not operator to the strong type. | |
Bitwise shift operators. | |
Only available if the corresponding skills from seqan3::detail::strong_type_skill are added and the underlying type supports this operation. | |
constexpr extension_score | operator<< (strong_type const &other) |
Adds bitwise left shift operator to the strong type. | |
constexpr extension_score | operator<< (integral_t const shift) |
Adds bitwise left shift operator to the strong type. | |
constexpr extension_score | operator>> (strong_type const &other) |
Adds bitwise right shift operator to the strong type. | |
constexpr extension_score | operator>> (integral_t const shift) |
Adds bitwise right shift operator to the strong type. | |
Logical operators. | |
Only available if the corresponding skills from seqan3::detail::strong_type_skill are added and the underlying type supports this operation. | |
constexpr bool | operator&& (strong_type const &other) |
Adds logical and operator to the strong type. | |
constexpr bool | operator|| (strong_type const &other) |
Adds logical or operator to the strong type. | |
constexpr bool | operator! () |
Adds logical not operator to the strong type. | |
Increment and decrement operators. | |
Only available if the corresponding skills from seqan3::detail::strong_type_skill are added and the underlying type supports this operation. | |
constexpr extension_score & | operator++ () |
Adds pre-increment operator to the strong type. | |
constexpr extension_score | operator++ (int) |
Adds post-increment operator to the strong type. | |
constexpr extension_score & | operator-- () |
Adds pre-decrement operator to the strong type. | |
constexpr extension_score | operator-- (int) |
Adds post-decrement operator to the strong type. | |
Comparison operators | |
Only available if the corresponding skill from seqan3::detail::strong_type_skill is added. Implemented as member functions because requires does not work on friends. | |
constexpr bool | operator== (strong_type const &rhs) const |
Return whether this instance is equal to rhs . | |
constexpr bool | operator!= (strong_type const &rhs) const |
Return whether this instance is not equal to rhs . | |
Conversion operators. | |
Only available if the corresponding skill from seqan3::detail::strong_type_skill is added. | |
constexpr | operator int32_t () const |
Adds explicit conversion to it's underlying type. | |
Static Public Attributes | |
static constexpr strong_type_skill | skills |
The selected skills for this type. | |
Private Attributes | |
int32_t | value |
The underlying value, which is wrapped as a strong type. | |
Related Functions | |
(Note that these are not member functions.) | |
Formatted output | |
debug_stream_type< char_t > & | operator<< (debug_stream_type< char_t > &stream, strong_type_t &&value) |
Formatted output to a seqan3::detail::debug_stream_type. More... | |
A strong type of underlying type int32_t
that represents the score (usually negative) of any character against a gap character.
|
related |
Formatted output to a seqan3::detail::debug_stream_type.
char_t | The char type of the seqan3::detail::debug_stream_type. |
strong_type_t | The strong type to print; must model seqan3::detail::derived_from_strong_type. |
[in,out] | stream | The output stream. |
[in] | value | The strong typed value to print. |
Prints the stored value of the given strong type.
stream_t &
A reference to the given stream.