XDispatch 0.7.2
Public Member Functions
QIterationBlockRunnable Class Reference

Provides a QIterationRunnable implementation for use with blocks on clang or Apple's gcc 4.2. 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 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.


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 58 of file qiterationblockrunnable.h.

Definition at line 60 of file qiterationblockrunnable.h.

Definition at line 62 of file qiterationblockrunnable.h.


Member Function Documentation

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

Implements QIterationRunnable.

Definition at line 64 of file qiterationblockrunnable.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Jan 27 2013 21:21:52 for XDispatch by Doxygen 1.7.6.1
© 2010-2013 MLBA (about | privacy) All Rights reserved.