#include <qfuture.h>
Public Types |
|
|
typedef std::bidirectional_iterator_tag |
iterator_category |
| typedef qptrdiff | difference_type |
| typedef T | value_type |
| typedef const T * | pointer |
| typedef const T & | reference |
Public Member Functions |
|
| const_iterator () | |
| const_iterator (QFuture const *const _future, int _index) | |
| const_iterator (const const_iterator &o) | |
| const_iterator & | operator= (const const_iterator &o) |
| const T & | operator* () const |
| const T * | operator-> () const |
| bool | operator!= (const const_iterator &other) const |
| bool | operator== (const const_iterator &o) const |
| const_iterator & | operator++ () |
| const_iterator | operator++ (int) |
| const_iterator & | operator-- () |
| const_iterator | operator-- (int) |
| const_iterator | operator+ (int j) const |
| const_iterator | operator- (int j) const |
| const_iterator & | operator+= (int j) |
| const_iterator & | operator-= (int j) |
| typedef std::bidirectional_iterator_tag iterator_category |
| typedef qptrdiff difference_type |
| typedef T value_type |
| typedef const T* pointer |
| typedef const T& reference |
| const_iterator | ( | ) | [inline] |
| const_iterator | ( | QFuture const *const | _future, |
| int | _index | ||
| ) | [inline] |
| const_iterator | ( | const const_iterator & | o | ) | [inline] |
| const_iterator& operator= | ( | const const_iterator & | o | ) | [inline] |
| const T& operator* | ( | ) | const [inline] |
| const T* operator-> | ( | void | ) | const [inline] |
| bool operator!= | ( | const const_iterator & | other | ) | const [inline] |
Definition at line 127 of file qfuture.h.
{
if (index == -1 && other.index == -1) // comparing end != end?
return false;
if (other.index == -1)
return (future->isRunning() || (index < future->resultCount()));
return (index != other.index);
}
| bool operator== | ( | const const_iterator & | o | ) | const [inline] |
Definition at line 136 of file qfuture.h.
{ return !operator!=(o); }
| const_iterator& operator++ | ( | ) | [inline] |
| const_iterator operator++ | ( | int | ) | [inline] |
Definition at line 138 of file qfuture.h.
{ const_iterator r = *this; ++index; return r; }
| const_iterator& operator-- | ( | ) | [inline] |
| const_iterator operator-- | ( | int | ) | [inline] |
Definition at line 140 of file qfuture.h.
{ const_iterator r = *this; --index; return r; }
| const_iterator operator+ | ( | int | j | ) | const [inline] |
Definition at line 141 of file qfuture.h.
{ return const_iterator(future, index + j); }
| const_iterator operator- | ( | int | j | ) | const [inline] |
Definition at line 142 of file qfuture.h.
{ return const_iterator(future, index - j); }
| const_iterator& operator+= | ( | int | j | ) | [inline] |
| const_iterator& operator-= | ( | int | j | ) | [inline] |