Loading...
Searching...
No Matches
mask.hpp
Go to the documentation of this file.
// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include <cassert>
#include <seqan3/alphabet/alphabet_base.hpp>
namespace seqan3
{
class mask : public alphabet_base<mask, 2, void>
{
private:
using base_t = alphabet_base<mask, 2, void>;
friend base_t;
public:
constexpr mask() = default;
constexpr mask(mask const &) = default;
constexpr mask(mask &&) = default;
constexpr mask & operator=(mask const &) = default;
constexpr mask & operator=(mask &&) = default;
~mask() = default;
static mask const unmasked;
static mask const masked;
};
constexpr mask mask::unmasked{mask{}.assign_rank(0)};
constexpr mask mask::masked{mask{}.assign_rank(1)};
} // namespace seqan3
alphabet_base.hpp
Provides seqan3::alphabet_base.
cassert
seqan3::alphabet_base< mask, 2, void >::alphabet_base
constexpr alphabet_base() noexcept=default
seqan3::alphabet_base::assign_rank
constexpr derived_type & assign_rank(rank_type const c) noexcept
Assign from a numeric value.
Definition alphabet_base.hpp:184
seqan3::mask
Implementation of a masked alphabet to be used for tuple composites.
Definition mask.hpp:35
seqan3::mask::masked
static mask const masked
Member for masked.
Definition mask.hpp:71
seqan3::mask::operator=
constexpr mask & operator=(mask const &)=default
Defaulted.
seqan3::mask::mask
constexpr mask(mask &&)=default
Defaulted.
seqan3::mask::mask
constexpr mask(mask const &)=default
Defaulted.
seqan3::mask::mask
constexpr mask()=default
Defaulted.
seqan3::mask::~mask
~mask()=default
Defaulted.
seqan3::mask::unmasked
static mask const unmasked
Member for unmasked.
Definition mask.hpp:65
seqan3::mask::operator=
constexpr mask & operator=(mask &&)=default
Defaulted.
seqan3
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
Hide me