Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQmlJS::Dom::Dumper Class Reference

A Sink is a function that accepts a QStringView as input. More...

#include <qqmldomstringdumper_p.h>

+ Collaboration diagram for QQmlJS::Dom::Dumper:

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() (const Sink &s) const
 

Public Attributes

DumperFunction dumper
 

Detailed Description

A Sink is a function that accepts a QStringView as input.

\tn QQmlJS::Dom::Sink

A Sink it the core element of a text based stream oriented output. It is simply a function accepting a QStringView as input.

\tn QQmlJS::Dom::sinkInt

writes an integer to a sink without any axtra heap allocation

Parameters
sinkwhere to write
ithe 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.

Constructor & Destructor Documentation

◆ Dumper() [1/4]

QQmlJS::Dom::Dumper::Dumper ( QStringView s)
inline

Definition at line 56 of file qqmldomstringdumper_p.h.

◆ Dumper() [2/4]

QQmlJS::Dom::Dumper::Dumper ( std::nullptr_t )
inline

Definition at line 59 of file qqmldomstringdumper_p.h.

◆ Dumper() [3/4]

template<typename Stringy , if_string_view_convertible< Stringy > = true>
QQmlJS::Dom::Dumper::Dumper ( Stringy string)
inline

Definition at line 62 of file qqmldomstringdumper_p.h.

◆ Dumper() [4/4]

template<typename U , if_compatible_dumper< U > = true>
QQmlJS::Dom::Dumper::Dumper ( U f)
inline

Definition at line 66 of file qqmldomstringdumper_p.h.

Member Function Documentation

◆ operator()()

void QQmlJS::Dom::Dumper::operator() ( const Sink & s) const
inline

Definition at line 68 of file qqmldomstringdumper_p.h.

References dumper.

Member Data Documentation

◆ dumper

DumperFunction QQmlJS::Dom::Dumper::dumper

Definition at line 39 of file qqmldomstringdumper_p.h.

Referenced by operator()().


The documentation for this class was generated from the following file: