QQmlSA::SourceLocation Class
class QQmlSA::SourceLocationRepresenta una ubicación o región en el código fuente. Más...
| Cabecera: | #include <SourceLocation> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
Funciones públicas
| 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) |
No miembros relacionados
| 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) |
Documentación de las funciones de los miembros
[explicit] SourceLocation::SourceLocation(quint32 offset = 0, quint32 length = 0, quint32 line = 0, quint32 column = 0)
Construye un nuevo SourceLocation con los valores dados por offset, length, line, y column.
SourceLocation::SourceLocation(const QQmlSA::SourceLocation &other)
Crea una copia de other.
[noexcept] SourceLocation::SourceLocation(QQmlSA::SourceLocation &&other)
Move-Construye una SourceLocation a partir de other.
[noexcept] SourceLocation::~SourceLocation()
Destruye esta instancia de SourceLocation.
quint32 SourceLocation::begin() const
Devuelve el desplazamiento del inicio de esta ubicación de origen.
quint32 SourceLocation::end() const
Devuelve el desplazamiento del final de esta ubicación de origen.
QQmlSA::SourceLocation SourceLocation::endZeroLengthLocation(QStringView text) const
Devuelve una ubicación de origen de longitud cero que apunta al final de esta ubicación de origen que apunta a text.
bool SourceLocation::isValid() const
Devuelve true si SourceLocation es válido, false en caso contrario.
quint32 SourceLocation::length() const
Devuelve la longitud de esta ubicación de origen.
quint32 SourceLocation::offset() const
Devuelve el desplazamiento del inicio de esta ubicación de origen.
quint32 SourceLocation::startColumn() const
Devuelve el número de columna que contiene el inicio de esta ubicación de origen.
quint32 SourceLocation::startLine() const
Devuelve el número de línea que contiene el inicio de esta ubicación de origen.
QQmlSA::SourceLocation SourceLocation::startZeroLengthLocation() const
Devuelve una ubicación de origen de longitud cero que apunta al principio de esta ubicación de origen.
[noexcept] QQmlSA::SourceLocation &SourceLocation::operator=(QQmlSA::SourceLocation &&other)
Mover-asigna other a este SourceLocation.
QQmlSA::SourceLocation &SourceLocation::operator=(const QQmlSA::SourceLocation &other)
Asigna other a este SourceLocation.
Relacionados No miembros
qsizetype qHash(const QQmlSA::SourceLocation &location, qsizetype seed = 0)
Devuelve el valor hash para location, utilizando seed para sembrar el cálculo.
bool operator!=(const QQmlSA::SourceLocation &lhs, const QQmlSA::SourceLocation &rhs)
Devuelve verdadero si lhs no es igual a rhs, y false en caso contrario. Consulte SourceLocation::operator== para saber cuándo dos ubicaciones de origen se consideran iguales.
bool operator==(const QQmlSA::SourceLocation &lhs, const QQmlSA::SourceLocation &rhs)
Devuelve verdadero si lhs es igual a rhs, y false en caso contrario. Dos SourceLocations se consideran iguales si tienen los mismos valores para sus miembros offset, length, line y column.
© 2026 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.