swift
Loading...
Searching...
No Matches
swift::misc::Iterators::ConcatIterator< I > Class Template Reference

Iterator wrapper which concatenates zero or more pairs of begin and end iterators. More...

#include <iterator.h>

Public Types

using iterator_category = std::forward_iterator_tag
 Types.
using value_type = typename std::iterator_traits<I>::value_type
 Types.
using difference_type = typename std::iterator_traits<I>::difference_type
 Types.
using pointer = typename std::iterator_traits<I>::pointer
 Types.
using reference = typename std::iterator_traits<I>::reference
 Types.

Public Member Functions

 ConcatIterator (QVector< I > iterators)
 Constructor.
 ConcatIterator (I end)
 Implicit conversion from an end iterator.
I operator-> ()
 Indirection operator, returns the underlying iterator. Undefined if iterator is at the end.
std::iterator_traits< I >::reference operator* ()
 Dereference operator, returns the object referenced by the iterator. Undefined if iterator is at the end.
ConcatIterator & operator++ ()
 Advance to the next element. Undefined if iterator is at the end.
ConcatIterator operator++ (int)
 Advance to the next element. Undefined if iterator is at the end.
bool operator== (const ConcatIterator &other) const
 Comparison operators.
bool operator!= (const ConcatIterator &other) const
 Comparison operators.
bool operator< (const ConcatIterator &other) const
 Comparison operators.
bool operator<= (const ConcatIterator &other) const
 Comparison operators.
bool operator> (const ConcatIterator &other) const
 Comparison operators.
bool operator>= (const ConcatIterator &other) const
 Comparison operators.

Detailed Description

template<class I>
class swift::misc::Iterators::ConcatIterator< I >

Iterator wrapper which concatenates zero or more pairs of begin and end iterators.

Definition at line 282 of file iterator.h.

Member Typedef Documentation

◆ difference_type

template<class I>
using swift::misc::Iterators::ConcatIterator< I >::difference_type = typename std::iterator_traits<I>::difference_type

Types.

Definition at line 289 of file iterator.h.

◆ iterator_category

template<class I>
using swift::misc::Iterators::ConcatIterator< I >::iterator_category = std::forward_iterator_tag

Types.

Definition at line 287 of file iterator.h.

◆ pointer

template<class I>
using swift::misc::Iterators::ConcatIterator< I >::pointer = typename std::iterator_traits<I>::pointer

Types.

Definition at line 290 of file iterator.h.

◆ reference

template<class I>
using swift::misc::Iterators::ConcatIterator< I >::reference = typename std::iterator_traits<I>::reference

Types.

Definition at line 291 of file iterator.h.

◆ value_type

template<class I>
using swift::misc::Iterators::ConcatIterator< I >::value_type = typename std::iterator_traits<I>::value_type

Types.

Definition at line 288 of file iterator.h.

Constructor & Destructor Documentation

◆ ConcatIterator() [1/2]

template<class I>
swift::misc::Iterators::ConcatIterator< I >::ConcatIterator ( QVector< I > iterators)
inline

Constructor.

Definition at line 295 of file iterator.h.

◆ ConcatIterator() [2/2]

template<class I>
swift::misc::Iterators::ConcatIterator< I >::ConcatIterator ( I end)
inline

Implicit conversion from an end iterator.

Definition at line 305 of file iterator.h.

Member Function Documentation

◆ operator!=()

template<class I>
bool swift::misc::Iterators::ConcatIterator< I >::operator!= ( const ConcatIterator< I > & other) const
inline

Comparison operators.

Definition at line 338 of file iterator.h.

◆ operator*()

template<class I>
std::iterator_traits< I >::reference swift::misc::Iterators::ConcatIterator< I >::operator* ( )
inline

Dereference operator, returns the object referenced by the iterator. Undefined if iterator is at the end.

Definition at line 333 of file iterator.h.

◆ operator++() [1/2]

template<class I>
ConcatIterator & swift::misc::Iterators::ConcatIterator< I >::operator++ ( )
inline

Advance to the next element. Undefined if iterator is at the end.

Definition at line 310 of file iterator.h.

◆ operator++() [2/2]

template<class I>
ConcatIterator swift::misc::Iterators::ConcatIterator< I >::operator++ ( int )
inline

Advance to the next element. Undefined if iterator is at the end.

Definition at line 319 of file iterator.h.

◆ operator->()

template<class I>
I swift::misc::Iterators::ConcatIterator< I >::operator-> ( )
inline

Indirection operator, returns the underlying iterator. Undefined if iterator is at the end.

Definition at line 329 of file iterator.h.

◆ operator<()

template<class I>
bool swift::misc::Iterators::ConcatIterator< I >::operator< ( const ConcatIterator< I > & other) const
inline

Comparison operators.

Definition at line 339 of file iterator.h.

◆ operator<=()

template<class I>
bool swift::misc::Iterators::ConcatIterator< I >::operator<= ( const ConcatIterator< I > & other) const
inline

Comparison operators.

Definition at line 340 of file iterator.h.

◆ operator==()

template<class I>
bool swift::misc::Iterators::ConcatIterator< I >::operator== ( const ConcatIterator< I > & other) const
inline

Comparison operators.

Definition at line 337 of file iterator.h.

◆ operator>()

template<class I>
bool swift::misc::Iterators::ConcatIterator< I >::operator> ( const ConcatIterator< I > & other) const
inline

Comparison operators.

Definition at line 341 of file iterator.h.

◆ operator>=()

template<class I>
bool swift::misc::Iterators::ConcatIterator< I >::operator>= ( const ConcatIterator< I > & other) const
inline

Comparison operators.

Definition at line 342 of file iterator.h.


The documentation for this class was generated from the following file: