Intel clGPU
dispatcher Class Reference

Function implementations dispatcher. More...

#include <dispatcher.hpp>

Inherits element< dispatcher >.

Public Member Functions

template<class Func >
functions::scored_impls_list< Func > select (typename Func::params &params) 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 &params, 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 &params, const std::vector< std::shared_ptr< event >> &dep_events={}) const
 Executes a function. More...
 

Detailed Description

Function implementations dispatcher.

Definition at line 30 of file dispatcher.hpp.

Member Function Documentation

◆ 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
Functhe function to be executed
Parameters
paramsActual function parameters
dep_eventsList 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
Functhe function to be executed
Parameters
paramsActual function parameters
dep_eventsList 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
paramsActual function parameters

Definition at line 38 of file dispatcher.hpp.


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