| The Gaudi Framework v30r0 (c919700c)

- 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 233 of file PRGraphVisitors.cpp.

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

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

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