IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QIterable Class

QIterable is a template class that is the base class for QSequentialIterable and QAssociativeIterable.

This class was introduced in Qt 6.0.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QIterable Class

  • Header: QIterable

  • Since: Qt 6.0

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Core)

    target_link_libraries(mytarget PRIVATE Qt6::Core)

  • qmake: QT += core

  • Inherited By: QAssociativeIterable and QSequentialIterable

Detailed Description

 

Member Function Documentation

 

bool QIterable::canForwardIterate() const

Returns whether it is possible to iterate over the container in forward direction. This corresponds to the std::forward_iterator_tag iterator trait of the iterator and const_iterator of the container.

bool QIterable::canInputIterate() const

Returns whether the container has an input iterator. This corresponds to the std::input_iterator_tag iterator trait of the iterator and const_iterator of the container.

bool QIterable::canRandomAccessIterate() const

Returns whether it is possible to efficiently skip over multiple values using and iterator. This corresponds to the std::random_access_iterator_tag iterator trait of the iterator and const_iterator of the container.

bool QIterable::canReverseIterate() const

Returns whether it is possible to iterate over the container in reverse. This corresponds to the std::bidirectional_iterator_tag iterator trait of the const_iterator of the container.

QConstIterator<Container> QIterable::constBegin() const

Returns a QConstIterator for the beginning of the container. This can be used in stl-style iteration.

See Also

See also constEnd(), mutableBegin()

QConstIterator<Container> QIterable::constEnd() const

Returns a Qterable::QConstIterator for the end of the container. This can be used in stl-style iteration.

See Also

See also constBegin(), mutableEnd()

QIterator<Container> QIterable::mutableBegin()

Returns a QIterator for the beginning of the container. This can be used in stl-style iteration.

See Also

See also mutableEnd(), constBegin()

QIterator<Container> QIterable::mutableEnd()

Returns a QSequentialIterable::iterator for the end of the container. This can be used in stl-style iteration.

See Also

See also mutableBegin(), constEnd()

qsizetype QIterable::size() const

Returns the number of values in the container.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+