CMS 3D CMS Logo

AbilityChecker.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_AbilityChecker_h
2 #define FWCore_Framework_AbilityChecker_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : AbilityChecker
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sat, 03 Aug 2013 15:38:02 GMT
19 //
20 
21 // system include files
22 
23 // user include files
25 
26 // forward declarations
27 namespace edm {
28  namespace stream {
29  namespace impl {
30  struct LastCheck {};
31 
32  template <typename T, typename... U>
33  struct HasAbility;
34 
35  template <typename G, typename... U>
36  struct HasAbility<GlobalCache<G>, U...> : public HasAbility<U...> {
37  static constexpr bool kGlobalCache = true;
38  };
39 
40  template <typename... CacheTypes, typename... U>
41  struct HasAbility<InputProcessBlockCache<CacheTypes...>, U...> : public HasAbility<U...> {
42  static constexpr bool kInputProcessBlockCache = true;
43  };
44 
45  template <typename R, typename... U>
46  struct HasAbility<RunCache<R>, U...> : public HasAbility<U...> {
47  static constexpr bool kRunCache = true;
48  };
49 
50  template <typename R, typename... U>
51  struct HasAbility<LuminosityBlockCache<R>, U...> : public HasAbility<U...> {
52  static constexpr bool kLuminosityBlockCache = true;
53  };
54 
55  template <typename R, typename... U>
56  struct HasAbility<RunSummaryCache<R>, U...> : public HasAbility<U...> {
57  static constexpr bool kRunSummaryCache = true;
58  };
59 
60  template <typename R, typename... U>
61  struct HasAbility<LuminosityBlockSummaryCache<R>, U...> : public HasAbility<U...> {
62  static constexpr bool kLuminosityBlockSummaryCache = true;
63  };
64 
65  template <typename... U>
66  struct HasAbility<edm::WatchProcessBlock, U...> : public HasAbility<U...> {
67  static constexpr bool kWatchProcessBlock = true;
68  };
69 
70  template <typename... U>
71  struct HasAbility<edm::BeginProcessBlockProducer, U...> : public HasAbility<U...> {
72  static constexpr bool kBeginProcessBlockProducer = true;
73  };
74 
75  template <typename... U>
76  struct HasAbility<edm::EndProcessBlockProducer, U...> : public HasAbility<U...> {
77  static constexpr bool kEndProcessBlockProducer = true;
78  };
79 
80  template <typename... U>
81  struct HasAbility<edm::BeginRunProducer, U...> : public HasAbility<U...> {
82  static constexpr bool kBeginRunProducer = true;
83  };
84 
85  template <typename... U>
86  struct HasAbility<edm::EndRunProducer, U...> : public HasAbility<U...> {
87  static constexpr bool kEndRunProducer = true;
88  };
89 
90  template <typename... U>
91  struct HasAbility<edm::BeginLuminosityBlockProducer, U...> : public HasAbility<U...> {
92  static constexpr bool kBeginLuminosityBlockProducer = true;
93  };
94 
95  template <typename... U>
96  struct HasAbility<edm::EndLuminosityBlockProducer, U...> : public HasAbility<U...> {
97  static constexpr bool kEndLuminosityBlockProducer = true;
98  };
99 
100  template <typename... U>
101  struct HasAbility<edm::ExternalWork, U...> : public HasAbility<U...> {
102  static constexpr bool kExternalWork = true;
103  };
104 
105  template <typename... U>
106  struct HasAbility<edm::Transformer, U...> : public HasAbility<U...> {
107  static constexpr bool kTransformer = true;
108  };
109 
110  template <typename... U>
111  struct HasAbility<edm::Accumulator, U...> : public HasAbility<U...> {
112  static constexpr bool kAccumulator = true;
113  };
114 
115  template <>
117  static constexpr bool kGlobalCache = false;
118  static constexpr bool kInputProcessBlockCache = false;
119  static constexpr bool kRunCache = false;
120  static constexpr bool kLuminosityBlockCache = false;
121  static constexpr bool kRunSummaryCache = false;
122  static constexpr bool kLuminosityBlockSummaryCache = false;
123  static constexpr bool kWatchProcessBlock = false;
124  static constexpr bool kBeginProcessBlockProducer = false;
125  static constexpr bool kEndProcessBlockProducer = false;
126  static constexpr bool kBeginRunProducer = false;
127  static constexpr bool kEndRunProducer = false;
128  static constexpr bool kBeginLuminosityBlockProducer = false;
129  static constexpr bool kEndLuminosityBlockProducer = false;
130  static constexpr bool kExternalWork = false;
131  static constexpr bool kAccumulator = false;
132  static constexpr bool kTransformer = false;
133  };
134  } // namespace impl
135  template <typename... T>
136  struct AbilityChecker : public impl::HasAbility<T..., impl::LastCheck> {};
137  } // namespace stream
138 } // namespace edm
139 
140 #endif
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
HLT enums.
long double T