src
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
#include "
FWCore/Concurrency/interface/WaitingTaskHolder.h
"
27
28
// forward declarations
29
30
namespace
edm
{
31
namespace
test
{
32
33
template
<
typename
T>
34
class
TestDataProxy
:
public
eventsetup::DataProxy
{
35
public
:
36
TestDataProxy
() {}
37
38
void
setData
(std::unique_ptr<T> iData) {
data_
=
std::move
(iData); }
39
40
void
prefetchAsyncImpl
(
WaitingTaskHolder
,
41
eventsetup::EventSetupRecordImpl
const
&,
42
eventsetup::DataKey
const
&,
43
EventSetupImpl
const
*,
44
ServiceToken
const
&,
45
ESParentContext
const
&)
final
{
46
return
;
47
}
48
49
void
invalidateCache
() final {
data_
.reset(); }
50
51
void
const
*
getAfterPrefetchImpl
()
const
final {
return
data_
.get(); }
52
53
private
:
54
std::unique_ptr<T>
data_
;
55
};
56
}
// namespace test
57
58
}
// namespace edm
59
60
#endif
edm::EventSetupImpl
Definition:
EventSetupImpl.h:48
runTheMatrix.const
const
Definition:
runTheMatrix.py:341
test
Definition:
SmallWORMDict.h:13
edm::ESParentContext
Definition:
ESParentContext.h:21
edm::test::TestDataProxy::prefetchAsyncImpl
void prefetchAsyncImpl(WaitingTaskHolder, eventsetup::EventSetupRecordImpl const &, eventsetup::DataKey const &, EventSetupImpl const *, ServiceToken const &, ESParentContext const &) final
Definition:
TestDataProxy.h:40
edm::eventsetup::EventSetupRecordImpl
Definition:
EventSetupRecordImpl.h:77
edm::ServiceToken
Definition:
ServiceToken.h:42
DataProxy.h
edm::eventsetup::DataKey
Definition:
DataKey.h:29
edm::test::TestDataProxy
Definition:
TestDataProxy.h:34
edm::test::TestDataProxy::data_
std::unique_ptr< T > data_
Definition:
TestDataProxy.h:54
edm::WaitingTaskHolder
Definition:
WaitingTaskHolder.h:32
edm::test::TestDataProxy::getAfterPrefetchImpl
void const * getAfterPrefetchImpl() const final
Definition:
TestDataProxy.h:51
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::test::TestDataProxy::TestDataProxy
TestDataProxy()
Definition:
TestDataProxy.h:36
edm::eventsetup::DataProxy
Definition:
DataProxy.h:42
edm::test::TestDataProxy::setData
void setData(std::unique_ptr< T > iData)
Definition:
TestDataProxy.h:38
WaitingTaskHolder.h
eostools.move
def move(src, dest)
Definition:
eostools.py:511
edm::test::TestDataProxy::invalidateCache
void invalidateCache() final
Definition:
TestDataProxy.h:49
Generated for CMSSW Reference Manual by
1.8.14