SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
seqan3::align_cfg::score_type< score_t > Class Template Reference

A configuration element to set the score type used in the alignment algorithm. More...

#include <seqan3/alignment/configuration/align_config_score_type.hpp>

+ Inheritance diagram for seqan3::align_cfg::score_type< score_t >:

Public Types

using type = score_t
 The selected score type.
 

Public Member Functions

Constructor, destructor and assignment
constexpr score_type ()=default
 Defaulted.
 
constexpr score_type (score_type const &)=default
 Defaulted.
 
constexpr score_type (score_type &&)=default
 Defaulted.
 
constexpr score_typeoperator= (score_type const &)=default
 Defaulted.
 
constexpr score_typeoperator= (score_type &&)=default
 Defaulted.
 
 ~score_type ()=default
 

Detailed Description

template<arithmetic score_t>
class seqan3::align_cfg::score_type< score_t >

A configuration element to set the score type used in the alignment algorithm.

Template Parameters
score_tThe type to use for the computed alignment score; must model seqan3::arithmetic.

This option configures the score type of the alignment algorithm. By default, the alignment algorithm will only compute the score with score type int32_t.

Example

int main()
{
// Compute only the score.
seqan3::configuration cfg1 = seqan3::align_cfg::score_type<int16_t>{}; // Now the alignment computes 16 bit integers.
seqan3::configuration cfg2 = seqan3::align_cfg::score_type<float>{}; // Now the alignment computes float scores.
}

Constructor & Destructor Documentation

◆ ~score_type()

template<arithmetic score_t>
seqan3::align_cfg::score_type< score_t >::~score_type ( )
default

Defaulted.


The documentation for this class was generated from the following file:
seqan3::align_cfg::score_type
A configuration element to set the score type used in the alignment algorithm.
Definition: align_config_score_type.hpp:36
configuration.hpp
Provides seqan3::detail::configuration and utility functions.
seqan3::configuration
Collection of elements to configure an algorithm.
Definition: configuration.hpp:82
align_config_score_type.hpp
Provides alignment configuration seqan3::align_cfg::score_type.