CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
implementors.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_stream_implementors_h
2 #define FWCore_Framework_stream_implementors_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : implementors
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri, 02 Aug 2013 11:52:34 GMT
19 //
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
29 
30 // forward declarations
31 namespace edm {
32 
33  namespace stream {
34  namespace impl {
35  class EmptyType {};
36 
37 
38  template <typename C>
40  public:
41  GlobalCacheHolder() = default;
42  GlobalCacheHolder( GlobalCacheHolder<C> const&) = delete;
44 
45  void setGlobalCache(C const* iCache) {
46  cache_=iCache;
47  }
48  protected:
49  C const* globalCache() const { return cache_; }
50  private:
51  C const* cache_;
52  };
53 
54  template <typename C>
56  public:
57  RunCacheHolder() = default;
58  RunCacheHolder( RunCacheHolder<C> const&) = delete;
60  void setRunCache(C const* iCache) { cache_=iCache; }
61  protected:
62  C const* runCache() const { return cache_; }
63  private:
64  C const* cache_;
65  };
66 
67  template <typename C>
69  public:
70  LuminosityBlockCacheHolder() = default;
73  void setLuminosityBlockCache(C const* iCache) { cache_=iCache; }
74  protected:
75  C const* luminosityBlockCache() const { return cache_; }
76  private:
77  C const* cache_;
78  };
79 
80  template <typename C>
82  public:
83  RunSummaryCacheHolder() = default;
86  private:
87  virtual void endRunSummary(edm::Run const&, edm::EventSetup const&, C*) const = 0;
88  };
89 
90  template <typename C>
92  public:
96  private:
97 
98  virtual void endLuminosityBlockSummary(edm::LuminosityBlock const&, edm::EventSetup const&, C*) const = 0;
99  };
100 
101 
103  public:
104  BeginRunProducer() = default;
105  BeginRunProducer( BeginRunProducer const&) = delete;
106  BeginRunProducer& operator=(BeginRunProducer const&) = delete;
107 
110  };
111 
113  public:
114  EndRunProducer() = default;
115  EndRunProducer( EndRunProducer const&) = delete;
116  EndRunProducer& operator=(EndRunProducer const&) = delete;
117 
118  private:
119 
122  };
123 
125  public:
126  BeginLuminosityBlockProducer() = default;
129 
130  private:
133  };
134 
136  public:
137  EndLuminosityBlockProducer() = default;
140 
141  private:
144  };
145  }
146  }
147 }
148 
149 
150 #endif
RunCacheHolder< C > & operator=(RunCacheHolder< C > const &)=delete
BeginRunProducer & operator=(BeginRunProducer const &)=delete
GlobalCacheHolder< C > & operator=(GlobalCacheHolder< C > const &)=delete
EndLuminosityBlockProducer & operator=(EndLuminosityBlockProducer const &)=delete
virtual void endRunSummary(edm::Run const &, edm::EventSetup const &, C *) const =0
RunSummaryCacheHolder< C > & operator=(RunSummaryCacheHolder< C > const &)=delete
virtual void endLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &, C *) const =0
BeginLuminosityBlockProducer & operator=(BeginLuminosityBlockProducer const &)=delete
void setGlobalCache(C const *iCache)
Definition: implementors.h:45
void setRunCache(C const *iCache)
Definition: implementors.h:60
LuminosityBlockSummaryCacheHolder< C > & operator=(LuminosityBlockSummaryCacheHolder< C > const &)=delete
EndRunProducer & operator=(EndRunProducer const &)=delete
LuminosityBlockCacheHolder< C > & operator=(LuminosityBlockCacheHolder< C > const &)=delete
Definition: Run.h:43