#include </builds/gaudi/Gaudi/GaudiAlg/include/GaudiAlg/GetData.h>
template<class TYPE, class TYPE2>
struct Gaudi::Utils::GetOrCreateData< TYPE, TYPE2 >
Helper structure for implementation of "getOrCreate"-functions for GaudiCommon<BASE>
- Author
- Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
- Date
- 2008-07-22
Definition at line 393 of file GetData.h.
◆ Getter
template<class TYPE , class TYPE2 >
the actual data getter
Definition at line 397 of file GetData.h.
◆ return_type
template<class TYPE , class TYPE2 >
the actual return type
Definition at line 403 of file GetData.h.
◆ Type
template<class TYPE , class TYPE2 >
◆ operator()()
template<class TYPE , class TYPE2 >
template<class COMMON >
the only one essential method
- Parameters
-
| common | the actual "worker" |
| service | pointer to Data Provider Service |
| location | location of objects in TES |
- Returns
- the data
check the data
Definition at line 414 of file GetData.h.
418 auto o = std::make_unique<TYPE2>();
420 common.put( service,
std::move( o ), location2 );
423 <<
"' has been created from TS at address '" << location2 <<
"'" <<
endmsg;
427 auto ret = obj.ptr();
432 <<
"' has been retrieved from TS at address '" <<
location <<
"'" <<
endmsg;
The documentation for this struct was generated from the following file: