Cpp-Taskflow  2.2.0
tf::TaskView Class Reference

A constant wrapper class to a task node, mainly used in the tf::ExecutorObserver interface. More...

#include <task.hpp>

Public Member Functions

 TaskView ()=default
 constructs an empty task view
 
 TaskView (const Task &task)
 constructs a task view from a task
 
 TaskView (const TaskView &other)
 constructs the task with the copy of the other task
 
TaskViewoperator= (const TaskView &other)
 replaces the contents with a copy of the other task
 
TaskViewoperator= (const Task &other)
 replaces the contents with another task
 
TaskViewoperator= (std::nullptr_t)
 replaces the contents with a null pointer
 
const std::stringname () const
 queries the name of the task
 
size_t num_successors () const
 queries the number of successors of the task
 
size_t num_dependents () const
 queries the number of predecessors of the task
 
void reset ()
 resets to an empty view
 
bool empty () const
 queries if the task view is empty
 

Friends

class Executor
 

Detailed Description

A constant wrapper class to a task node, mainly used in the tf::ExecutorObserver interface.


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