#include <ModuleCallingContext.h>
Public Types | |
enum | State { State::kPrefetching, State::kRunning, State::kInvalid } |
typedef ParentContext::Type | Type |
Private Attributes | |
ModuleDescription const * | moduleDescription_ |
ParentContext | parent_ |
ModuleCallingContext const * | previousModuleOnThread_ |
State | state_ |
Description: This is intended primarily to be passed to Services as an argument to their callback functions.
Usage:
Definition at line 29 of file ModuleCallingContext.h.
Definition at line 31 of file ModuleCallingContext.h.
|
strong |
Enumerator | |
---|---|
kPrefetching | |
kRunning | |
kInvalid |
Definition at line 33 of file ModuleCallingContext.h.
edm::ModuleCallingContext::ModuleCallingContext | ( | ModuleDescription const * | moduleDescription | ) |
Definition at line 12 of file ModuleCallingContext.cc.
edm::ModuleCallingContext::ModuleCallingContext | ( | ModuleDescription const * | moduleDescription, |
State | state, | ||
ParentContext const & | parent, | ||
ModuleCallingContext const * | previousOnThread | ||
) |
Definition at line 15 of file ModuleCallingContext.cc.
unsigned edm::ModuleCallingContext::depth | ( | void | ) | const |
Definition at line 66 of file ModuleCallingContext.cc.
References internalContext(), edm::ParentContext::kInternal, edm::ParentContext::kModule, edm::InternalContext::moduleCallingContext(), moduleCallingContext(), and type().
Referenced by internalContext(), edm::service::Tracer::postEventReadFromSource(), edm::service::Tracer::postModuleEvent(), edm::service::Tracer::postModuleEventAcquire(), edm::service::Tracer::postModuleEventDelayedGet(), edm::service::Tracer::postModuleEventPrefetching(), edm::service::Tracer::postModuleGlobalBeginLumi(), edm::service::Tracer::postModuleGlobalBeginRun(), edm::service::Tracer::postModuleGlobalEndLumi(), edm::service::Tracer::postModuleGlobalEndRun(), edm::service::Tracer::postModuleStreamBeginLumi(), edm::service::Tracer::postModuleStreamBeginRun(), edm::service::Tracer::postModuleStreamEndLumi(), edm::service::Tracer::postModuleStreamEndRun(), edm::service::Tracer::postModuleWriteLumi(), edm::service::Tracer::postModuleWriteRun(), edm::service::Tracer::preEventReadFromSource(), edm::service::Tracer::preModuleEvent(), edm::service::Tracer::preModuleEventAcquire(), edm::service::Tracer::preModuleEventDelayedGet(), edm::service::Tracer::preModuleEventPrefetching(), edm::service::Tracer::preModuleGlobalBeginLumi(), edm::service::Tracer::preModuleGlobalBeginRun(), edm::service::Tracer::preModuleGlobalEndLumi(), edm::service::Tracer::preModuleGlobalEndRun(), edm::service::Tracer::preModuleStreamBeginLumi(), edm::service::Tracer::preModuleStreamBeginRun(), edm::service::Tracer::preModuleStreamEndLumi(), edm::service::Tracer::preModuleStreamEndRun(), edm::service::Tracer::preModuleWriteLumi(), and edm::service::Tracer::preModuleWriteRun().
GlobalContext const * edm::ModuleCallingContext::getGlobalContext | ( | ) | const |
Definition at line 43 of file ModuleCallingContext.cc.
References Exception, getTopModuleCallingContext(), globalContext(), edm::ParentContext::kGlobal, edm::errors::LogicError, and type().
Referenced by internalContext().
StreamContext const * edm::ModuleCallingContext::getStreamContext | ( | ) | const |
Definition at line 32 of file ModuleCallingContext.cc.
References Exception, getTopModuleCallingContext(), edm::ParentContext::kPlaceInPath, edm::ParentContext::kStream, edm::errors::LogicError, edm::PlaceInPathContext::pathContext(), placeInPathContext(), edm::PathContext::streamContext(), streamContext(), and type().
Referenced by edm::EventAcquireSignalsSentry::EventAcquireSignalsSentry(), edm::EventSignalsSentry::EventSignalsSentry(), edm::DelayedReader::getProduct(), internalContext(), edm::Worker::prefetchAsync(), edm::UnscheduledProductResolver::prefetchAsync_(), edm::ReducedProvenanceReader::ReducedProvenanceReader(), edm::InputProductResolver::resolveProduct_(), edm::UnscheduledProductResolver::resolveProduct_(), edm::EventAcquireSignalsSentry::~EventAcquireSignalsSentry(), and edm::EventSignalsSentry::~EventSignalsSentry().
ModuleCallingContext const * edm::ModuleCallingContext::getTopModuleCallingContext | ( | ) | const |
Definition at line 52 of file ModuleCallingContext.cc.
References internalContext(), edm::ParentContext::kInternal, edm::ParentContext::kModule, edm::InternalContext::moduleCallingContext(), moduleCallingContext(), and type().
Referenced by getGlobalContext(), getStreamContext(), internalContext(), edm::service::MessageLogger::MessageLogger(), and edm::Worker::shouldRethrowException().
|
inline |
Definition at line 57 of file ModuleCallingContext.h.
References edm::ParentContext::globalContext(), and parent_.
Referenced by edm::Worker::exceptionContext(), and getGlobalContext().
|
inline |
Definition at line 58 of file ModuleCallingContext.h.
References depth(), getGlobalContext(), getStreamContext(), getTopModuleCallingContext(), edm::ParentContext::internalContext(), and parent_.
Referenced by depth(), edm::Worker::exceptionContext(), and getTopModuleCallingContext().
|
inline |
Definition at line 54 of file ModuleCallingContext.h.
References edm::ParentContext::moduleCallingContext(), and parent_.
Referenced by depth(), edm::Worker::exceptionContext(), getTopModuleCallingContext(), and edm::operator<<().
|
inline |
Definition at line 50 of file ModuleCallingContext.h.
References moduleDescription_.
Referenced by edm::Worker::exceptionContext(), edm::service::RandomNumberGeneratorService::getEngine(), edm::service::MessageLogger::MessageLogger(), edm::service::RandomNumberGeneratorService::mySeed(), edm::operator<<(), edm::SystemTimeKeeper::pauseModuleEvent(), edm::service::Tracer::postEventReadFromSource(), edm::service::SimpleMemoryCheck::postModule(), edm::service::MessageLogger::postModuleBeginStream(), edm::service::Tracer::postModuleBeginStream(), NVProfilerService::postModuleBeginStream(), edm::service::MessageLogger::postModuleEndStream(), edm::service::Tracer::postModuleEndStream(), NVProfilerService::postModuleEndStream(), FWPathsPopup::postModuleEvent(), edm::service::Timing::postModuleEvent(), TFileService::postModuleEvent(), edm::service::Tracer::postModuleEvent(), FastTimerService::postModuleEvent(), NVProfilerService::postModuleEvent(), edm::service::Tracer::postModuleEventAcquire(), FastTimerService::postModuleEventAcquire(), NVProfilerService::postModuleEventAcquire(), edm::service::Tracer::postModuleEventDelayedGet(), edm::service::Tracer::postModuleEventPrefetching(), NVProfilerService::postModuleEventPrefetching(), TFileService::postModuleGlobal(), edm::service::Tracer::postModuleGlobalBeginLumi(), NVProfilerService::postModuleGlobalBeginLumi(), edm::service::Tracer::postModuleGlobalBeginRun(), NVProfilerService::postModuleGlobalBeginRun(), edm::service::Tracer::postModuleGlobalEndLumi(), NVProfilerService::postModuleGlobalEndLumi(), edm::service::Tracer::postModuleGlobalEndRun(), NVProfilerService::postModuleGlobalEndRun(), edm::service::Tracer::postModuleStreamBeginLumi(), NVProfilerService::postModuleStreamBeginLumi(), edm::service::Tracer::postModuleStreamBeginRun(), NVProfilerService::postModuleStreamBeginRun(), edm::service::RandomNumberGeneratorService::postModuleStreamCheck(), edm::service::Tracer::postModuleStreamEndLumi(), NVProfilerService::postModuleStreamEndLumi(), edm::service::Tracer::postModuleStreamEndRun(), NVProfilerService::postModuleStreamEndRun(), edm::service::Tracer::postModuleWriteLumi(), edm::service::Tracer::postModuleWriteRun(), edm::service::Tracer::preEventReadFromSource(), VariableHelperService::preModule(), edm::service::SimpleMemoryCheck::preModule(), edm::service::MessageLogger::preModuleBeginStream(), edm::service::Tracer::preModuleBeginStream(), NVProfilerService::preModuleBeginStream(), edm::service::MessageLogger::preModuleEndStream(), edm::service::Tracer::preModuleEndStream(), NVProfilerService::preModuleEndStream(), FWPathsPopup::preModuleEvent(), TFileService::preModuleEvent(), edm::service::Tracer::preModuleEvent(), evf::FastMonitoringService::preModuleEvent(), NVProfilerService::preModuleEvent(), edm::service::Tracer::preModuleEventAcquire(), NVProfilerService::preModuleEventAcquire(), edm::service::Tracer::preModuleEventDelayedGet(), edm::service::Tracer::preModuleEventPrefetching(), NVProfilerService::preModuleEventPrefetching(), TFileService::preModuleGlobal(), edm::service::Tracer::preModuleGlobalBeginLumi(), NVProfilerService::preModuleGlobalBeginLumi(), edm::service::Tracer::preModuleGlobalBeginRun(), NVProfilerService::preModuleGlobalBeginRun(), edm::service::Tracer::preModuleGlobalEndLumi(), NVProfilerService::preModuleGlobalEndLumi(), edm::service::Tracer::preModuleGlobalEndRun(), NVProfilerService::preModuleGlobalEndRun(), edm::service::Tracer::preModuleStreamBeginLumi(), NVProfilerService::preModuleStreamBeginLumi(), edm::service::Tracer::preModuleStreamBeginRun(), NVProfilerService::preModuleStreamBeginRun(), edm::service::RandomNumberGeneratorService::preModuleStreamCheck(), edm::service::Tracer::preModuleStreamEndLumi(), NVProfilerService::preModuleStreamEndLumi(), edm::service::Tracer::preModuleStreamEndRun(), NVProfilerService::preModuleStreamEndRun(), edm::service::Tracer::preModuleWriteLumi(), edm::service::Tracer::preModuleWriteRun(), edm::SystemTimeKeeper::restartModuleEvent(), edm::SystemTimeKeeper::startModuleEvent(), edm::SystemTimeKeeper::stopModuleEvent(), and edm::service::ConcurrentModuleTimer::trackModule().
|
inline |
Definition at line 53 of file ModuleCallingContext.h.
References parent_.
Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::addMenuEntry(), Vispa.Views.LineDecayView.LineDecayContainer::applyFilter(), Vispa.Views.BoxDecayView.BoxDecayContainer::arrangeUsingRelations(), Vispa.Views.BoxDecayView.BoxDecayContainer::autolayoutAlgorithm(), Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner::autosizeScrollArea(), Vispa.Views.BoxDecayView.BoxDecayContainer::autosizeScrollArea(), Vispa.Gui.PortWidget.PortWidget::connectionPoint(), Vispa.Main.StartupScreen.StartupScreen::createDescriptionWidget(), Vispa.Views.BoxDecayView.BoxDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::delete(), Vispa.Gui.VispaWidget.VispaWidget::delete(), Vispa.Gui.VispaWidget.VispaWidget::dragWidget(), Vispa.Share.ImageExporter.ImageExporter::exportImageDialog(), edm::ParentContext::isAtEndTransition(), Vispa.Gui.VispaWidget.VispaWidget::keyPressEvent(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), Vispa.Gui.PortWidget.PortWidget::moduleParent(), Vispa.Gui.WidgetContainer.WidgetContainer::mouseDoubleClickEvent(), Vispa.Gui.VispaWidget.VispaWidget::mouseDoubleClickEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), Vispa.Views.LineDecayView.ParticleWidget::mousePressEvent(), Vispa.Views.LineDecayView.LineDecayContainer::noDecorationsMode(), Vispa.Views.LineDecayView.LineDecayContainer::operationId(), edm::operator<<(), Vispa.Gui.VispaWidget.VispaWidget::paintEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), edm::SwitchProducerProductResolver::prefetchAsync_(), edm::Worker::resetModuleDescription(), Vispa.Views.WidgetView.WidgetView::restoreSelection(), Vispa.Views.WidgetView.WidgetView::select(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), setContext(), Vispa.Views.LineDecayView.LineDecayContainer::sizeHint(), Vispa.Views.LineDecayView.LineDecayContainer::tabController(), Vispa.Views.BoxDecayView.BoxDecayContainer::toggleCollapsed(), Vispa.Views.PropertyView.PropertyView::valueChanged(), Vispa.Views.BoxDecayView.BoxDecayContainer::widgetByObject(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDoubleClicked(), and Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDragged().
|
inline |
Definition at line 55 of file ModuleCallingContext.h.
References parent_, and edm::ParentContext::placeInPathContext().
Referenced by edm::Worker::exceptionContext(), HLTPrescaler::filter(), getStreamContext(), edm::SystemTimeKeeper::pauseModuleEvent(), edm::Worker::shouldRethrowException(), and edm::SystemTimeKeeper::stopModuleEvent().
|
inline |
Definition at line 75 of file ModuleCallingContext.h.
References previousModuleOnThread_.
Referenced by edm::service::MessageLogger::MessageLogger(), edm::operator<<(), TFileService::postModuleEvent(), TFileService::postModuleGlobal(), and edm::Worker::resetModuleDescription().
void edm::ModuleCallingContext::setContext | ( | State | state, |
ParentContext const & | parent, | ||
ModuleCallingContext const * | previousOnThread | ||
) |
Definition at line 24 of file ModuleCallingContext.cc.
References parent(), parent_, previousModuleOnThread_, state(), and state_.
Referenced by edm::Worker::doWork(), edm::Worker::doWorkAsync(), edm::Worker::prefetchAsync(), edm::Worker::runAcquireAfterAsyncPrefetch(), and edm::Worker::runModuleAfterAsyncPrefetch().
|
inline |
Definition at line 48 of file ModuleCallingContext.h.
References state(), and state_.
Referenced by edm::Worker::beginStream(), and edm::Worker::endStream().
|
inline |
Definition at line 51 of file ModuleCallingContext.h.
References state_.
Referenced by edm::service::ConcurrentModuleTimer::ConcurrentModuleTimer(), edm::Worker::exceptionContext(), edm::operator<<(), edm::Worker::resetModuleDescription(), setContext(), and setState().
|
inline |
Definition at line 56 of file ModuleCallingContext.h.
References parent_, and edm::ParentContext::streamContext().
Referenced by edm::Worker::exceptionContext(), and getStreamContext().
|
inline |
Definition at line 52 of file ModuleCallingContext.h.
References parent_, and edm::ParentContext::type().
Referenced by depth(), edm::Worker::exceptionContext(), getGlobalContext(), getStreamContext(), getTopModuleCallingContext(), edm::operator<<(), edm::SystemTimeKeeper::pauseModuleEvent(), edm::Worker::shouldRethrowException(), and edm::SystemTimeKeeper::stopModuleEvent().
|
private |
Definition at line 79 of file ModuleCallingContext.h.
Referenced by moduleDescription().
|
private |
Definition at line 80 of file ModuleCallingContext.h.
Referenced by globalContext(), internalContext(), moduleCallingContext(), parent(), placeInPathContext(), setContext(), streamContext(), and type().
|
private |
Definition at line 78 of file ModuleCallingContext.h.
Referenced by previousModuleOnThread(), and setContext().
|
private |
Definition at line 81 of file ModuleCallingContext.h.
Referenced by setContext(), setState(), and state().