36 void addTo(tf::Taskflow& composition)
79 std::function<
int()> condition_lambda)
81 auto condition = root->emplace(condition_lambda).
name(
"condition");
82 auto noop = root->emplace([]() {}).
name(
"noop");
114 auto task = placeholder();
A collection of tasks which can be scheduled as a single task.
Definition FlowComponent.h:28
void conditional_precede(FlowComponent *root, FlowComponent *successor, std::function< int()> condition_lambda)
Conditionally schedule successor based on condition_lambda.
Definition FlowComponent.h:78
tf::Task & nextTask()
Gets next task placeholder for componentFlow_.
Definition FlowComponent.h:112
tf::Task compositionTask_
tf::Task for the composition of this tf::Taskflow with another tf::Taskflow
Definition FlowComponent.h:131
FlowComponent * name(const std::string &name)
Gets name of composition task.
Definition FlowComponent.h:94
void addTo(tf::Taskflow &composition)
Composes this FlowComponent's tf::Taskflow with another tf::Taskflow.
Definition FlowComponent.h:36
tf::Task & getCompositionTask(void)
Definition FlowComponent.h:63
void precede(FlowComponent &successor)
Schedule this FlowComponent before another FlowComponent.
Definition FlowComponent.h:47
void precede(tf::Task &successor)
Schedule this Taskflow before another FlowComponent.
Definition FlowComponent.h:58
std::vector< tf::Task > componentTasks_
A std::vector of tf::Task belonging to this FlowComponent.
Definition FlowComponent.h:124