| The Gaudi Framework v29r1 (5cd95fa2)

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

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

Public Member Functions | List of all members
concurrency::RankerByProductConsumption Class Reference

`#include <src/PRGraphVisitors.h>`

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

## Public Member Functions
bool | visit (AlgorithmNode &) override
Public Member Functions inherited from concurrency::IGraphVisitor
virtual | ~IGraphVisitor ()=default
virtual bool | visitEnter (DecisionNode &) const
virtual bool | visit (DecisionNode &)
virtual bool | visitEnter (AlgorithmNode &) const
virtual bool | visitEnter (DataNode &) const
virtual bool | visit (DataNode &)
virtual bool | visitEnter (ConditionNode &) const
virtual bool | visit (ConditionNode &)
virtual void | reset ()

## Detailed Description

Definition at line 77 of file PRGraphVisitors.h.

## Member Function Documentation

bool concurrency::RankerByProductConsumption::visit | ( | AlgorithmNode & | node | ) |
| override virtual

Reimplemented from concurrency::IGraphVisitor.

Definition at line 228 of file PRGraphVisitors.cpp.

229 {
230
231 auto& products = node.getOutputDataNodes();
232 float rank = 0;
233
234 for ( auto p : products ) rank += p->getConsumers().size();
235
236 node.setRank( rank );
237 /*std::stringstream s;
238 s << node.getNodeName() << ", " << rank << "\n";
239 std::ofstream myfile;
240 myfile.open("AlgoRank.csv", std::ios::app);
241 myfile << s.str();
242 myfile.close();*/
243
244 return true;
245 }

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

- GaudiHive/src/PRGraphVisitors.h
- GaudiHive/src/PRGraphVisitors.cpp