|
libcommonc++
0.7
|
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. More... | |
| void | run () |
| Entry point. More... | |
An adapter object similar to RunnableDelegate that additionally takes an arbitrary argument which will be passed to the member function.
|
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. |
|
inlinevirtual |
Entry point.
Implements Runnable.