Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlJS::Dom::Reference Class Referencefinal

#include <qqmldomitem_p.h>

Inheritance diagram for QQmlJS::Dom::Reference:
Collaboration diagram for QQmlJS::Dom::Reference:

Public Member Functions

DomType kind () const override
Referenceoperator-> ()
const Referenceoperator-> () const
Referenceoperator* ()
const Referenceoperator* () const
bool shouldCache () const
 Reference (const Path &referredObject=Path(), const Path &pathFromOwner=Path(), const SourceLocation &loc=SourceLocation())
quintptr id () const override
bool iterateDirectSubpaths (const DomItem &self, DirectVisitor) const override
DomItem field (const DomItem &self, QStringView name) const override
QList< QStringfields (const DomItem &self) const override
index_type indexes (const DomItem &) const override
DomItem index (const DomItem &, index_type) const override
QSet< QString > const keys (const DomItem &) const override
DomItem key (const DomItem &, const QString &) const override
DomItem get (const DomItem &self, const ErrorHandler &h=nullptr, QList< Path > *visitedRefs=nullptr) const
QList< DomItemgetAll (const DomItem &self, const ErrorHandler &h=nullptr, QList< Path > *visitedRefs=nullptr) const
Public Member Functions inherited from QQmlJS::Dom::DomElement
 DomElement (const Path &pathFromOwner=Path())
 DomElement (const DomElement &o)=default
Path pathFromOwner () const override
Path canonicalPath (const DomItem &self) const override
DomItem containingObject (const DomItem &self) const override
virtual void updatePathFromOwner (const Path &newPath)
Public Member Functions inherited from QQmlJS::Dom::DomBase
virtual ~DomBase ()=default
DomBasedomBase ()
const DomBasedomBase () const
virtual DomKind domKind () const
virtual void dump (const DomItem &, const Sink &sink, int indent, FilterT filter) const
QString typeName () const
virtual QString canonicalFilePath (const DomItem &self) const
virtual void writeOut (const DomItem &self, OutWriter &lw) const
virtual QCborValue value () const

Public Attributes

Path referredObjectPath

Static Public Attributes

static constexpr DomType kindValue = DomType::Reference

Additional Inherited Members

Public Types inherited from QQmlJS::Dom::DomBase
using FilterT = function_ref<bool(const DomItem &, const PathEls::PathComponent &, const DomItem &)>
Protected Member Functions inherited from QQmlJS::Dom::DomElement
DomElementoperator= (const DomElement &)=default

Detailed Description

Definition at line 641 of file qqmldomitem_p.h.

Constructor & Destructor Documentation

◆ Reference()

QQmlJS::Dom::Reference::Reference ( const Path & referredObject = Path(),
const Path & pathFromOwner = Path(),
const SourceLocation & loc = SourceLocation() )

Definition at line 2808 of file qqmldomitem.cpp.

References QQmlJS::Dom::DomElement::DomElement(), and Reference().

Referenced by Reference().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ field()

DomItem QQmlJS::Dom::Reference::field ( const DomItem & self,
QStringView name ) const
overridevirtual

Reimplemented from QQmlJS::Dom::DomBase.

Definition at line 2829 of file qqmldomitem.cpp.

References QQmlJS::Dom::DomItem::DomItem().

Here is the call graph for this function:

◆ fields()

QList< QString > QQmlJS::Dom::Reference::fields ( const DomItem & self) const
overridevirtual

Reimplemented from QQmlJS::Dom::DomBase.

Definition at line 2838 of file qqmldomitem.cpp.

◆ get()

DomItem QQmlJS::Dom::Reference::get ( const DomItem & self,
const ErrorHandler & h = nullptr,
QList< Path > * visitedRefs = nullptr ) const

Definition at line 2853 of file qqmldomitem.cpp.

References QQmlJS::Dom::DomItem::canonicalPath(), QQmlJS::Dom::DomItem::environment(), QQmlJS::Dom::DomItem::path(), and shouldCache().

Here is the call graph for this function:

◆ getAll()

QList< DomItem > QQmlJS::Dom::Reference::getAll ( const DomItem & self,
const ErrorHandler & h = nullptr,
QList< Path > * visitedRefs = nullptr ) const

Definition at line 2902 of file qqmldomitem.cpp.

References QQmlJS::Dom::DomElement::canonicalPath(), QQmlJS::Dom::DomItem::environment(), and shouldCache().

Here is the call graph for this function:

◆ id()

quintptr QQmlJS::Dom::Reference::id ( ) const
overridevirtual

Reimplemented from QQmlJS::Dom::DomBase.

Definition at line 2813 of file qqmldomitem.cpp.

◆ index()

DomItem QQmlJS::Dom::Reference::index ( const DomItem & ,
index_type  ) const
overridevirtual

Reimplemented from QQmlJS::Dom::DomBase.

Definition at line 2843 of file qqmldomitem.cpp.

References QQmlJS::Dom::DomItem::DomItem().

Here is the call graph for this function:

◆ indexes()

index_type QQmlJS::Dom::Reference::indexes ( const DomItem & ) const
inlineoverridevirtual

Reimplemented from QQmlJS::Dom::DomBase.

Definition at line 660 of file qqmldomitem_p.h.

◆ iterateDirectSubpaths()

bool QQmlJS::Dom::Reference::iterateDirectSubpaths ( const DomItem & self,
DirectVisitor visitor ) const
overridevirtual

Implements QQmlJS::Dom::DomBase.

Definition at line 2818 of file qqmldomitem.cpp.

◆ key()

DomItem QQmlJS::Dom::Reference::key ( const DomItem & ,
const QString &  ) const
overridevirtual

Reimplemented from QQmlJS::Dom::DomBase.

Definition at line 2848 of file qqmldomitem.cpp.

References QQmlJS::Dom::DomItem::DomItem().

Here is the call graph for this function:

◆ keys()

QSet< QString > const QQmlJS::Dom::Reference::keys ( const DomItem & ) const
inlineoverridevirtual

Reimplemented from QQmlJS::Dom::DomBase.

Definition at line 662 of file qqmldomitem_p.h.

◆ kind()

DomType QQmlJS::Dom::Reference::kind ( ) const
inlineoverridevirtual

Implements QQmlJS::Dom::DomBase.

Definition at line 646 of file qqmldomitem_p.h.

◆ operator*() [1/2]

Reference & QQmlJS::Dom::Reference::operator* ( )
inline

Definition at line 650 of file qqmldomitem_p.h.

◆ operator*() [2/2]

const Reference & QQmlJS::Dom::Reference::operator* ( ) const
inline

Definition at line 651 of file qqmldomitem_p.h.

◆ operator->() [1/2]

Reference * QQmlJS::Dom::Reference::operator-> ( )
inline

Definition at line 648 of file qqmldomitem_p.h.

◆ operator->() [2/2]

const Reference * QQmlJS::Dom::Reference::operator-> ( ) const
inline

Definition at line 649 of file qqmldomitem_p.h.

◆ shouldCache()

bool QQmlJS::Dom::Reference::shouldCache ( ) const

Definition at line 2781 of file qqmldomitem.cpp.

Referenced by get(), and getAll().

Here is the caller graph for this function:

Member Data Documentation

◆ kindValue

DomType QQmlJS::Dom::Reference::kindValue = DomType::Reference
staticconstexpr

◆ referredObjectPath

Path QQmlJS::Dom::Reference::referredObjectPath

Definition at line 670 of file qqmldomitem_p.h.


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