spawn_visitor
helps in spawning the elements of parametric dependencies by factoring out the task id and number of consumers of a task in this class.
More...
|
| spawn_visitor (Spawner &spawner) |
|
void | set_info (std::size_t tid, std::size_t result_id, std::size_t num_succs) |
|
memento & | get_memento_stack () |
|
auto | get_env () -> decltype(m_spawner.get_env()) |
|
std::vector< std::size_t > | notification_list (std::initializer_list< std::size_t > &&a) const |
| Puts the given set of precedence dependencies in a vector. More...
|
|
template<bool isResult = false, typename WF , typename Mapper , typename... Args, typename = typename std::enable_if< !std::is_same< WF, std::vector<std::size_t>>::value, void>::type> |
void | operator() (WF &&wf, Mapper &&mapper, Args &&... args) |
| Each parametric dependency gets an instance of this struct and will call the function operator of this visitor based on the number of arguments it has. More...
|
|
template<bool isResult = false, typename WF , typename Mapper , typename... Args> |
void | operator() (std::vector< std::size_t > const ¬ifications, WF &&wf, Mapper &&mapper, Args &&... args) |
| Each parametric dependency gets an instance of this struct and will call the function operator of this visitor based on the number of arguments it has. More...
|
|
template<typename Spawner>
class stapl::skeletons::skeletons_impl::spawn_visitor< Spawner >
spawn_visitor
helps in spawning the elements of parametric dependencies by factoring out the task id and number of consumers of a task in this class.
- Template Parameters
-
Spawner | the spawner in which the skeleton should be spawned. |
◆ notification_list()
template<typename Spawner >
Puts the given set of precedence dependencies in a vector.
- Parameters
-
in | the set of inputs to be used for the spawn request |
◆ operator()() [1/2]
template<typename Spawner >
template<bool isResult = false, typename WF , typename Mapper , typename... Args, typename = typename std::enable_if< !std::is_same< WF, std::vector<std::size_t>>::value, void>::type>
Each parametric dependency gets an instance of this struct and will call the function operator of this visitor based on the number of arguments it has.
- Parameters
-
wf | the workfunction which will be used for the spawn request |
mapper | the output to output mapper for mapping the results of the child paragraph to current paragraph |
args | the set of inputs to be used for the spawn request |
◆ operator()() [2/2]
template<typename Spawner >
template<bool isResult = false, typename WF , typename Mapper , typename... Args>
Each parametric dependency gets an instance of this struct and will call the function operator of this visitor based on the number of arguments it has.
- Parameters
-
wf | the workfunction which will be used for the spawn request |
mapper | the output to output mapper for mapping the results of the child paragraph to current paragraph |
notifications | the set of nodes that depend on the completion of this node |
args | the set of inputs to be used for the spawn request |
The documentation for this class was generated from the following file: