A struct that provides a debug stream printer for a specific value type.
More...
#include <seqan3/core/debug_stream/debug_stream_type.hpp>
A struct that provides a debug stream printer for a specific value type.
This struct provides operator() overloads for printing values of type int8_t, uint8_t, and seqan3::fmtflags2 to a debug stream. The operator() overloads handle the formatting of the values based on the fmtflags2 settings of the debug stream.
- Template Parameters
-
value_t | The type of the value to be printed. |
◆ operator()() [1/3]
Sets the fmtflags2 of the debug stream.
- Template Parameters
-
char_t | The character type of the debug stream. |
- Parameters
-
stream | The debug stream to set the fmtflags2 for. |
flag | The fmtflags2 value to set. |
This function sets the fmtflags2 of the debug stream to the specified flag value.
◆ operator()() [2/3]
Prints an int8_t value to the debug stream.
- Template Parameters
-
char_t | The character type of the debug stream. |
- Parameters
-
stream | The debug stream to print to. |
v | The int8_t value to be printed. |
This function prints the int8_t value to the debug stream, taking into account the fmtflags2 settings of the stream. If the fmtflags2::small_int_as_number flag is set, the value is printed as an int, otherwise it is printed as is.
◆ operator()() [3/3]
Prints a uint8_t value to the debug stream.
- Template Parameters
-
char_t | The character type of the debug stream. |
- Parameters
-
stream | The debug stream to print to. |
v | The uint8_t value to be printed. |
This function prints the uint8_t value to the debug stream, taking into account the fmtflags2 settings of the stream. If the fmtflags2::small_int_as_number flag is set, the value is printed as an unsigned int, otherwise it is printed as is.
The documentation for this struct was generated from the following file: