An adapter object similar to RunnableDelegate that additionally takes an arbitrary argument which will be passed to the member function. More...
#include <Runnable.h++>

Public Member Functions | |
| RunnableClosure (T *object, void(T::*func)(A), A argument) | |
| Construct a new RunnableClosure which will call a method on another object with the given argument. | |
| void | run () |
| Entry point. | |
An adapter object similar to RunnableDelegate that additionally takes an arbitrary argument which will be passed to the member function.
| RunnableClosure | ( | T * | object, | |
| void(T::*)(A) | func, | |||
| A | argument | |||
| ) | [inline] |
Construct a new RunnableClosure which will call a method on another object with the given argument.
| object | The object. | |
| func | A member function (method) in the object which will be called by run(). | |
| argument | The argument that will be passed to the member function. |
| void run | ( | ) | [inline, virtual] |
Entry point.
Implements Runnable.
1.6.3