Back to Taskflow

tf::TaskView class

docs/classtf_1_1TaskView.html

4.0.02.4 KB
Original Source

tf::TaskView class

class to access task information from the observer interface

Public functions

auto name() const -> const std::string&queries the name of the taskauto num_successors() const -> size_tqueries the number of successors of the taskauto num_predecessors() const -> size_tqueries the number of predecessors of the taskauto num_strong_dependencies() const -> size_tqueries the number of strong dependencies of the taskauto num_weak_dependencies() const -> size_tqueries the number of weak dependencies of the task template<typename V> void for_each_successor(V&& visitor) constapplies an visitor callable to each successor of the task template<typename V> void for_each_predecessor(V&& visitor) constapplies an visitor callable to each predecessor of the taskauto type() const -> TaskTypequeries the task typeauto hash_value() const -> size_tobtains a hash value of the underlying node

Function documentation

template<typename V> void tf::TaskView::for_each_successor(V&& visitor) const

applies an visitor callable to each successor of the task

Template parameters
V
Parameters
---
visitor

This method allows you to traverse and inspect successor tasks of this task.

template<typename V> void tf::TaskView::for_each_predecessor(V&& visitor) const

applies an visitor callable to each predecessor of the task

Template parameters
V
Parameters
---
visitor

This method allows you to traverse and inspect predecessor tasks of this task.