CMS 3D CMS Logo

ESParentContext.h
Go to the documentation of this file.
1 #ifndef FWCore_ServiceRegistry_ESParentContext_h
2 #define FWCore_ServiceRegistry_ESParentContext_h
3 
12 //
13 // Original Author: C. Jones
14 // Created: 2/07/2021
15 
16 namespace edm {
17 
18  class ModuleCallingContext;
19  class ESModuleCallingContext;
20 
22  public:
23  enum class Type { kModule, kESModule, kInvalid };
24 
26  explicit ESParentContext(ModuleCallingContext const*) noexcept;
27  explicit ESParentContext(ESModuleCallingContext const*) noexcept;
28 
29  Type type() const noexcept { return type_; }
30 
33 
34  private:
36 
37  union Parent {
40  } parent_;
41  };
42 } // namespace edm
43 #endif
union edm::ESParentContext::Parent parent_
ESModuleCallingContext const * esmodule
ModuleCallingContext const * moduleCallingContext() const
ESModuleCallingContext const * esmoduleCallingContext() const
Type type() const noexcept
HLT enums.
ModuleCallingContext const * module