tf::Graph
std::vector< std::unique_ptr< Node > >
taskflow/core/graph.hpp
class friend class Node Node tf::Graph::Node Node
class friend class FlowBuilder FlowBuilder tf::Graph::FlowBuilder FlowBuilder
class friend class Subflow Subflow tf::Graph::Subflow Subflow
class friend class Taskflow Taskflow tf::Graph::Taskflow Taskflow
class friend class Executor Executor tf::Graph::Executor Executor
tf::Graph::Graph
()=default
Graph
tf::Graph::Graph

constructs a graph object

tf::Graph::Graph
(const Graph &)=delete
Graph
tf::Graph::Graph
const Graph &

disabled copy constructor

tf::Graph::Graph
(Graph &&)=default
Graph
tf::Graph::Graph
Graph &&

constructs a graph using move semantics

Graph & Graph & tf::Graph::operator= (const Graph &)=delete operator= tf::Graph::operator= const Graph &

disabled copy assignment operator

Graph & Graph & tf::Graph::operator= (Graph &&)=default operator= tf::Graph::operator= Graph &&

assigns a graph using move semantics

void void tf::Graph::_erase (Node *) _erase tf::Graph::_erase Node * node
typename ... ArgsT ArgsT
Node * Node * tf::Graph::_emplace_back (ArgsT &&...) _emplace_back tf::Graph::_emplace_back ArgsT && ...
typename ... ArgsT ArgsT
Node * Node * tf::Graph::_emplace_back (ArgsT &&... args) _emplace_back tf::Graph::_emplace_back ArgsT &&... args

class to create a graph object

A graph is the ultimate storage for a task dependency graph and is the main gateway to interact with an executor. A graph manages a set of nodes in a global object pool that animates and recycles node objects efficiently without going through repetitive and expensive memory allocations and deallocations. This class is mainly used for creating an opaque graph object in a custom class to interact with the executor through taskflow composition.

A graph object is move-only.

std::vector< std::unique_ptr< Node > >
tf::Graph
std::vector< std::unique_ptr< Node > >
tf::Graph
- tf::Graph
  _emplace_back
- tf::Graph
  _emplace_back
- tf::Graph
  _erase
- tf::Graph
  Executor
- tf::Graph
  FlowBuilder
- tf::Graph
  Graph
- tf::Graph
  Graph
- tf::Graph
  Graph
- tf::Graph
  Node
- tf::Graph
  operator=
- tf::Graph
  operator=
- tf::Graph
  Subflow
- tf::Graph
  Taskflow