| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | Private Attributes | List of all members
concurrency::DataNode Class Reference

`#include <src/PrecedenceRulesGraph.h>`

Inheritance diagram for concurrency::DataNode:
[legend]
Collaboration diagram for concurrency::DataNode:
[legend]

## Public Member Functions
| DataNode (PrecedenceRulesGraph &graph, const DataObjID &path)
| Constructor. More...
virtual | ~DataNode ()=default
| Destructor. More...
const DataObjID & | getPath ()
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
PrecedenceRulesGraph * | m_graph

## Private Attributes
DataObjID | m_data_object_path
std::vector< AlgorithmNode * > | m_producers
std::vector< AlgorithmNode * > | m_consumers

## Detailed Description

Definition at line 616 of file PrecedenceRulesGraph.h.

## Constructor & Destructor Documentation

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

Constructor.

Definition at line 620 of file PrecedenceRulesGraph.h.

620 : m_graph( &graph ), m_data_object_path( path ) {}
concurrency::DataNode::m_data_object_path
DataObjID m_data_object_path
Definition: PrecedenceRulesGraph.h:654
plotSpeedupsPyRoot.graph
graph
Definition: plotSpeedupsPyRoot.py:142
concurrency::DataNode::m_graph
PrecedenceRulesGraph * m_graph
Definition: PrecedenceRulesGraph.h:651

virtual concurrency::DataNode::~DataNode | ( |  | ) |
| virtual default

Destructor.

## Member Function Documentation

virtual bool concurrency::DataNode::accept | ( | IGraphVisitor & | visitor | ) |
| inline virtual

Entry point for a visitor.

Reimplemented in concurrency::ConditionNode.

Definition at line 628 of file PrecedenceRulesGraph.h.

629 {
630 if ( visitor.visitEnter( *this ) ) return visitor.visit( *this );
631 return true;
632 }

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

Add relationship to consumer AlgorithmNode.

Definition at line 640 of file PrecedenceRulesGraph.h.

641 {
642 if ( std::find( m_consumers.begin(), m_consumers.end(), node ) == m_consumers.end() )
643 m_consumers.push_back( node );
644 }
concurrency::DataNode::m_consumers
std::vector< AlgorithmNode * > m_consumers
Definition: PrecedenceRulesGraph.h:656
std::find
T find(T...args)

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

Add relationship to producer AlgorithmNode.

Definition at line 634 of file PrecedenceRulesGraph.h.

635 {
636 if ( std::find( m_producers.begin(), m_producers.end(), node ) == m_producers.end() )
637 m_producers.push_back( node );
638 }
std::find
T find(T...args)
concurrency::DataNode::m_producers
std::vector< AlgorithmNode * > m_producers
Definition: PrecedenceRulesGraph.h:655

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

Get all data object consumers.

Definition at line 648 of file PrecedenceRulesGraph.h.

648 { return m_consumers; }
concurrency::DataNode::m_consumers
std::vector< AlgorithmNode * > m_consumers
Definition: PrecedenceRulesGraph.h:656

const DataObjID& concurrency::DataNode::getPath | ( |  | ) |
| inline

Definition at line 625 of file PrecedenceRulesGraph.h.

625 { return m_data_object_path; }
concurrency::DataNode::m_data_object_path
DataObjID m_data_object_path
Definition: PrecedenceRulesGraph.h:654

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

Get all data object producers.

Definition at line 646 of file PrecedenceRulesGraph.h.

646 { return m_producers; }
concurrency::DataNode::m_producers
std::vector< AlgorithmNode * > m_producers
Definition: PrecedenceRulesGraph.h:655

## Member Data Documentation

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

Definition at line 656 of file PrecedenceRulesGraph.h.

DataObjID concurrency::DataNode::m_data_object_path
| private

Definition at line 654 of file PrecedenceRulesGraph.h.

PrecedenceRulesGraph* concurrency::DataNode::m_graph

Definition at line 651 of file PrecedenceRulesGraph.h.

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

Definition at line 655 of file PrecedenceRulesGraph.h.

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

- GaudiHive/src/PrecedenceRulesGraph.h