A dynamic configuration element to configure the hit strategy at runtime. More...
#include <seqan3/search/configuration/hit.hpp>
Public Types | |
using | hit_variant_type = std::variant< detail::empty_type, hit_all, hit_all_best, hit_single_best, hit_strata > |
The type of the std::variant holding the hit configuration element alternatives. More... | |
Public Member Functions | |
Constructors, assignment and destructor | |
hit ()=default | |
Defaulted. | |
hit (hit const &)=default | |
Defaulted. | |
hit (hit &&)=default | |
Defaulted. | |
hit & | operator= (hit const &)=default |
Defaulted. | |
hit & | operator= (hit &&)=default |
Defaulted. | |
~hit ()=default | |
Defaulted. | |
template<typename hit_config_t > requires pack_traits::contains<hit_config_t, hit_all, hit_all_best, hit_single_best, hit_strata> | |
hit (hit_config_t hit_config) noexcept | |
Sets the given configuration element to the dynamic hit configuration element. More... | |
template<typename hit_config_t > requires pack_traits::contains<hit_config_t, hit_all, hit_all_best, hit_single_best, hit_strata> | |
hit & | operator= (hit_config_t hit_config) noexcept |
Sets the given configuration element to the dynamic hit configuration element. More... | |
Public Attributes | |
hit_variant_type | hit_variant {} |
A std::variant over the valid hit configuration elements. | |
A dynamic configuration element to configure the hit strategy at runtime.
| no-api |
The type of the std::variant holding the hit configuration element alternatives.
The additional detail::empty_type marks the seqan3::search_cfg::hit as default constructed, with no selected hit configuration which can be checked within the search algorithm.
|
no-apiinlineexplicitnoexcept |
Sets the given configuration element to the dynamic hit configuration element.
hit_config_t | The type of the hit configuration element to set. |
[in] | hit_config | The hit configuration element to set. |
Only one of the static hit configuration elements are valid: seqan3::search_cfg::hit_all, seqan3::search_cfg::hit_all_best, seqan3::search_cfg::hit_single_best and seqan3::search_cfg::hit_strata.
|
no-apiinlinenoexcept |
Sets the given configuration element to the dynamic hit configuration element.
hit_config_t | The type of the hit configuration element to set. |
[in] | hit_config | The hit configuration element to set. |
Only one of the static hit configuration elements are valid: seqan3::search_cfg::hit_all, seqan3::search_cfg::hit_all_best, seqan3::search_cfg::hit_single_best and seqan3::search_cfg::hit_strata.