TaskManagerIO
Loading...
Searching...
No Matches
ExecWith2Parameters< TParam1, TParam2 > Class Template Reference

#include <ExecWithParameter.h>

Inheritance diagram for ExecWith2Parameters< TParam1, TParam2 >:
Executable

Public Member Functions

 ExecWith2Parameters (void(*fn)(TParam1, TParam2), TParam1 storedParam1, TParam2 storedParam2)
void exec () override
Public Member Functions inherited from Executable
virtual ~Executable ()=default

Detailed Description

template<class TParam1, class TParam2>
class ExecWith2Parameters< TParam1, TParam2 >

Similar to ExecWithParameter class, but this allows for two parameters.

See also
ExecWithParameter
Template Parameters
TParam1The 1st type that you want to store until called back.
TParam2The 2nd type that you want to store until called back.

Constructor & Destructor Documentation

◆ 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
fnthe function to call, that must be compatible with the two parameter types
storedParam1the first parameter to pass to the function
storedParam2the second parameter to pass to the function

Member Function Documentation

◆ exec()

template<class TParam1, class TParam2>
void ExecWith2Parameters< TParam1, TParam2 >::exec ( )
inlineoverridevirtual

Called when the schedule is reached

Implements Executable.


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