![]() |
Qt 6.x
The Qt SDK
|
#include <qqmldompath_p.h>
Public Types | |
using | Kind = PathEls::Kind |
using | Component = PathEls::PathComponent |
using | difference_type = long |
using | value_type = Path |
using | pointer = const Component * |
using | reference = const Path & |
using | iterator_category = std::forward_iterator_tag |
Static Public Member Functions | |
static ErrorGroups | myErrors () |
static Path | fromString (QString s, ErrorHandler errorHandler=nullptr) |
static Path | fromString (QStringView s, ErrorHandler errorHandler=nullptr) |
static Path | Root (PathRoot r) |
static Path | Root (QStringView s=u"") |
static Path | Root (QString s) |
static Path | Index (index_type i) |
static Path | Field (QStringView s=u"") |
static Path | Field (QString s) |
static Path | Key (QStringView s=u"") |
static Path | Key (QString s) |
static Path | Current (PathCurrent c) |
static Path | Current (QStringView s=u"") |
static Path | Current (QString s) |
static Path | Empty () |
static int | cmp (const Path &p1, const Path &p2) |
Friends | |
class | QQmlJS::Dom::PathEls::TestPaths |
class | FieldFilter |
size_t | qHash (const Path &, size_t) |
Definition at line 655 of file qqmldompath_p.h.
Definition at line 660 of file qqmldompath_p.h.
using QQmlJS::Dom::Path::difference_type = long |
Definition at line 732 of file qqmldompath_p.h.
using QQmlJS::Dom::Path::iterator_category = std::forward_iterator_tag |
Definition at line 736 of file qqmldompath_p.h.
using QQmlJS::Dom::Path::Kind = PathEls::Kind |
Definition at line 659 of file qqmldompath_p.h.
using QQmlJS::Dom::Path::pointer = const Component* |
Definition at line 734 of file qqmldompath_p.h.
using QQmlJS::Dom::Path::reference = const Path& |
Definition at line 735 of file qqmldompath_p.h.
using QQmlJS::Dom::Path::value_type = Path |
Definition at line 733 of file qqmldompath_p.h.
|
default |
Referenced by any(), Current(), current(), Current(), Current(), current(), dropFront(), dropTail(), Empty(), empty(), expandBack(), expandFront(), Field(), field(), Field(), fromString(), Index(), index(), key(), Key(), Key(), mid(), path(), Root(), Root(), Root(), and split().
|
inlineexplicit |
Definition at line 664 of file qqmldompath_p.h.
Path QQmlJS::Dom::Path::any | ( | ) | const |
Definition at line 641 of file qqmldompath.cpp.
Referenced by any().
Path QQmlJS::Dom::Path::appendComponent | ( | const PathEls::PathComponent & | c | ) |
Definition at line 837 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::Any, appendComponent(), QQmlJS::Dom::PathEls::Current, QQmlJS::Dom::PathEls::Empty, QQmlJS::Dom::PathEls::Field, QQmlJS::Dom::PathEls::Filter, QQmlJS::Dom::PathEls::Index, QQmlJS::Dom::PathEls::Key, QQmlJS::Dom::Other, and QQmlJS::Dom::PathEls::Root.
Referenced by appendComponent().
PathIterator QQmlJS::Dom::Path::begin | ( | ) | const |
Definition at line 203 of file qqmldompath.cpp.
bool QQmlJS::Dom::Path::checkHeadName | ( | QStringView | name | ) | const |
Definition at line 241 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::PathComponent::checkName().
Definition at line 793 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::PathComponent::cmp(), i, p1, p2, and qMin().
Referenced by QQmlJS::Dom::operator!=(), QQmlJS::Dom::operator<(), QQmlJS::Dom::operator<=(), QQmlJS::Dom::operator==(), QQmlJS::Dom::operator>(), and QQmlJS::Dom::operator>=().
|
static |
Definition at line 574 of file qqmldompath.cpp.
References Path().
Referenced by QQmlJS::Dom::Paths::lookupCppTypePath(), QQmlJS::Dom::Paths::lookupPropertyPath(), QQmlJS::Dom::Paths::lookupSymbolPath(), and QQmlJS::Dom::Paths::lookupTypePath().
Path QQmlJS::Dom::Path::current | ( | PathCurrent | s | ) | const |
Definition at line 664 of file qqmldompath.cpp.
References Path().
Referenced by current(), and current().
Definition at line 580 of file qqmldompath.cpp.
References Path().
Definition at line 670 of file qqmldompath.cpp.
References current().
|
static |
Definition at line 586 of file qqmldompath.cpp.
References Path().
Path QQmlJS::Dom::Path::current | ( | QStringView | s = u"" | ) | const |
Definition at line 677 of file qqmldompath.cpp.
References Path(), and current().
Path QQmlJS::Dom::Path::dropFront | ( | int | n = 1 | ) | const |
Definition at line 926 of file qqmldompath.cpp.
References Path().
Referenced by QQmlJS::Dom::AttachedInfo::find(), QQmlJS::Dom::PathIterator::operator++(), and QQmlJS::Dom::PathIterator::operator++().
Path QQmlJS::Dom::Path::dropTail | ( | int | n = 1 | ) | const |
Definition at line 933 of file qqmldompath.cpp.
References Path().
Definition at line 903 of file qqmldompath.cpp.
References i.
Referenced by QQmlJS::Dom::ErrorGroups::fatal(), and toString().
|
static |
Definition at line 592 of file qqmldompath.cpp.
References Path().
Path QQmlJS::Dom::Path::empty | ( | ) | const |
Definition at line 597 of file qqmldompath.cpp.
References Path(), and empty().
Referenced by empty().
PathIterator QQmlJS::Dom::Path::end | ( | ) | const |
Definition at line 208 of file qqmldompath.cpp.
Path QQmlJS::Dom::Path::expandBack | ( | ) | const |
Definition at line 771 of file qqmldompath.cpp.
References Path().
Referenced by path().
Path QQmlJS::Dom::Path::expandFront | ( | ) | const |
Definition at line 759 of file qqmldompath.cpp.
References Path().
Referenced by path().
Definition at line 605 of file qqmldompath.cpp.
References field().
Referenced by QQmlJS::Dom::RegionComments::addPostComment(), QQmlJS::Dom::RegionComments::addPreComment(), QQmlJS::Dom::ModuleIndex::autoExports(), QQmlJS::Dom::LoadInfo::canonicalPath(), QQmlJS::Dom::domCompare(), QQmlJS::Dom::QQmlDomAstCreator::endVisit(), QQmlJS::Dom::AttachedInfo::ensureItemAtPath(), QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion(), field(), field(), QQmlJS::Dom::AttachedInfo::findAttachedInfo(), QQmlJS::Dom::Paths::globalScopeInfoPath(), QQmlJS::Dom::Paths::globalScopePath(), QQmlJS::Dom::AttachedInfo::itemAtPath(), QQmlJS::Dom::Paths::jsFileInfoPath(), QQmlJS::Dom::Paths::jsFilePath(), QQmlJS::Dom::Paths::loadInfoPath(), QQmlJS::Dom::Paths::lookupCppTypePath(), QQmlJS::Dom::Paths::lookupPropertyPath(), QQmlJS::Dom::Paths::lookupSymbolPath(), QQmlJS::Dom::Paths::lookupTypePath(), QQmlJS::Dom::Paths::moduleIndexPath(), QQmlJS::Dom::Paths::moduleScopePath(), QQmlJS::Dom::Paths::qmlDirectoryInfoPath(), QQmlJS::Dom::Paths::qmlDirectoryPath(), QQmlJS::Dom::Paths::qmldirFileInfoPath(), QQmlJS::Dom::Paths::qmldirFilePath(), QQmlJS::Dom::Paths::qmlDirInfoPath(), QQmlJS::Dom::Paths::qmlDirPath(), QQmlJS::Dom::Paths::qmlFileInfoPath(), QQmlJS::Dom::Paths::qmlFileObjectPath(), QQmlJS::Dom::Paths::qmlFilePath(), QQmlJS::Dom::Paths::qmltypesFileInfoPath(), QQmlJS::Dom::Paths::qmltypesFilePath(), QQmlJS::Dom::Component::updatePathFromOwner(), QQmlJS::Dom::QmlComponent::updatePathFromOwner(), and QQmlJS::Dom::QQmlDomAstCreator::visit().
Definition at line 553 of file qqmldompath.cpp.
References Path().
Path QQmlJS::Dom::Path::field | ( | QStringView | name | ) | const |
Definition at line 612 of file qqmldompath.cpp.
References Path(), and field().
|
static |
Definition at line 547 of file qqmldompath.cpp.
References Path().
Referenced by QQmlJS::Dom::DomUniverse::canonicalPath(), QQmlJS::Dom::QQmlDomAstCreator::endVisit(), QQmlJS::Dom::DomUniverse::iterateDirectSubpaths(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::QQmlDomAstCreator::visit().
Path QQmlJS::Dom::Path::filter | ( | std::function< bool(DomItem)> | , |
QStringView | desc = u"<native code filter>" |
||
) | const |
|
static |
Definition at line 954 of file qqmldompath.cpp.
References fromString().
Referenced by fromString().
|
static |
Definition at line 300 of file qqmldompath.cpp.
References Path(), QString::append(), arg, QString::at(), at, dot(), QQmlJS::Dom::PathEls::End, error, QQmlJS::Dom::ErrorGroups::error(), QChar::fromLatin1(), QQmlJS::Dom::ErrorMessage::handle(), i, QQmlJS::Dom::PathEls::IndexOrKey, QQmlJS::Dom::ErrorGroups::info(), myErrors(), QString::number(), ok, Q_ASSERT, quote(), QQmlJS::Dom::PathEls::Start, state, tr, and QQmlJS::Dom::ErrorGroups::warning().
Path QQmlJS::Dom::Path::head | ( | ) | const |
Definition at line 260 of file qqmldompath.cpp.
References mid().
Referenced by QQmlJS::Dom::AttachedInfo::find(), and QQmlJS::Dom::PathIterator::operator*().
PathCurrent QQmlJS::Dom::Path::headCurrent | ( | ) | const |
Definition at line 221 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::Current::asCurrent(), and QQmlJS::Dom::Other.
function< bool(DomItem)> QQmlJS::Dom::Path::headFilter | ( | ) | const |
Definition at line 251 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::Filter::asFilter(), and function.
index_type QQmlJS::Dom::Path::headIndex | ( | index_type | defaultValue = -1 | ) | const |
Definition at line 246 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::PathComponent::index().
Path::Kind QQmlJS::Dom::Path::headKind | ( | ) | const |
Definition at line 229 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::PathComponent::kind().
QString QQmlJS::Dom::Path::headName | ( | ) | const |
Definition at line 236 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::PathComponent::name().
PathRoot QQmlJS::Dom::Path::headRoot | ( | ) | const |
Definition at line 213 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::Root::asRoot(), and QQmlJS::Dom::Other.
|
static |
Path QQmlJS::Dom::Path::index | ( | index_type | i | ) | const |
Definition at line 633 of file qqmldompath.cpp.
References Path(), i, and index().
Referenced by QQmlJS::Dom::RegionComments::addPostComment(), QQmlJS::Dom::QmlFile::addPragma(), QQmlJS::Dom::RegionComments::addPreComment(), QQmlJS::Dom::EnumDecl::addValue(), QQmlJS::Dom::appendUpdatableElementInQList(), QQmlJS::Dom::domCompare(), index(), QQmlJS::Dom::insertUpdatableElementInMultiMap(), QQmlJS::Dom::Paths::qmlFileObjectPath(), QQmlJS::Dom::updatePathFromOwnerMultiMap(), QQmlJS::Dom::updatePathFromOwnerQList(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::QQmlDomAstCreator::visit().
Definition at line 620 of file qqmldompath.cpp.
Referenced by QQmlJS::Dom::RegionComments::addPostComment(), QQmlJS::Dom::RegionComments::addPreComment(), QQmlJS::Dom::LoadInfo::canonicalPath(), QQmlJS::Dom::domCompare(), QQmlJS::Dom::AttachedInfo::ensureItemAtPath(), QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion(), QQmlJS::Dom::AttachedInfo::findAttachedInfo(), QQmlJS::Dom::Paths::globalScopeInfoPath(), QQmlJS::Dom::insertUpdatableElementInMultiMap(), QQmlJS::Dom::AttachedInfo::itemAtPath(), QQmlJS::Dom::Paths::jsFileInfoPath(), key(), QQmlJS::Dom::Paths::loadInfoPath(), QQmlJS::Dom::Paths::lookupCppTypePath(), QQmlJS::Dom::Paths::lookupPropertyPath(), QQmlJS::Dom::Paths::lookupSymbolPath(), QQmlJS::Dom::Paths::lookupTypePath(), QQmlJS::Dom::Paths::moduleIndexPath(), QQmlJS::Dom::Paths::moduleScopePath(), QQmlJS::Dom::ModuleScope::pathFromOwner(), QQmlJS::Dom::Paths::qmlDirectoryInfoPath(), QQmlJS::Dom::Paths::qmldirFileInfoPath(), QQmlJS::Dom::Paths::qmlDirInfoPath(), QQmlJS::Dom::Paths::qmlFileInfoPath(), QQmlJS::Dom::Paths::qmlFileObjectPath(), QQmlJS::Dom::Paths::qmltypesFileInfoPath(), and QQmlJS::Dom::updatePathFromOwnerMultiMap().
Definition at line 567 of file qqmldompath.cpp.
References Path().
Path QQmlJS::Dom::Path::key | ( | QStringView | name | ) | const |
Definition at line 628 of file qqmldompath.cpp.
|
static |
Definition at line 559 of file qqmldompath.cpp.
References Path().
Path QQmlJS::Dom::Path::last | ( | ) | const |
Definition at line 265 of file qqmldompath.cpp.
References mid().
|
inline |
Definition at line 669 of file qqmldompath_p.h.
Referenced by QQmlJS::Dom::ErrorGroups::fatal(), QQmlJS::Dom::OutWriter::itemStart(), mid(), QQmlJS::Dom::operator!=(), QQmlJS::Dom::operator==(), path(), split(), and QQmlJS::Dom::OutWriter::updatedFile().
Path QQmlJS::Dom::Path::mid | ( | int | offset | ) | const |
Definition at line 949 of file qqmldompath.cpp.
References mid().
Path QQmlJS::Dom::Path::mid | ( | int | offset, |
int | length | ||
) | const |
Definition at line 940 of file qqmldompath.cpp.
References Path(), length(), and qMin().
Referenced by QQmlJS::Dom::AttachedInfo::ensure(), QQmlJS::Dom::AttachedInfo::find(), head(), QQmlJS::Dom::OutWriter::itemStart(), last(), mid(), operator[](), path(), and split().
|
static |
Definition at line 897 of file qqmldompath.cpp.
References NewErrorGroup.
Referenced by fromString(), QQmlJS::Dom::Paths::moduleIndexPath(), and QQmlJS::Dom::Paths::moduleScopePath().
|
explicit |
Definition at line 198 of file qqmldompath.cpp.
Path & QQmlJS::Dom::Path::operator++ | ( | ) |
Definition at line 778 of file qqmldompath.cpp.
Path QQmlJS::Dom::Path::operator++ | ( | int | ) |
Definition at line 785 of file qqmldompath.cpp.
Path QQmlJS::Dom::Path::operator[] | ( | int | i | ) | const |
Definition at line 685 of file qqmldompath.cpp.
References Path(), expandBack(), expandFront(), i, QQmlJS::Dom::inQString(), QStringView::isEmpty(), j, length(), mid(), path(), and QQmlJS::Dom::PathEls::PathComponent::stringView().
Referenced by QQmlJS::Dom::MutableDomItem::canonicalPath(), path(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::AttachedInfoT< Info >::visitTree().
Definition at line 522 of file qqmldompath.cpp.
References Path().
Referenced by QQmlJS::Dom::DomUniverse::canonicalPath(), QQmlJS::Dom::LoadInfo::canonicalPath(), QQmlJS::Dom::Paths::globalScopeInfoPath(), QQmlJS::Dom::Paths::jsFileInfoPath(), QQmlJS::Dom::Paths::loadInfoPath(), QQmlJS::Dom::Paths::moduleIndexPath(), QQmlJS::Dom::Paths::moduleScopePath(), QQmlJS::Dom::Paths::qmlDirectoryInfoPath(), QQmlJS::Dom::Paths::qmldirFileInfoPath(), QQmlJS::Dom::Paths::qmlDirInfoPath(), QQmlJS::Dom::Paths::qmlFileInfoPath(), and QQmlJS::Dom::Paths::qmltypesFileInfoPath().
Definition at line 528 of file qqmldompath.cpp.
References Path().
|
static |
Definition at line 540 of file qqmldompath.cpp.
References Path().
Source QQmlJS::Dom::Path::split | ( | ) | const |
QString QQmlJS::Dom::Path::toString | ( | ) | const |
Definition at line 917 of file qqmldompath.cpp.
Referenced by QQmlJS::Dom::OutWriterState::closeState().
|
friend |
Definition at line 744 of file qqmldompath_p.h.
|
friend |
Definition at line 795 of file qqmldompath_p.h.
|
friend |
Definition at line 743 of file qqmldompath_p.h.