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::PathEls::PathComponent Class Reference

#include <qqmldompath_p.h>

Collaboration diagram for QQmlJS::Dom::PathEls::PathComponent:

Public Member Functions

 PathComponent ()=default
 PathComponent (const PathComponent &)=default
 PathComponent (PathComponent &&)=default
PathComponent & operator= (const PathComponent &)=default
PathComponent & operator= (PathComponent &&)=default
 ~PathComponent ()=default
Kind kind () const
QString name () const
bool checkName (QStringView ss) const
QStringView stringView () const
index_type index (index_type defaultValue=-1) const
void dump (const Sink &sinksink) const
bool hasSquareBrackets () const
const Field * asField () const
const Index * asIndex () const
const Root * asRoot () const
const Current * asCurrent () const
size_t hash (size_t seed) const
 PathComponent (Index &&o)
 PathComponent (Key &&o)
Q_IMPLICIT PathComponent (FieldName ff)
Q_IMPLICIT PathComponent (PathRoot rr)
Q_IMPLICIT PathComponent (PathCurrent cc)

Static Public Member Functions

static int cmp (const PathComponent &p1, const PathComponent &p2)

Friends

class QQmlJS::Dom::Path
class QQmlJS::Dom::PathEls::TestPaths

Detailed Description

Definition at line 463 of file qqmldompath_p.h.

Constructor & Destructor Documentation

◆ PathComponent() [1/8]

QQmlJS::Dom::PathEls::PathComponent::PathComponent ( )
default

Referenced by QQmlJS::Dom::FieldFilter::operator()(), and QQmlJS::Dom::Path::withEmpty().

Here is the caller graph for this function:

◆ PathComponent() [2/8]

QQmlJS::Dom::PathEls::PathComponent::PathComponent ( const PathComponent & )
default

◆ PathComponent() [3/8]

QQmlJS::Dom::PathEls::PathComponent::PathComponent ( PathComponent && )
default

◆ ~PathComponent()

QQmlJS::Dom::PathEls::PathComponent::~PathComponent ( )
default

◆ PathComponent() [4/8]

QQmlJS::Dom::PathEls::PathComponent::PathComponent ( Index && o)
inline

Definition at line 513 of file qqmldompath_p.h.

◆ PathComponent() [5/8]

QQmlJS::Dom::PathEls::PathComponent::PathComponent ( Key && o)
inline

Definition at line 514 of file qqmldompath_p.h.

◆ PathComponent() [6/8]

Q_IMPLICIT QQmlJS::Dom::PathEls::PathComponent::PathComponent ( FieldName f)
inline

Definition at line 517 of file qqmldompath_p.h.

◆ PathComponent() [7/8]

Q_IMPLICIT QQmlJS::Dom::PathEls::PathComponent::PathComponent ( PathRoot r)
inline

Definition at line 518 of file qqmldompath_p.h.

◆ PathComponent() [8/8]

Q_IMPLICIT QQmlJS::Dom::PathEls::PathComponent::PathComponent ( PathCurrent c)
inline

Definition at line 519 of file qqmldompath_p.h.

Member Function Documentation

◆ asCurrent()

const Current * QQmlJS::Dom::PathEls::PathComponent::asCurrent ( ) const
inline

Definition at line 507 of file qqmldompath_p.h.

Referenced by QQmlJS::Dom::Path::headCurrent().

Here is the caller graph for this function:

◆ asField()

const Field * QQmlJS::Dom::PathEls::PathComponent::asField ( ) const
inline

Definition at line 504 of file qqmldompath_p.h.

Referenced by QQmlJS::Dom::DomBase::field(), and QQmlJS::Dom::Path::headField().

Here is the caller graph for this function:

◆ asIndex()

const Index * QQmlJS::Dom::PathEls::PathComponent::asIndex ( ) const
inline

Definition at line 505 of file qqmldompath_p.h.

Referenced by QQmlJS::Dom::Path::headIndex().

Here is the caller graph for this function:

◆ asRoot()

const Root * QQmlJS::Dom::PathEls::PathComponent::asRoot ( ) const
inline

Definition at line 506 of file qqmldompath_p.h.

Referenced by QQmlJS::Dom::Path::headRoot().

Here is the caller graph for this function:

◆ checkName()

bool QQmlJS::Dom::PathEls::PathComponent::checkName ( QStringView s) const
inline

Definition at line 479 of file qqmldompath_p.h.

◆ cmp()

int QQmlJS::Dom::PathEls::PathComponent::cmp ( const PathComponent & p1,
const PathComponent & p2 )
static

Definition at line 121 of file qqmldompath.cpp.

References QQmlJS::Dom::PathEls::Current, QQmlJS::Dom::PathEls::Empty, QQmlJS::Dom::Env, QQmlJS::Dom::PathEls::Field, QQmlJS::Dom::PathEls::Index, QQmlJS::Dom::PathEls::Key, kind(), QQmlJS::Dom::PathEls::Root, QQmlJS::Dom::Top, and QQmlJS::Dom::Universe.

Referenced by QQmlJS::Dom::Path::cmp(), QQmlJS::Dom::PathEls::operator!=(), QQmlJS::Dom::PathEls::operator<(), QQmlJS::Dom::PathEls::operator<=(), QQmlJS::Dom::PathEls::operator==(), QQmlJS::Dom::PathEls::operator>(), and QQmlJS::Dom::PathEls::operator>=().

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

◆ dump()

void QQmlJS::Dom::PathEls::PathComponent::dump ( const Sink & sink) const
inline

Definition at line 494 of file qqmldompath_p.h.

◆ hash()

size_t QQmlJS::Dom::PathEls::PathComponent::hash ( size_t seed) const

Definition at line 165 of file qqmldompath.cpp.

References QQmlJS::Dom::PathEls::Current, QQmlJS::Dom::PathEls::Empty, QQmlJS::Dom::Env, QQmlJS::Dom::PathEls::Field, QQmlJS::Dom::PathEls::Index, QQmlJS::Dom::PathEls::Key, kind(), QQmlJS::Dom::PathEls::Root, QQmlJS::Dom::Top, and QQmlJS::Dom::Universe.

Here is the call graph for this function:

◆ hasSquareBrackets()

bool QQmlJS::Dom::PathEls::PathComponent::hasSquareBrackets ( ) const
inline

Definition at line 499 of file qqmldompath_p.h.

◆ index()

index_type QQmlJS::Dom::PathEls::PathComponent::index ( index_type defaultValue = -1) const
inline

Definition at line 489 of file qqmldompath_p.h.

◆ kind()

Kind QQmlJS::Dom::PathEls::PathComponent::kind ( ) const
inline

Definition at line 472 of file qqmldompath_p.h.

Referenced by cmp(), QQmlJS::Dom::DomBase::dump(), QQmlJS::Dom::DomBase::fields(), hash(), QQmlJS::Dom::Path::headKind(), QQmlJS::Dom::DomBase::index(), QQmlJS::Dom::DomBase::indexes(), QQmlJS::Dom::DomBase::key(), QQmlJS::Dom::DomBase::keys(), QQmlJS::Dom::FieldFilter::operator()(), and QQmlJS::Dom::Path::split().

Here is the caller graph for this function:

◆ name()

QString QQmlJS::Dom::PathEls::PathComponent::name ( ) const
inline

Definition at line 474 of file qqmldompath_p.h.

◆ operator=() [1/2]

PathComponent & QQmlJS::Dom::PathEls::PathComponent::operator= ( const PathComponent & )
default

◆ operator=() [2/2]

PathComponent & QQmlJS::Dom::PathEls::PathComponent::operator= ( PathComponent && )
default

◆ stringView()

QStringView QQmlJS::Dom::PathEls::PathComponent::stringView ( ) const
inline

Definition at line 484 of file qqmldompath_p.h.

◆ QQmlJS::Dom::Path

friend class QQmlJS::Dom::Path
friend

Definition at line 522 of file qqmldompath_p.h.

◆ QQmlJS::Dom::PathEls::TestPaths

friend class QQmlJS::Dom::PathEls::TestPaths
friend

Definition at line 523 of file qqmldompath_p.h.


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