QIterable Class
template <typename Container> class QIterableQIterable ist eine Vorlagenklasse, die die Basisklasse für QSequentialIterable und QAssociativeIterable ist. Mehr...
Kopfzeile: | #include <QIterable> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
Seit: | Qt 6.0 |
Geerbt von: |
Öffentliche Funktionen
bool | canForwardIterate() const |
bool | canInputIterate() const |
bool | canRandomAccessIterate() const |
bool | canReverseIterate() const |
QConstIterator<Container> | constBegin() const |
QConstIterator<Container> | constEnd() const |
QIterator<Container> | mutableBegin() |
QIterator<Container> | mutableEnd() |
qsizetype | size() const |
Dokumentation der Mitgliedsfunktionen
bool QIterable::canForwardIterate() const
Gibt zurück, ob es möglich ist, über den Container in Vorwärtsrichtung zu iterieren. Dies entspricht der std::forward_iterator_tag Iterator-Eigenschaft des Iterators und const_iterator des Containers.
bool QIterable::canInputIterate() const
Gibt zurück, ob der Container einen Input-Iterator hat. Dies entspricht der Iterator-Eigenschaft std::input_iterator_tag des Iterators und const_iterator des Containers.
bool QIterable::canRandomAccessIterate() const
Gibt zurück, ob es möglich ist, mit einem Iterator effizient über mehrere Werte zu springen. Dies entspricht der Iterator-Eigenschaft std::random_access_iterator_tag des Iterators und const_iterator des Containers.
bool QIterable::canReverseIterate() const
Gibt zurück, ob es möglich ist, über den Container in umgekehrter Richtung zu iterieren. Dies entspricht der std::bidirectional_iterator_tag Iterator-Eigenschaft des const_iterator des Containers.
QConstIterator<Container> QIterable::constBegin() const
Gibt eine QConstIterator für den Anfang des Containers zurück. Dies kann in der stl-artigen Iteration verwendet werden.
Siehe auch constEnd() und mutableBegin().
QConstIterator<Container> QIterable::constEnd() const
Gibt einen Qterable::QConstIterator für das Ende des Containers zurück. Dieser kann in der stl-artigen Iteration verwendet werden.
Siehe auch constBegin() und mutableEnd().
QIterator<Container> QIterable::mutableBegin()
Gibt eine QIterator für den Anfang des Containers zurück. Dies kann in der stl-artigen Iteration verwendet werden.
Siehe auch mutableEnd() und constBegin().
QIterator<Container> QIterable::mutableEnd()
Gibt eine QSequentialIterable::iterator für das Ende des Containers zurück. Dies kann in der stl-artigen Iteration verwendet werden.
Siehe auch mutableBegin() und constEnd().
qsizetype QIterable::size() const
Gibt die Anzahl der Werte im Container zurück.
© 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.