![]() |
Qt 6.x
The Qt SDK
|
A Sink is a function that accepts a QStringView as input. More...
#include <qqmldomstringdumper_p.h>
Public Member Functions | |
Dumper (QStringView s) | |
Dumper (std::nullptr_t) | |
template<typename Stringy , if_string_view_convertible< Stringy > = true> | |
Dumper (Stringy string) | |
template<typename U , if_compatible_dumper< U > = true> | |
Dumper (U f) | |
void | operator() (Sink s) |
Public Attributes | |
DumperFunction | dumper |
A Sink is a function that accepts a QStringView as input.
A Sink it the core element of a text based stream oriented output. It is simply a function accepting a QStringView as input.
writes an integer to a sink without any axtra heap allocation
sink | where to write |
i | the integer to write out |
mainly for debugging/fatal errors
Helper class to accept eithe a string or a dumper (a function that writes to a sink)
Using a Dumper as input parameter one always obtains a dumper (i.e. a function_ref<void(function_ref<void(QStringView)>)> , but can pass in any object accepted by QStringView, and it is automatically converted to a dumper.
Definition at line 37 of file qqmldomstringdumper_p.h.
|
inline |
Definition at line 56 of file qqmldomstringdumper_p.h.
|
inline |
Definition at line 59 of file qqmldomstringdumper_p.h.
|
inline |
Definition at line 62 of file qqmldomstringdumper_p.h.
|
inline |
Definition at line 66 of file qqmldomstringdumper_p.h.
Definition at line 68 of file qqmldomstringdumper_p.h.
References dumper.
DumperFunction QQmlJS::Dom::Dumper::dumper |
Definition at line 39 of file qqmldomstringdumper_p.h.
Referenced by operator()().