QQmlSA::SourceLocation Class
class QQmlSA::SourceLocationStellt eine Stelle oder Region im Quellcode dar. Mehr...
Kopfzeile: | #include <SourceLocation> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
Status: | Technische Vorschau |
Öffentliche Funktionen
SourceLocation(quint32 offset = 0, quint32 length = 0, quint32 line = 0, quint32 column = 0) | |
SourceLocation(const QQmlSA::SourceLocation &other) | |
SourceLocation(QQmlSA::SourceLocation &&other) | |
~SourceLocation() | |
quint32 | begin() const |
quint32 | end() const |
QQmlSA::SourceLocation | endZeroLengthLocation(QStringView text) const |
bool | isValid() const |
quint32 | length() const |
quint32 | offset() const |
quint32 | startColumn() const |
quint32 | startLine() const |
QQmlSA::SourceLocation | startZeroLengthLocation() const |
QQmlSA::SourceLocation & | operator=(QQmlSA::SourceLocation &&other) |
QQmlSA::SourceLocation & | operator=(const QQmlSA::SourceLocation &other) |
Verwandte Nicht-Mitglieder
qsizetype | qHash(const QQmlSA::SourceLocation &location, qsizetype seed = 0) |
bool | operator!=(const QQmlSA::SourceLocation &lhs, const QQmlSA::SourceLocation &rhs) |
bool | operator==(const QQmlSA::SourceLocation &lhs, const QQmlSA::SourceLocation &rhs) |
Dokumentation der Mitgliederfunktionen
[explicit]
SourceLocation::SourceLocation(quint32 offset = 0, quint32 length = 0, quint32 line = 0, quint32 column = 0)
Konstruiert eine neue SourceLocation mit den durch offset, length, line und column angegebenen Werten.
SourceLocation::SourceLocation(const QQmlSA::SourceLocation &other)
Erzeugt eine Kopie von other.
[noexcept]
SourceLocation::SourceLocation(QQmlSA::SourceLocation &&other)
Move-Konstruiert eine SourceLocation aus other.
[noexcept]
SourceLocation::~SourceLocation()
Zerstört diese SourceLocation Instanz.
quint32 SourceLocation::begin() const
Gibt den Offset des Beginns dieser Quellposition zurück.
quint32 SourceLocation::end() const
Gibt den Offset des Endes dieser Quellposition zurück.
QQmlSA::SourceLocation SourceLocation::endZeroLengthLocation(QStringView text) const
Gibt eine Quellposition der Länge Null zurück, die auf das Ende dieser Quellposition zeigt, die auf text zeigt.
bool SourceLocation::isValid() const
Gibt true
zurück, wenn diese SourceLocation gültig ist, andernfalls false
.
quint32 SourceLocation::length() const
Gibt die Länge dieses Quellortes zurück.
quint32 SourceLocation::offset() const
Gibt den Offset des Beginns dieser Quellposition zurück.
quint32 SourceLocation::startColumn() const
Gibt die Nummer der Spalte zurück, die den Anfang dieser Quellposition enthält.
quint32 SourceLocation::startLine() const
Gibt die Zeilennummer zurück, die den Anfang dieser Quellstelle enthält.
QQmlSA::SourceLocation SourceLocation::startZeroLengthLocation() const
Gibt eine Quellposition der Länge Null zurück, die auf den Anfang dieser Quellposition zeigt.
[noexcept]
QQmlSA::SourceLocation &SourceLocation::operator=(QQmlSA::SourceLocation &&other)
Verschieben - ordnet other dieser SourceLocation zu.
QQmlSA::SourceLocation &SourceLocation::operator=(const QQmlSA::SourceLocation &other)
Weist other dieser SourceLocation zu.
Verwandte Nicht-Mitglieder
qsizetype qHash(const QQmlSA::SourceLocation &location, qsizetype seed = 0)
Gibt den Hash-Wert für location zurück, wobei seed als Startwert für die Berechnung verwendet wird.
bool operator!=(const QQmlSA::SourceLocation &lhs, const QQmlSA::SourceLocation &rhs)
Gibt true zurück, wenn lhs nicht gleich rhs ist, und andernfalls false
. Siehe SourceLocation::operator== für den Fall, dass zwei Quellorte als gleich angesehen werden.
bool operator==(const QQmlSA::SourceLocation &lhs, const QQmlSA::SourceLocation &rhs)
Gibt true zurück, wenn lhs gleich rhs ist, und andernfalls false
. Zwei SourceLocations werden als gleich angesehen, wenn sie die gleichen Werte für ihre Offset-, Längen-, Zeilen- und Spaltenelemente haben.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.