libXDispatch 0.4
Public Member Functions
QIterationBlockRunnable Class Reference

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

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 (dispatch_iteration_block_t b, size_t index)
 QIterationBlockRunnable (const QIterationBlockRunnable &)
 ~QIterationBlockRunnable ()
virtual void run (size_t)

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.


Constructor & Destructor Documentation

QIterationBlockRunnable::QIterationBlockRunnable ( dispatch_iteration_block_t  b)

Constructs a new QBlockRunnable using the given block, e.g.

       QIterationBlockRunnable task($(size_t index){cout << "Hello World at" << index << "\n";}, 3);
QIterationBlockRunnable::QIterationBlockRunnable ( dispatch_iteration_block_t  b,
size_t  index 
)
QIterationBlockRunnable::QIterationBlockRunnable ( const QIterationBlockRunnable )
QIterationBlockRunnable::~QIterationBlockRunnable ( )

Member Function Documentation

virtual void QIterationBlockRunnable::run ( size_t  ) [virtual]

Implements QIterationRunnable.


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

Generated on Wed Feb 22 2012 19:51:17 for libXDispatch by Doxygen 1.7.4
Content © 2011-2012 MLBA (about | privacy) – Design © 2010-2012 Emzeat. All Rights reserved.