CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::ModuleContextSentry Class Reference

#include <ModuleContextSentry.h>

Public Member Functions

 ModuleContextSentry (ModuleCallingContext *moduleCallingContext, ParentContext const &parentContext)
 
 ~ModuleContextSentry ()
 

Private Attributes

edm::propagate_const< ModuleCallingContext * > moduleCallingContext_
 

Detailed Description

Definition at line 11 of file ModuleContextSentry.h.

Constructor & Destructor Documentation

◆ ModuleContextSentry()

edm::ModuleContextSentry::ModuleContextSentry ( ModuleCallingContext moduleCallingContext,
ParentContext const &  parentContext 
)
inline

◆ ~ModuleContextSentry()

edm::ModuleContextSentry::~ModuleContextSentry ( )
inline

Definition at line 19 of file ModuleContextSentry.h.

References edm::ModuleCallingContext::kInvalid, moduleCallingContext_, and edm::CurrentModuleOnThread::setCurrentModuleOnThread().

19  {
21  moduleCallingContext_->setContext(ModuleCallingContext::State::kInvalid, ParentContext(), nullptr);
22  }
edm::propagate_const< ModuleCallingContext * > moduleCallingContext_
static void setCurrentModuleOnThread(ModuleCallingContext const *v)

Member Data Documentation

◆ moduleCallingContext_

edm::propagate_const<ModuleCallingContext*> edm::ModuleContextSentry::moduleCallingContext_
private

Definition at line 25 of file ModuleContextSentry.h.

Referenced by ModuleContextSentry(), and ~ModuleContextSentry().