Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlJS::Dom::PathEls::Index Class Referencefinal

#include <qqmldompath_p.h>

+ Inheritance diagram for QQmlJS::Dom::PathEls::Index:
+ Collaboration diagram for QQmlJS::Dom::PathEls::Index:

Public Member Functions

 Index ()=default
 
 Index (index_type i)
 
Kind kind () const override
 
QString name () const override
 
bool checkName (QStringView s) const override
 
index_type index (index_type=-1) const override
 
bool hasSquareBrackets () const override
 
const IndexasIndex () const override
 
- Public Member Functions inherited from QQmlJS::Dom::PathEls::Base
virtual ~Base ()=default
 
virtual Kind kind () const =0
 
virtual QString name () const =0
 
virtual bool checkName (QStringView s) const =0
 
virtual QStringView stringView () const
 
virtual index_type index (index_type defaultValue=-1) const
 
virtual void dump (Sink sink) const
 
virtual bool hasSquareBrackets () const
 
virtual const EmptyasEmpty () const
 
virtual const FieldasField () const
 
virtual const IndexasIndex () const
 
virtual const KeyasKey () const
 
virtual const RootasRoot () const
 
virtual const CurrentasCurrent () const
 
virtual const AnyasAny () const
 
virtual const FilterasFilter () const
 

Public Attributes

index_type indexValue = -1
 

Detailed Description

Definition at line 118 of file qqmldompath_p.h.

Constructor & Destructor Documentation

◆ Index() [1/2]

QQmlJS::Dom::PathEls::Index::Index ( )
default

◆ Index() [2/2]

QQmlJS::Dom::PathEls::Index::Index ( index_type  i)
inline

Definition at line 122 of file qqmldompath_p.h.

Member Function Documentation

◆ asIndex()

const Index * QQmlJS::Dom::PathEls::Index::asIndex ( ) const
inlineoverridevirtual

Reimplemented from QQmlJS::Dom::PathEls::Base.

Definition at line 128 of file qqmldompath_p.h.

◆ checkName()

bool QQmlJS::Dom::PathEls::Index::checkName ( QStringView  s) const
inlineoverridevirtual

Implements QQmlJS::Dom::PathEls::Base.

Definition at line 125 of file qqmldompath_p.h.

References name().

+ Here is the call graph for this function:

◆ hasSquareBrackets()

bool QQmlJS::Dom::PathEls::Index::hasSquareBrackets ( ) const
inlineoverridevirtual

Reimplemented from QQmlJS::Dom::PathEls::Base.

Definition at line 127 of file qqmldompath_p.h.

◆ index()

index_type QQmlJS::Dom::PathEls::Index::index ( index_type  = -1) const
inlineoverridevirtual

Reimplemented from QQmlJS::Dom::PathEls::Base.

Definition at line 126 of file qqmldompath_p.h.

References indexValue.

◆ kind()

Kind QQmlJS::Dom::PathEls::Index::kind ( ) const
inlineoverridevirtual

Implements QQmlJS::Dom::PathEls::Base.

Definition at line 123 of file qqmldompath_p.h.

References QQmlJS::Dom::PathEls::Index.

◆ name()

QString QQmlJS::Dom::PathEls::Index::name ( ) const
inlineoverridevirtual

Implements QQmlJS::Dom::PathEls::Base.

Definition at line 124 of file qqmldompath_p.h.

References indexValue, and QString::number().

Referenced by checkName().

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

Member Data Documentation

◆ indexValue

index_type QQmlJS::Dom::PathEls::Index::indexValue = -1

Definition at line 130 of file qqmldompath_p.h.

Referenced by index(), and name().


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