11 #ifndef GAUDIKERNEL_DATAHANDLEHOLDERBASE
12 #define GAUDIKERNEL_DATAHANDLEHOLDERBASE 1
21 #include <unordered_set>
24 template <
typename Container>
26 std::vector<Gaudi::DataHandle*>
h;
51 if ( handle.
owner() !=
this ) {
55 m_handles.insert( &handle );
59 if ( handle.
owner() !=
this ) {
62 m_handles.erase( &handle );
66 bool renounced =
false;
68 for (
auto i = m_handles.begin(), last = m_handles.end(); i != last; ) {
70 i = m_handles.erase( i );
76 if (
auto elm = m_inputDataObjs.find(
id ); elm != m_inputDataObjs.end() ) {
77 m_inputDataObjs.erase( elm );
95 for (
auto h : m_handles )
h->init();
107 #endif // !GAUDIKERNEL_DATAHANDLEHOLDERBASE