 |
SeqAn3
3.0.1
The Modern C++ library for sequence analysis.
|
|
Go to the documentation of this file.
68 constexpr
cigar() noexcept =
default;
69 constexpr
cigar(
cigar const &) noexcept =
default;
73 ~cigar() noexcept =
default;
84 SEQAN3_DOXYGEN_ONLY(( constexpr
cigar(component_type
const alph) noexcept {} ))
92 SEQAN3_DOXYGEN_ONLY(( constexpr
cigar & operator=(component_type const alph) noexcept {} ))
96 using base_t::operator=;
107 auto [ ptr, errc ] =
std::to_chars(ret.data(), ret.data() + 10, get<0>(*
this));
112 ret.resize(ptr - ret.data() + 1);
126 if ((errc !=
std::errc{}) || (!char_is_valid_for<cigar_op>(*ptr)) || (*(ptr + 1) != 0))
148 SEQAN3_DOXYGEN_ONLY(( template <size_t index> constexpr
auto get(
cigar & l) noexcept {} ))
156 SEQAN3_DOXYGEN_ONLY(( template <typename type> constexpr auto
get(
cigar & l) noexcept {} ))
161 template <
typename char_t>
constexpr cigar(component_type const alph) noexcept
Construction via a value of one of the components.
Definition: cigar.hpp:84
cigar & assign_string(small_string< 11 > const s) noexcept
Assign from the string representation.
Definition: cigar.hpp:121
The CRTP base for a combined alphabet that contains multiple values of different alphabets at the sam...
Definition: alphabet_tuple_base.hpp:120
Provides std::from_chars and std::to_chars if not defined in the stl <charconv> header.
Implements a small string that can be used for compile time computations.
Definition: small_string.hpp:42
constexpr auto to_char
Return the char representation of an alphabet object.
Definition: concept.hpp:320
A CRTP-base that makes defining a custom alphabet easier.
Definition: alphabet_base.hpp:51
small_string< 11 > to_string() const noexcept
Return the string representation.
Definition: cigar.hpp:102
Provides seqan3::debug_stream and related types.
~cigar() noexcept=default
Defaulted.
A "pretty printer" for most SeqAn data structures and related types.
Definition: debug_stream_type.hpp:70
A constexpr string implementation to manipulate string literals at compile time.
Introduces the cigar_op alphabet.
The cigar semialphabet pairs a counter with a seqan3::cigar_op letter.
Definition: cigar.hpp:54
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:36
constexpr cigar() noexcept=default
Defaulted.
constexpr auto get(cigar &l) noexcept
Tuple-like access to the contained components.
Definition: cigar.hpp:148
debug_stream_type< char_t > & operator<<(debug_stream_type< char_t > &stream, tuple_t const &alignment)
Stream operator for alignments, which are represented as tuples of aligned sequences.
Definition: aligned_sequence_concept.hpp:559
Provides alphabet adaptations for standard uint types.
Provides seqan3::alphabet_tuple_base.
constexpr auto assign_char_to
Assign a character to an alphabet object.
Definition: concept.hpp:416
constexpr cigar & operator=(cigar const &) noexcept=default
Defaulted.
constexpr void resize(size_type const count) noexcept
Resizes the container to contain count elements.
Definition: small_string.hpp:216