| The Gaudi Framework v27r1

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

- File List
- File Members

DataHandleHolderVisitor.cpp
Go to the documentation of this file.
1
2 #include "GaudiKernel/DataHandleHolderVisitor.h"
3 #include "GaudiKernel/DataHandle.h"
4 #include <iostream>
5
6 DHHVisitor::DHHVisitor(DataObjIDColl& ido, DataObjIDColl& odo) :
7 m_ido(ido), m_odo(odo) {
8 }
9
10
11 void
12 DHHVisitor::visit(const IDataHandleHolder* idhh) {
13
14 if (idhh == 0) return;
15 for (auto h : idhh->inputHandles()) {
16 m_ido.insert(h->fullKey());
17 }
18 for (auto h : idhh->outputHandles()) {
19 m_odo.insert(h->fullKey());
20 }
21 m_ido.insert(idhh->extraInputDeps().begin(), idhh->extraInputDeps().end());
22 m_odo.insert(idhh->extraOutputDeps().begin(), idhh->extraOutputDeps().end());
23
24 }
25
IDataHandleHolder::inputHandles
virtual std::vector< Gaudi::DataHandle * > inputHandles() const =0
IDataHandleHolder::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const =0
std::unordered_set::end
T end(T...args)
DHHVisitor::visit
virtual void visit(const IDataHandleHolder *idhh)
Definition: DataHandleHolderVisitor.cpp:12
DHHVisitor::m_ido
DataObjIDColl & m_ido
Definition: DataHandleHolderVisitor.h:15
IDataHandleHolder
Definition: IDataHandleHolder.h:17
HiveAlgSequencer.h
tuple h
Definition: HiveAlgSequencer.py:24
std::unordered_set< DataObjID, DataObjID_Hasher >
DataHandleHolderVisitor.h
std::unordered_set::insert
T insert(T...args)
IDataHandleHolder::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const =0
DHHVisitor::m_odo
DataObjIDColl & m_odo
Definition: DataHandleHolderVisitor.h:15
std::unordered_set::begin
T begin(T...args)
DHHVisitor::DHHVisitor
DHHVisitor(DataObjIDColl &ido, DataObjIDColl &odo)
Definition: DataHandleHolderVisitor.cpp:6
IDataHandleHolder::extraInputDeps
virtual const DataObjIDColl & extraInputDeps() const =0
DataHandle.h