Taskflow  3.2.0-Master-Branch
Loading...
Searching...
No Matches
tf::cudaTask Class Reference

class to create a task handle over an internal node of a cudaFlow graph More...

#include <cuda_task.hpp>

Public Member Functions

 cudaTask ()=default
 constructs an empty cudaTask
 
 cudaTask (const cudaTask &)=default
 copy-constructs a cudaTask
 
cudaTaskoperator= (const cudaTask &)=default
 copy-assigns a cudaTask
 
template<typename... Ts>
cudaTaskprecede (Ts &&... tasks)
 adds precedence links from this to other tasks
 
template<typename... Ts>
cudaTasksucceed (Ts &&... tasks)
 adds precedence links from other tasks to this
 
cudaTaskname (const std::string &name)
 assigns a name to the task
 
const std::stringname () const
 queries the name of the task
 
size_t num_successors () const
 queries the number of successors
 
size_t num_dependents () const
 queries the number of dependents
 
bool empty () const
 queries if the task is associated with a cudaNode
 
cudaTaskType type () const
 queries the task type
 
template<typename T >
void dump (T &ostream) const
 dumps the task through an output stream
 
template<typename V >
void for_each_successor (V &&visitor) const
 applies an visitor callable to each successor of the task
 
template<typename V >
void for_each_dependent (V &&visitor) const
 applies an visitor callable to each dependents of the task
 

Friends

class cudaFlow
 
class cudaFlowCapturer
 
class cudaFlowCapturerBase
 
std::ostreamoperator<< (std::ostream &, const cudaTask &)
 overload of ostream inserter operator for cudaTask
 

Detailed Description

class to create a task handle over an internal node of a cudaFlow graph

Member Function Documentation

◆ dump()

template<typename T >
void tf::cudaTask::dump ( T &  ostream) const

dumps the task through an output stream

Template Parameters
Toutput stream type with insertion operator (<<) defined
Parameters
ostreaman output stream target

◆ name()

cudaTask & tf::cudaTask::name ( const std::string name)
inline

assigns a name to the task

Parameters
namea std::string acceptable string
Returns
*this

◆ precede()

template<typename... Ts>
cudaTask & tf::cudaTask::precede ( Ts &&...  tasks)

adds precedence links from this to other tasks

Template Parameters
Tsparameter pack
Parameters
tasksone or multiple tasks
Returns
*this

◆ succeed()

template<typename... Ts>
cudaTask & tf::cudaTask::succeed ( Ts &&...  tasks)

adds precedence links from other tasks to this

Template Parameters
Tsparameter pack
Parameters
tasksone or multiple tasks
Returns
*this

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