HTGS  v2.0
The Hybrid Task Graph Scheduler
htgs::GraphTaskProducerEdge< T, U > Class Template Reference
Inheritance diagram for htgs::GraphTaskProducerEdge< T, U >:
Inheritance graph
Collaboration diagram for htgs::GraphTaskProducerEdge< T, U >:
Collaboration graph

Public Member Functions

 GraphTaskProducerEdge (ITask< T, U > *task, std::shared_ptr< Connector< U >> graphConnector)
 
void applyEdge (AnyTaskGraphConf *graph) override
 Applies an edge to a task graph. More...
 
GraphTaskProducerEdge< T, U > * copy (AnyTaskGraphConf *graph) override
 Creates a copy of the edge descriptor to be added to other graphs, such as those within execution pipelines. More...
 
void updateEdge (std::shared_ptr< Connector< U >> newConnector, AnyTaskGraphConf *graph) override
 
AnyTaskManagergetTaskManager (AnyTaskGraphConf *graph)
 
- Public Member Functions inherited from htgs::GraphEdge< U >
 GraphEdge (std::shared_ptr< Connector< U >> graphConnector)
 
std::shared_ptr< Connector< U > > getGraphConnector ()
 
void setConnector (std::shared_ptr< Connector< U >> connector)
 
- Public Member Functions inherited from htgs::EdgeDescriptor
virtual ~EdgeDescriptor ()
 Destructor.
 

Private Attributes

ITask< T, U > * task
 

Member Function Documentation

◆ applyEdge()

template<class T, class U>
void htgs::GraphTaskProducerEdge< T, U >::applyEdge ( AnyTaskGraphConf graph)
inlineoverridevirtual

Applies an edge to a task graph.

An edge is added to the supplied task graph. Each ITask is obtains a task manager that is to be used to manage the ITask. The graph has helper function AnyTaskGraphConf::getTaskManager. This is used to get the correct task manager that is to be used for a given ITask.

Parameters
graphthe task graph configuration that the edge is applied to.

Implements htgs::EdgeDescriptor.

◆ copy()

template<class T, class U>
GraphTaskProducerEdge<T, U>* htgs::GraphTaskProducerEdge< T, U >::copy ( AnyTaskGraphConf graph)
inlineoverridevirtual

Creates a copy of the edge descriptor to be added to other graphs, such as those within execution pipelines.

The edge descriptor typically has ITasks that are added to a TaskManager, which is then added to the task graph. The copy function is used to copy the ITasks and any other meta data that is needed for applying the edge. The implementation should use the AnyTaskGraphConf::getCopy function to get copies of the ITask.

Parameters
graphthe graph you are getting ITask copies from.
Returns
a new EdgeDescriptor to be used to apply edges to a future task graph configuration.

Implements htgs::GraphEdge< U >.


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