Taskflow  3.2.0-Master-Branch
Loading...
Searching...
No Matches
task.hpp File Reference

task include file More...

Go to the source code of this file.

Classes

class  tf::Task
 class to create a task handle over a node in a taskflow graph More...
 
class  tf::TaskView
 class to access task information from the observer interface More...
 

Namespaces

namespace  tf
 taskflow namespace
 

Enumerations

enum class  tf::TaskType : int {
  tf::PLACEHOLDER = 0 , tf::CUDAFLOW , tf::SYCLFLOW , tf::STATIC ,
  tf::DYNAMIC , tf::CONDITION , tf::MULTI_CONDITION , tf::MODULE ,
  tf::ASYNC , tf::RUNTIME , tf::UNDEFINED
}
 enumeration of all task types More...
 

Functions

const char * tf::to_string (TaskType type)
 convert a task type to a human-readable string
 
std::ostreamtf::operator<< (std::ostream &os, const Task &task)
 overload of ostream inserter operator for cudaTask
 

Variables

template<typename C >
constexpr bool tf::is_static_task_v
 determines if a callable is a static task
 
template<typename C >
constexpr bool tf::is_dynamic_task_v = std::is_invocable_r_v<void, C, Subflow&>
 determines if a callable is a dynamic task
 
template<typename C >
constexpr bool tf::is_condition_task_v = std::is_invocable_r_v<int, C>
 determines if a callable is a condition task
 
template<typename C >
constexpr bool tf::is_multi_condition_task_v
 determines if a callable is a multi-condition task
 
template<typename C >
constexpr bool tf::is_cudaflow_task_v
 determines if a callable is a cudaFlow task
 
template<typename C >
constexpr bool tf::is_syclflow_task_v = std::is_invocable_r_v<void, C, syclFlow&>
 determines if a callable is a syclFlow task
 
template<typename C >
constexpr bool tf::is_runtime_task_v = std::is_invocable_r_v<void, C, Runtime&>
 determines if a callable is a runtime task
 

Detailed Description

task include file