CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
27 
28 // forward declarations
29 
30 namespace edm {
31  namespace test {
32 
33  template <typename T>
35  public:
37 
38  void setData(std::unique_ptr<T> iData) { data_ = std::move(iData); }
39 
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
void prefetchAsyncImpl(WaitingTaskHolder, eventsetup::EventSetupRecordImpl const &, eventsetup::DataKey const &, EventSetupImpl const *, ServiceToken const &, ESParentContext const &) final
Definition: TestDataProxy.h:40
def move
Definition: eostools.py:511
std::unique_ptr< T > data_
Definition: TestDataProxy.h:54
void const * getAfterPrefetchImpl() const final
Definition: TestDataProxy.h:51
void setData(std::unique_ptr< T > iData)
Definition: TestDataProxy.h:38
void invalidateCache() final
Definition: TestDataProxy.h:49