104 constexpr
cigar() noexcept = default;
107 constexpr
cigar & operator=(
cigar const &) noexcept = default;
122 SEQAN3_DOXYGEN_ONLY(( constexpr
cigar(component_type const alph) noexcept {} ))
132 SEQAN3_DOXYGEN_ONLY(( constexpr
cigar &
operator=(component_type
const alph) noexcept {} ))
135 using base_t::operator=;
150 auto [ ptr, errc ] =
std::to_chars(ret.data(), ret.data() + 10, get<0>(*
this));
155 ret.resize(ptr - ret.data() + 1);
172 if ((errc !=
std::errc{}) || (!char_is_valid_for<operation>(*ptr)) || (*(ptr + 1) != 0))
196 SEQAN3_DOXYGEN_ONLY((
friend template <size_t index> constexpr
auto get(
cigar & l) noexcept {} ))
206 SEQAN3_DOXYGEN_ONLY(( friend template <typename type> constexpr auto
get(
cigar & l) noexcept {} ))
211 template <
typename char_t>
212 inline debug_stream_type<char_t> &
operator<<(debug_stream_type<char_t> & s, cigar
const c)
218 inline namespace literals
243 #ifdef SEQAN3_DEPRECATED_310
Provides seqan3::alphabet_tuple_base.
Introduces the seqan3::exposition_only::cigar_operation alphabet.
constexpr derived_type & assign_char(char_type const chr) noexcept
Assign from a character, implicitly converts invalid characters.
Definition: alphabet_base.hpp:211
The CRTP base for a combined alphabet that contains multiple values of different alphabets at the sam...
Definition: alphabet_tuple_base.hpp:124
The seqan3::cigar semialphabet pairs a counter with a seqan3::cigar::operation letter.
Definition: cigar.hpp:60
constexpr friend auto get(cigar &l) noexcept
Tuple-like access to the contained components.
Definition: cigar.hpp:196
small_string< 11 > to_string() const noexcept
Return the string representation.
Definition: cigar.hpp:145
constexpr cigar() noexcept=default
Defaulted.
cigar & assign_string(small_string< 11 > const s) noexcept
Assign from the string representation.
Definition: cigar.hpp:167
The actual implementation of seqan3::cigar::operation for documentation purposes only.
Definition: cigar_operation.hpp:48
Implements a small string that can be used for compile time computations.
Definition: small_string.hpp:44
constexpr void resize(size_type const count) noexcept
Resizes the container to contain count elements.
Definition: small_string.hpp:233
Provides seqan3::debug_stream and related types.
debug_stream_type< char_t > & operator<<(debug_stream_type< char_t > &stream, alignment_t &&alignment)
Stream operator for alignments, which are represented as tuples of aligned sequences.
Definition: debug_stream_alignment.hpp:101
constexpr auto assign_char_to
Assign a character to an alphabet object.
Definition: concept.hpp:523
constexpr auto to_char
Return the char representation of an alphabet object.
Definition: concept.hpp:384
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
Provides std::from_chars and std::to_chars if not defined in the stdlib <charconv> header.
Provides alphabet adaptations for standard uint types.
A constexpr string implementation to manipulate string literals at compile time.