Sur cette page

QRangeModelAdapter::RowIterator Struct

struct QRangeModelAdapter::RowIterator

Fournit un itérateur non-const de type STL sur les lignes d'un modèle. En savoir plus...

Cette structure est en préversion technologique et est susceptible d'être modifiée.

Cette structure a été introduite dans Qt 6.11.

Fonctions publiques

RowIterator(const QRangeModelAdapter<Range, Protocol, Model>::RowIterator &other)
RowIterator(QRangeModelAdapter<Range, Protocol, Model>::RowIterator &&other)
~RowIterator()
QRangeModelAdapter<Range, Protocol, Model>::RowIterator &operator=(QRangeModelAdapter<Range, Protocol, Model>::RowIterator &&other)
QRangeModelAdapter<Range, Protocol, Model>::RowIterator &operator=(const QRangeModelAdapter<Range, Protocol, Model>::RowIterator &other)

Description détaillée

L'itérateur modélise std::random_access_iterator. Si le modèle est une liste, la déréférence de l'itérateur renvoie un wrapper DataReference pour l'élément pointé par l'itérateur dans le modèle.

Pour les tables et les arbres, le déréférencement de l’itérateur renvoie un objet ` RowReference ` correspondant à la ligne pointée.

Documentation des fonctions membres

[default] RowIterator::RowIterator(const QRangeModelAdapter<Range, Protocol, Model>::RowIterator &other)

Crée une instance de ` RowIterator` par copie.

[default] RowIterator::RowIterator(QRangeModelAdapter<Range, Protocol, Model>::RowIterator &&other)

Crée par construction par déplacement une instance de ` RowIterator`.

[default] RowIterator::~RowIterator()

Supprime l'instance de RowIterator.

[default] QRangeModelAdapter<Range, Protocol, Model>::RowIterator &RowIterator::operator=(QRangeModelAdapter<Range, Protocol, Model>::RowIterator &&other)

Cette opération attribue l'other à cette instance RowIterator.

[default] QRangeModelAdapter<Range, Protocol, Model>::RowIterator &RowIterator::operator=(const QRangeModelAdapter<Range, Protocol, Model>::RowIterator &other)

Attribue par copie l'other à cette instance d'RowIterator.

© 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.