![]() |
CopperSpice API
2.0.0
|
The QList::const_iterator class provides an STL style const iterator for QList and QQueue. More...
Public Typedefs | |
| using | iterator_category = std::random_access_iterator_tag |
The QList::const_iterator class provides an STL style const iterator for QList and QQueue.
Equivalent to std::random_access_iterator_tag indicating this iterator is a random access iterator.
Constructs an uninitialized iterator.
Methods like operator*() and operator++() should not be called on an uninitialized iterator. Use operator=() to assign a value to it before using it.
| QList< T >::const_iterator< T >::const_iterator | ( | const const_iterator< T > & | other | ) |
Copy constructs a new QList::const_iterator from other.
| QList< T >::const_iterator< T >::const_iterator | ( | const iterator & | other | ) |
Copy constructs a new QList::const_iterator from other.
| QList< T >::const_iterator< T >::const_iterator | ( | const_iterator< T > && | other | ) |
Move constructs a new QList::const_iterator from other.
| QList< T >::const_iterator< T >::const_iterator | ( | iterator && | other | ) |
Move constructs a new QList::const_iterator from other.
| bool QList< T >::const_iterator< T >::operator!= | ( | const_iterator< T > | other | ) | const |
Returns true if other points to a different item than this iterator, otherwise returns false.
| const T & QList< T >::const_iterator< T >::operator* | ( | ) | const |
Returns a reference to the current item.
| const_iterator QList< T >::const_iterator< T >::operator+ | ( | size_type | n | ) | const |
Returns an iterator to the item at n positions forward from this iterator. If n is negative the iterator goes backward.
| const_iterator & QList< T >::const_iterator< T >::operator++ | ( | ) |
The prefix ++ operator advances the iterator to the next item in the list and returns an iterator to the new current item.
Calling this method on QList::cend() causes undefined behavior.
| const_iterator QList< T >::const_iterator< T >::operator++ | ( | int | ) |
The postfix ++ operator advances the iterator to the next item in the list and returns an iterator to the previous current item.
Calling this method on QList::cend() causes undefined behavior.
| const_iterator & QList< T >::const_iterator< T >::operator+= | ( | size_type | n | ) |
Advances the iterator by n items. If n is negative the iterator goes backward.
| int QList< T >::const_iterator< T >::operator- | ( | const_iterator< T > | other | ) | const |
Returns the number of items between the item pointed to by other and the item pointed to by this iterator.
| const_iterator QList< T >::const_iterator< T >::operator- | ( | size_type | n | ) | const |
Returns an iterator to the item at n positions backward from this iterator. If n is negative the iterator goes forward.
| const_iterator & QList< T >::const_iterator< T >::operator-- | ( | ) |
The prefix -- operator decrements the iterator to the previous item in the list and returns an iterator to the new current item.
Calling this method on QList::cbegin() causes undefined behavior.
| const_iterator QList< T >::const_iterator< T >::operator-- | ( | int | ) |
The postfix -- operator decrements the iterator to the previous item in the list and returns an iterator to the previous current item.
Calling this method on QList::cbegin() causes undefined behavior.
| const_iterator & QList< T >::const_iterator< T >::operator-= | ( | size_type | n | ) |
Makes the iterator go back by n items. If n is negative the iterator goes forward.
| const T * QList< T >::const_iterator< T >::operator-> | ( | ) | const |
Returns a pointer to the current item.
| bool QList< T >::const_iterator< T >::operator< | ( | const const_iterator< T > & | other | ) | const |
Returns true if the item pointed to by this iterator is less than the item pointed to by the other iterator.
| bool QList< T >::const_iterator< T >::operator< | ( | const iterator & | other | ) | const |
Returns true if the item pointed to by this iterator is less than the item pointed to by the other iterator.
| bool QList< T >::const_iterator< T >::operator<= | ( | const const_iterator< T > & | other | ) | const |
Returns true if the item pointed to by this iterator is less than or equal to the item pointed to by the other iterator.
| bool QList< T >::const_iterator< T >::operator<= | ( | const iterator & | other | ) | const |
Returns true if the item pointed to by this iterator is less than or equal to the item pointed to by the other iterator.
| const_iterator & QList< T >::const_iterator< T >::operator= | ( | const const_iterator< T > & | other | ) |
Copy assigns from other and returns a reference to this object.
| const_iterator & QList< T >::const_iterator< T >::operator= | ( | const iterator & | other | ) |
Copy assigns from other and returns a reference to this object.
| const_iterator & QList< T >::const_iterator< T >::operator= | ( | const_iterator< T > && | other | ) |
Move assigns from other and returns a reference to this object.
| const_iterator & QList< T >::const_iterator< T >::operator= | ( | iterator && | other | ) |
Move assigns from other and returns a reference to this object.
| bool QList< T >::const_iterator< T >::operator== | ( | const_iterator< T > | other | ) | const |
Returns true if other points to the same item as this iterator, otherwise returns false.
| bool QList< T >::const_iterator< T >::operator> | ( | const const_iterator< T > & | other | ) | const |
Returns true if the item pointed to by this iterator is greater than the item pointed to by the other iterator.
| bool QList< T >::const_iterator< T >::operator> | ( | const iterator & | other | ) | const |
Returns true if the item pointed to by this iterator is greater than the item pointed to by the other iterator.
| bool QList< T >::const_iterator< T >::operator>= | ( | const const_iterator< T > & | other | ) | const |
Returns true if the item pointed to by this iterator is greater than or equal to the item pointed to by the other iterator.
| bool QList< T >::const_iterator< T >::operator>= | ( | const iterator & | other | ) | const |
Returns true if the item pointed to by this iterator is greater than or equal to the item pointed to by the other iterator.
| const T & QList< T >::const_iterator< T >::operator[] | ( | size_type | n | ) | const |
Returns a reference to the item at position *this + n.