concurrency::DataNode Class Reference

#include <src/ExecutionFlowGraph.h>

Collaboration diagram for concurrency::DataNode:

Public Member Functions

 DataNode (ExecutionFlowGraph &, const std::string &path)
 Constructor. More...
 
 ~DataNode ()
 Destructor. More...
 
const std::string & getPath ()
 
void addProducerNode (AlgorithmNode *node)
 Associate an AlgorithmNode, which is a data supplier for this one. More...
 
void addConsumerNode (AlgorithmNode *node)
 Associate an AlgorithmNode, which is a data consumer of this one. More...
 
const std::vector< AlgorithmNode * > & getProducers () const
 Get all data object producers. More...
 
const std::vector< AlgorithmNode * > & getConsumers () const
 Get all data object consumers. More...
 

Private Attributes

std::string m_data_object_path
 
std::vector< AlgorithmNode * > m_producers
 
std::vector< AlgorithmNode * > m_consumers
 

Detailed Description

Definition at line 232 of file ExecutionFlowGraph.h.

Constructor & Destructor Documentation

concurrency::DataNode::DataNode ( ExecutionFlowGraph ,
const std::string &  path 
)
inline

Constructor.

Definition at line 235 of file ExecutionFlowGraph.h.

list path
Definition: __init__.py:15
concurrency::DataNode::~DataNode ( )
inline

Destructor.

Definition at line 237 of file ExecutionFlowGraph.h.

237 {}

Member Function Documentation

void concurrency::DataNode::addConsumerNode ( AlgorithmNode node)
inline

Associate an AlgorithmNode, which is a data consumer of this one.

Definition at line 245 of file ExecutionFlowGraph.h.

245  {
246  if (std::find(m_consumers.begin(),m_consumers.end(),node) == m_consumers.end())
247  m_consumers.push_back(node);
248  }
std::vector< AlgorithmNode * > m_consumers
void concurrency::DataNode::addProducerNode ( AlgorithmNode node)
inline

Associate an AlgorithmNode, which is a data supplier for this one.

Definition at line 240 of file ExecutionFlowGraph.h.

240  {
241  if (std::find(m_producers.begin(),m_producers.end(),node) == m_producers.end())
242  m_producers.push_back(node);
243  }
std::vector< AlgorithmNode * > m_producers
const std::vector<AlgorithmNode*>& concurrency::DataNode::getConsumers ( ) const
inline

Get all data object consumers.

Definition at line 252 of file ExecutionFlowGraph.h.

252 {return m_consumers;}
std::vector< AlgorithmNode * > m_consumers
const std::string& concurrency::DataNode::getPath ( )
inline

Definition at line 238 of file ExecutionFlowGraph.h.

238 {return m_data_object_path;}
const std::vector<AlgorithmNode*>& concurrency::DataNode::getProducers ( ) const
inline

Get all data object producers.

Definition at line 250 of file ExecutionFlowGraph.h.

250 {return m_producers;}
std::vector< AlgorithmNode * > m_producers

Member Data Documentation

std::vector<AlgorithmNode*> concurrency::DataNode::m_consumers
private

Definition at line 256 of file ExecutionFlowGraph.h.

std::string concurrency::DataNode::m_data_object_path
private

Definition at line 254 of file ExecutionFlowGraph.h.

std::vector<AlgorithmNode*> concurrency::DataNode::m_producers
private

Definition at line 255 of file ExecutionFlowGraph.h.


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