CMS 3D CMS Logo

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

#include <InputSource.h>

Public Member Functions

 EventSourceSentry (EventSourceSentry const &)=delete
 
 EventSourceSentry (InputSource const &source, StreamContext &sc)
 
EventSourceSentryoperator= (EventSourceSentry const &)=delete
 
 ~EventSourceSentry ()
 

Private Attributes

StreamContextsc_
 
InputSource const & source_
 

Detailed Description

Definition at line 251 of file InputSource.h.

Constructor & Destructor Documentation

◆ EventSourceSentry() [1/2]

edm::InputSource::EventSourceSentry::EventSourceSentry ( InputSource const &  source,
StreamContext sc 
)

Definition at line 449 of file InputSource.cc.

450  : source_(source), sc_(sc) {
451  source.actReg()->preSourceSignal_(sc_.streamID());
452  }

References sc_, edm::source(), and edm::StreamContext::streamID().

◆ ~EventSourceSentry()

edm::InputSource::EventSourceSentry::~EventSourceSentry ( )

Definition at line 454 of file InputSource.cc.

454 { source_.actReg()->postSourceSignal_(sc_.streamID()); }

◆ EventSourceSentry() [2/2]

edm::InputSource::EventSourceSentry::EventSourceSentry ( EventSourceSentry const &  )
delete

Member Function Documentation

◆ operator=()

EventSourceSentry& edm::InputSource::EventSourceSentry::operator= ( EventSourceSentry const &  )
delete

Member Data Documentation

◆ sc_

StreamContext& edm::InputSource::EventSourceSentry::sc_
private

Definition at line 261 of file InputSource.h.

Referenced by EventSourceSentry().

◆ source_

InputSource const& edm::InputSource::EventSourceSentry::source_
private
edm::source
static const std::string source("source")
edm::InputSource::EventSourceSentry::source_
InputSource const & source_
Definition: InputSource.h:260
edm::StreamContext::streamID
StreamID const & streamID() const
Definition: StreamContext.h:54
edm::InputSource::actReg
std::shared_ptr< ActivityRegistry > actReg() const
Accessor for Activity Registry.
Definition: InputSource.h:239
edm::InputSource::EventSourceSentry::sc_
StreamContext & sc_
Definition: InputSource.h:261