Template Struct combinator¶
Defined in File activities.h
Inheritance Relationships¶
Base Type¶
public udho::activities::junction< DependenciesT::result_type >(Template Struct junction)
Struct Documentation¶
-
template<typename
NextT, typename ...DependenciesT>
structudho::activities::combinator: public udho::activities::junction<DependenciesT::result_type>¶ A combinator combines multiple activities and proceeds towards the next activity
- Template Parameters
NextT: next activityDependenciesT: dependencies
Public Types
Public Functions
-
template<typename
U>
voidoperator()(const U &u)¶ whenever a subtask finishes the
operator()of the combinator is called. which doesn’t start the next subtask untill all the dependencies have completed. Before starting the next activity the next activity is prepared if any preparator is passed through theprepare()function
-
void
cancel()¶
-
void
propagate()¶
-
template<typename
PreparatorT>
voidprepare(PreparatorT prep)¶ set a preparator callback which will be called with a reference to teh next activity. The preparator callback is supposed to prepare the next activity by using the data callected till that time.