QtTaskTree::ListIterator Class
template <typename T> class QtTaskTree::ListIteratorThe list iterator to be used inside For element. More...
Header: | #include <qtasktree.h> |
Inherits: | QtTaskTree::Iterator |
Note: All functions in this class are reentrant.
Public Functions
ListIterator(const QList<T> &list) | |
const T & | operator*() const |
const T * | operator->() const |
See also Iterator, ForeverIterator, RepeatIterator, and UntilIterator.
Member Function Documentation
ListIterator::ListIterator(const QList<T> &list)
Constructs the list iterator for the For (ListIterator(list)) >> Do {} construct. The iterator will iterate over each element from the passed list.
See also Iterator::iteration().
const T &ListIterator::operator*() const
Returns a reference to the current element inside a Do body. Use this function only from inside the handler body of any GroupItem element placed in the QtTaskTree::Do body of the recipe, otherwise you may expect a crash. Make sure that ListIterator is passed to the For element.
const T *ListIterator::operator->() const
Returns a pointer to the current element inside a Do body. Use this function only from inside the handler body of any GroupItem element placed in the QtTaskTree::Do body of the recipe, otherwise you may expect a crash. Make sure that ListIterator is passed to the For element.
© 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.