FWCore
TestProcessor
interface
TestDataProxy.h
Go to the documentation of this file.
1
#ifndef FWCore_TestProcessor_TestDataProxy_h
2
#define FWCore_TestProcessor_TestDataProxy_h
3
// -*- C++ -*-
4
//
5
// Package: FWCore/TestProcessor
6
// Class : TestDataProxy
7
//
16
//
17
// Original Author: root
18
// Created: Tue, 08 May 2018 18:32:38 GMT
19
//
20
21
// system include files
22
#include <memory>
23
24
// user include files
25
#include "
FWCore/Framework/interface/DataProxy.h
"
26
27
// forward declarations
28
29
namespace
edm
{
30
namespace
test
{
31
32
template
<
typename
T>
33
class
TestDataProxy
:
public
eventsetup::DataProxy
{
34
public
:
35
TestDataProxy
() {}
36
37
void
setData
(std::unique_ptr<T> iData) {
data_
=
std::move
(iData); }
38
39
void
prefetchAsyncImpl
(
WaitingTask
*,
40
eventsetup::EventSetupRecordImpl
const
&,
41
eventsetup::DataKey
const
&,
42
EventSetupImpl
const
*,
43
ServiceToken
const
&)
final
{
44
return
;
45
}
46
47
void
invalidateCache
() final {
data_
.reset(); }
48
49
void
const
*
getAfterPrefetchImpl
()
const
final {
return
data_
.get(); }
50
51
private
:
52
std::unique_ptr<T>
data_
;
53
};
54
}
// namespace test
55
56
}
// namespace edm
57
58
#endif
edm::test::TestDataProxy::TestDataProxy
TestDataProxy()
Definition:
TestDataProxy.h:35
edm::EventSetupImpl
Definition:
EventSetupImpl.h:48
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::eventsetup::DataKey
Definition:
DataKey.h:29
edm::test::TestDataProxy::prefetchAsyncImpl
void prefetchAsyncImpl(WaitingTask *, eventsetup::EventSetupRecordImpl const &, eventsetup::DataKey const &, EventSetupImpl const *, ServiceToken const &) final
Definition:
TestDataProxy.h:39
watchdog.const
const
Definition:
watchdog.py:83
DataProxy.h
edm::ServiceToken
Definition:
ServiceToken.h:40
test
Definition:
SmallWORMDict.h:13
edm::test::TestDataProxy::data_
std::unique_ptr< T > data_
Definition:
TestDataProxy.h:52
edm::eventsetup::EventSetupRecordImpl
Definition:
EventSetupRecordImpl.h:76
edm::test::TestDataProxy
Definition:
TestDataProxy.h:33
edm::eventsetup::DataProxy
Definition:
DataProxy.h:41
edm::WaitingTask
Definition:
WaitingTask.h:36
eostools.move
def move(src, dest)
Definition:
eostools.py:511
edm::test::TestDataProxy::setData
void setData(std::unique_ptr< T > iData)
Definition:
TestDataProxy.h:37
edm::test::TestDataProxy::getAfterPrefetchImpl
void const * getAfterPrefetchImpl() const final
Definition:
TestDataProxy.h:49
edm::test::TestDataProxy::invalidateCache
void invalidateCache() final
Definition:
TestDataProxy.h:47
Generated for CMSSW Reference Manual by
1.8.16