XDispatch 0.7.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
QIterationBlockRunnable Class Reference

Provides a QIteration Implementation for use with blocks on clang or lambda functions in C++0x. More...

#include <QtDispatch/qiterationblockrunnable.h>

+ Inheritance diagram for QIterationBlockRunnable:

List of all members.

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)

Detailed Description

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.


Constructor & Destructor Documentation

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.

Definition at line 61 of file qiterationblockrunnable.h.

Definition at line 63 of file qiterationblockrunnable.h.


Member Function Documentation

virtual void QIterationBlockRunnable::run ( size_t  index) [inline, virtual]

Implements QIterationRunnable.

Definition at line 65 of file qiterationblockrunnable.h.


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

Generated on Tue Jun 12 2012 14:11:48 for XDispatch by Doxygen 1.8.0
© 2010-2012 MLBA (about | privacy) All Rights reserved.