test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

Definition at line 20 of file ModuleContextSentry.h.

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

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

Member Data Documentation

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

Definition at line 25 of file ModuleContextSentry.h.

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