The Gaudi Framework  master (37c0b60a)
concurrency::DataNode Class Reference

#include </builds/gaudi/Gaudi/GaudiHive/src/PRGraph/PrecedenceRulesGraph.h>

Inheritance diagram for concurrency::DataNode:
Collaboration diagram for concurrency::DataNode:

Public Member Functions

 DataNode (PrecedenceRulesGraph &graph, const DataObjID &path)
 Constructor. More...
 
virtual ~DataNode ()=default
 Destructor. More...
 
const DataObjIDname () const
 
virtual bool accept (IGraphVisitor &visitor)
 Entry point for a visitor. More...
 
void addProducerNode (AlgorithmNode *node)
 Add relationship to producer AlgorithmNode. More...
 
void addConsumerNode (AlgorithmNode *node)
 Add relationship to consumer AlgorithmNode. 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...
 

Public Attributes

PrecedenceRulesGraphm_graph
 

Private Attributes

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

Detailed Description

Definition at line 553 of file PrecedenceRulesGraph.h.

Constructor & Destructor Documentation

◆ DataNode()

concurrency::DataNode::DataNode ( PrecedenceRulesGraph graph,
const DataObjID path 
)
inline

Constructor.

Definition at line 556 of file PrecedenceRulesGraph.h.

◆ ~DataNode()

virtual concurrency::DataNode::~DataNode ( )
virtualdefault

Destructor.

Member Function Documentation

◆ accept()

virtual bool concurrency::DataNode::accept ( IGraphVisitor visitor)
inlinevirtual

Entry point for a visitor.

Reimplemented in concurrency::ConditionNode.

Definition at line 564 of file PrecedenceRulesGraph.h.

564  {
565  return visitor.visitEnter( *this ) ? visitor.visit( *this ) : true;
566  }

◆ addConsumerNode()

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

Add relationship to consumer AlgorithmNode.

Definition at line 573 of file PrecedenceRulesGraph.h.

573  {
574  if ( std::find( m_consumers.begin(), m_consumers.end(), node ) == m_consumers.end() )
575  m_consumers.push_back( node );
576  }

◆ addProducerNode()

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

Add relationship to producer AlgorithmNode.

Definition at line 568 of file PrecedenceRulesGraph.h.

568  {
569  if ( std::find( m_producers.begin(), m_producers.end(), node ) == m_producers.end() )
570  m_producers.push_back( node );
571  }

◆ getConsumers()

const std::vector<AlgorithmNode*>& concurrency::DataNode::getConsumers ( ) const
inline

Get all data object consumers.

Definition at line 580 of file PrecedenceRulesGraph.h.

580 { return m_consumers; }

◆ getProducers()

const std::vector<AlgorithmNode*>& concurrency::DataNode::getProducers ( ) const
inline

Get all data object producers.

Definition at line 578 of file PrecedenceRulesGraph.h.

578 { return m_producers; }

◆ name()

const DataObjID& concurrency::DataNode::name ( ) const
inline

Definition at line 561 of file PrecedenceRulesGraph.h.

561 { return m_data_object_path; }

Member Data Documentation

◆ m_consumers

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

Definition at line 588 of file PrecedenceRulesGraph.h.

◆ m_data_object_path

DataObjID concurrency::DataNode::m_data_object_path
private

Definition at line 586 of file PrecedenceRulesGraph.h.

◆ m_graph

PrecedenceRulesGraph* concurrency::DataNode::m_graph

Definition at line 583 of file PrecedenceRulesGraph.h.

◆ m_producers

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

Definition at line 587 of file PrecedenceRulesGraph.h.


The documentation for this class was generated from the following file:
concurrency::DataNode::m_producers
std::vector< AlgorithmNode * > m_producers
Definition: PrecedenceRulesGraph.h:587
AtlasMCRecoFullPrecedenceDump.path
path
Definition: AtlasMCRecoFullPrecedenceDump.py:49
concurrency::DataNode::m_consumers
std::vector< AlgorithmNode * > m_consumers
Definition: PrecedenceRulesGraph.h:588
std::find
T find(T... args)
concurrency::DataNode::m_graph
PrecedenceRulesGraph * m_graph
Definition: PrecedenceRulesGraph.h:583
plotSpeedupsPyRoot.graph
graph
Definition: plotSpeedupsPyRoot.py:168
concurrency::DataNode::m_data_object_path
DataObjID m_data_object_path
Definition: PrecedenceRulesGraph.h:586