Function implementations dispatcher.
More...
#include <dispatcher.hpp>
Inherits element< dispatcher >.
|
template<class Func > |
functions::scored_impls_list< Func > | select (typename Func::params ¶ms) const |
| Returns list of function implementations which accept specified function parameters. More...
|
|
template<class Func > |
std::enable_if< std::is_base_of< functions::function_impl_execute< Func >, typename Func::impl >::value, std::shared_ptr< event > >::type | execute_function (typename Func::params ¶ms, const std::vector< std::shared_ptr< event >> &dep_events={}) const |
| Executes a function. More...
|
|
template<class Func > |
std::enable_if< std::is_base_of< functions::function_impl_command< Func >, typename Func::impl >::value, std::shared_ptr< event > >::type | execute_function (typename Func::params ¶ms, const std::vector< std::shared_ptr< event >> &dep_events={}) const |
| Executes a function. More...
|
|
Function implementations dispatcher.
Definition at line 30 of file dispatcher.hpp.
◆ execute_function() [1/2]
std::enable_if<std::is_base_of<functions::function_impl_execute<Func>, typename Func::impl>::value, std::shared_ptr<event> >::type execute_function |
( |
typename Func::params & |
params, |
|
|
const std::vector< std::shared_ptr< event >> & |
dep_events = {} |
|
) |
| const |
|
inline |
Executes a function.
- Template Parameters
-
Func | the function to be executed |
- Parameters
-
params | Actual function parameters |
dep_events | List of events to be waited before start function execution |
- Returns
- The event object which indicates whether function execution is completed
Definition at line 52 of file dispatcher.hpp.
◆ execute_function() [2/2]
std::enable_if<std::is_base_of<functions::function_impl_command<Func>, typename Func::impl>::value, std::shared_ptr<event> >::type execute_function |
( |
typename Func::params & |
params, |
|
|
const std::vector< std::shared_ptr< event >> & |
dep_events = {} |
|
) |
| const |
|
inline |
Executes a function.
- Template Parameters
-
Func | the function to be executed |
- Parameters
-
params | Actual function parameters |
dep_events | List of events to be waited before start function execution |
- Returns
- The event object which indicates whether function execution is completed
Definition at line 71 of file dispatcher.hpp.
◆ select()
functions::scored_impls_list<Func> select |
( |
typename Func::params & |
params | ) |
const |
|
inline |
Returns list of function implementations which accept specified function parameters.
- Parameters
-
params | Actual function parameters |
Definition at line 38 of file dispatcher.hpp.
The documentation for this class was generated from the following file: