|
Embedded Template Library 1.0
|
#include <closure.h>
Public Types | |
| typedef TCallback | callback_type |
Public Member Functions | |
| closure (const callback_type &f, const TArg0 arg0, const TArg1 arg1, const TArg2 arg2) | |
| TReturn | operator() () const |
Closure for binding three arguments to a callback and invoking it later.
| TReturn | The return type of the callback. |
| TArg0 | The type of the first argument. |
| TArg1 | The type of the second argument. |
| TArg2 | The type of the third argument. |
| TCallback | The callback type. |
|
inline |
Construct a closure with a callback and its arguments.
| f | The callback to be invoked. |
| arg0 | The first argument to bind. |
| arg1 | The second argument to bind. |
| arg2 | The third argument to bind. |
|
inline |
Invoke the stored callback with the bound arguments.