SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
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
 Defaulted.
 

Static Private Attributes

static constexpr seqan3::detail::align_config_id id {seqan3::detail::align_config_id::score_type}
 Internal id to check for consistent configuration settings.
 

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

// SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: CC0-1.0
int main()
{
// Compute only the score.
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.
}
Provides alignment configuration seqan3::align_cfg::score_type.
A configuration element to set the score type used in the alignment algorithm.
Definition align_config_score_type.hpp:33
Collection of elements to configure an algorithm.
Definition configuration.hpp:42
Provides seqan3::configuration and utility functions.

The documentation for this class was generated from the following file:
Hide me