SeqAn3 3.1.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-2021, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2021, 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;
52public:
54 pool_type pool{};
56 std::array<underlying_type, 3> cache{}; // Third argument is used to cache next diagonal value in non-banded case.
58 size_type num_cols{};
60 size_type num_rows{};
61};
62
63} // namespace seqan3::detail
Provides seqan3::aligned_allocator.
Provides concepts for core language types and relations that don't have concepts in C++20 (yet).
A type that satisfies std::is_arithmetic_v<t>.
Provides seqan3::simd::simd_concept.