Provides a QIterationRunnable implementation for use with blocks on clang or Apple's gcc 4.2. More...
#include <QtDispatch/qiterationblockrunnable.h>
Public Member Functions | |
QIterationBlockRunnable (dispatch_iteration_block_t b) | |
Constructs a new QBlockRunnable using the given block, e.g. | |
QIterationBlockRunnable (const QIterationBlockRunnable &other) | |
virtual | ~QIterationBlockRunnable () |
virtual void | run (size_t index) |
Provides a QIterationRunnable implementation for use with blocks on clang or Apple's gcc 4.2.
Please see the documentation for QRunnable for the functionality of the autoDelete flags as well.
Definition at line 48 of file qiterationblockrunnable.h.
QIterationBlockRunnable::QIterationBlockRunnable | ( | dispatch_iteration_block_t | b | ) | [inline] |
Constructs a new QBlockRunnable using the given block, e.g.
QIterationBlockRunnable task((size_t index){cout << "Hello World at" << index << "\n";}, 3);
Definition at line 58 of file qiterationblockrunnable.h.
QIterationBlockRunnable::QIterationBlockRunnable | ( | const QIterationBlockRunnable & | other | ) | [inline] |
Definition at line 60 of file qiterationblockrunnable.h.
virtual QIterationBlockRunnable::~QIterationBlockRunnable | ( | ) | [inline, virtual] |
Definition at line 62 of file qiterationblockrunnable.h.
virtual void QIterationBlockRunnable::run | ( | size_t | index | ) | [inline, virtual] |
Implements QIterationRunnable.
Definition at line 64 of file qiterationblockrunnable.h.