class to create a task handle over an internal node of a cudaFlow graph
More...
#include <cuda_task.hpp>
|
| cudaTask ()=default |
| constructs an empty cudaTask
|
|
| cudaTask (const cudaTask &)=default |
| copy-constructs a cudaTask
|
|
cudaTask & | operator= (const cudaTask &)=default |
| copy-assigns a cudaTask
|
|
template<typename... Ts> |
cudaTask & | precede (Ts &&... tasks) |
| adds precedence links from this to other tasks
|
|
template<typename... Ts> |
cudaTask & | succeed (Ts &&... tasks) |
| adds precedence links from other tasks to this
|
|
cudaTask & | name (const std::string &name) |
| assigns a name to the task
|
|
const std::string & | name () 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
|
|
class to create a task handle over an internal node of a cudaFlow graph
◆ dump()
template<typename T >
void tf::cudaTask::dump |
( |
T & |
ostream | ) |
const |
dumps the task through an output stream
- Template Parameters
-
T | output stream type with insertion operator (<<) defined |
- Parameters
-
ostream | an output stream target |
◆ name()
assigns a name to the task
- Parameters
-
- Returns
*this
◆ precede()
template<typename... Ts>
cudaTask & tf::cudaTask::precede |
( |
Ts &&... |
tasks | ) |
|
adds precedence links from this to other tasks
- Template Parameters
-
- Parameters
-
tasks | one 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
-
- Parameters
-
tasks | one or multiple tasks |
- Returns
*this
The documentation for this class was generated from the following file: