Provides a QRunnable Implementation for passing a single parameter to the actual run() implementation. More...
#include <QtDispatch/qiterationrunnable.h>
Public Member Functions | |
QIterationRunnable () | |
Constructs a new QBlockRunnable passing the given parameter. | |
QIterationRunnable (size_t index) | |
QIterationRunnable (const QIterationRunnable &) | |
virtual | ~QIterationRunnable () |
virtual void | run () |
virtual void | run (size_t index)=0 |
Provides a QRunnable Implementation for passing a single parameter to the actual run() implementation.
This can for example be used in a case when for each iteration of a loop a new QRunnable will be created and you want to know during the execution of each runnable at which iteration it was created.
Definition at line 43 of file qiterationrunnable.h.
QIterationRunnable::QIterationRunnable | ( | ) |
Constructs a new QBlockRunnable passing the given parameter.
QIterationRunnable::QIterationRunnable | ( | size_t | index | ) |
QIterationRunnable::QIterationRunnable | ( | const QIterationRunnable & | ) |
virtual QIterationRunnable::~QIterationRunnable | ( | ) | [virtual] |
virtual void QIterationRunnable::run | ( | ) | [virtual] |
virtual void QIterationRunnable::run | ( | size_t | index | ) | [pure virtual] |
Implemented in QIterationBlockRunnable.