Provides a QIteration Implementation for use with blocks on clang or lambda functions in C++0x. 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 QIteration Implementation for use with blocks on clang or lambda functions in C++0x.
Please see the documentation for QRunnable for the functionality of the autoDelete flags as well.
Definition at line 49 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 59 of file qiterationblockrunnable.h.
QIterationBlockRunnable::QIterationBlockRunnable | ( | const QIterationBlockRunnable & | other | ) | [inline] |
Definition at line 61 of file qiterationblockrunnable.h.
virtual QIterationBlockRunnable::~QIterationBlockRunnable | ( | ) | [inline, virtual] |
Definition at line 63 of file qiterationblockrunnable.h.
virtual void QIterationBlockRunnable::run | ( | size_t | index | ) | [inline, virtual] |
Implements QIterationRunnable.
Definition at line 65 of file qiterationblockrunnable.h.