#include <ExecWithParameter.h>
template<class TParam1, class TParam2>
class ExecWith2Parameters< TParam1, TParam2 >
Similar to ExecWithParameter class, but this allows for two parameters.
- See also
- ExecWithParameter
- Template Parameters
-
| TParam1 | The 1st type that you want to store until called back. |
| TParam2 | The 2nd type that you want to store until called back. |
◆ ExecWith2Parameters()
template<class TParam1, class TParam2>
| ExecWith2Parameters< TParam1, TParam2 >::ExecWith2Parameters |
( |
void(* | fn )(TParam1, TParam2), |
|
|
TParam1 | storedParam1, |
|
|
TParam2 | storedParam2 ) |
|
inline |
Constructs an instance giving the function to call and the two parameters to pass to the function
- Parameters
-
| fn | the function to call, that must be compatible with the two parameter types |
| storedParam1 | the first parameter to pass to the function |
| storedParam2 | the second parameter to pass to the function |
◆ exec()
template<class TParam1, class TParam2>
Called when the schedule is reached
Implements Executable.
The documentation for this class was generated from the following file: