SeqAn3 3.2.0
The Modern C++ library for sequence analysis.
alignment_score_matrix_one_column_base.hpp
Go to the documentation of this file.
1// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2022, Knut Reinert & MPI für molekulare Genetik
4// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5// shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
6// -----------------------------------------------------------------------------------------------------
7
13#pragma once
14
15#include <array>
16#include <utility>
17#include <vector>
18
22
23namespace seqan3::detail
24{
25
35template <typename score_t>
36struct alignment_score_matrix_one_column_base
37{
38protected:
39 static_assert(arithmetic<score_t> || simd_concept<score_t>,
40 "Score type must either be either an arithmetic type or a simd vector type.");
41
43 using underlying_type = score_t;
47 using allocator_type = aligned_allocator<element_type, sizeof(element_type)>;
51 using size_type = size_t;
52
53public:
55 pool_type pool{};
57 std::array<underlying_type, 3> cache{}; // Third argument is used to cache next diagonal value in non-banded case.
59 size_type num_cols{};
61 size_type num_rows{};
62};
63
64} // namespace seqan3::detail
Provides seqan3::aligned_allocator.
A type that satisfies std::is_arithmetic_v<t>.
Provides concepts that do not have equivalents in C++20.
Provides seqan3::simd::simd_concept.