98 constexpr cigar() noexcept = default;
101 constexpr
cigar & operator=(
cigar const &) noexcept = default;
116 SEQAN3_DOXYGEN_ONLY((constexpr
cigar(component_type const alph) noexcept {}))
126 SEQAN3_DOXYGEN_ONLY((
constexpr cigar &
operator=(component_type
const alph)
noexcept {}))
129 using base_t::operator=;
144 auto [ptr, errc] =
std::to_chars(ret.data(), ret.data() + 10, get<0>(*
this));
149 ret.resize(ptr - ret.data() + 1);
170 auto [ptr, errc] =
std::from_chars(input.data(), input.data() + input.size(), num);
172 if ((errc !=
std::errc{}) || (!char_is_valid_for<operation>(*ptr)))
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 {}))
224 template <
typename stream_t>
227 stream << arg.to_string();
231inline namespace literals
Provides seqan3::alphabet_tuple_base.
The <charconv> header from C++17's standard library.
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:160
The CRTP base for a combined alphabet that contains multiple values of different alphabets at the sam...
Definition alphabet_tuple_base.hpp:113
The seqan3::cigar semialphabet pairs a counter with a seqan3::cigar::operation letter.
Definition alphabet/cigar/cigar.hpp:57
friend constexpr auto get(cigar &l) noexcept
Tuple-like access to the contained components.
Definition alphabet/cigar/cigar.hpp:196
cigar & assign_string(std::string_view const input) noexcept
Assign from a std::string_view.
Definition alphabet/cigar/cigar.hpp:167
constexpr cigar() noexcept=default
Defaulted.
small_string< 11 > to_string() const noexcept
Return the string representation.
Definition alphabet/cigar/cigar.hpp:139
The actual implementation of seqan3::cigar::operation for documentation purposes only.
Definition cigar_operation.hpp:45
Implements a small string that can be used for compile time computations.
Definition small_string.hpp:43
constexpr void resize(size_type const count) noexcept
Resizes the container to contain count elements.
Definition small_string.hpp:232
Provides seqan3::debug_stream and related types.
constexpr auto assign_char_to
Assign a character to an alphabet object.
Definition alphabet/concept.hpp:517
constexpr auto to_char
Return the char representation of an alphabet object.
Definition alphabet/concept.hpp:381
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
A constexpr string implementation to manipulate string literals at compile time.
constexpr void operator()(stream_t &stream, cigar const arg) const noexcept
Prints the formatted output of the cigar symbol to the stream.
Definition alphabet/cigar/cigar.hpp:225
Definition default_printer.hpp:32
Provides alphabet adaptations for standard uint types.