CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
edm::ProcessingController Class Reference

#include <ProcessingController.h>

Public Types

enum  ForwardState { kEventsAheadInFile, kNextFileExists, kAtLastEvent, kUnknownForward }
 
enum  ReverseState { kEventsBackwardsInFile, kPreviousFileExists, kAtFirstEvent, kUnknownReverse }
 
enum  Transition { kToNextEvent, kToPreviousEvent, kToSpecifiedEvent }
 

Public Member Functions

bool canRandomAccess () const
 Returns 'true' if the job's source can randomly access. More...
 
ForwardState forwardState () const
 Returns the present state of processing. More...
 
bool lastOperationSucceeded () const
 
 ProcessingController (ForwardState forwardState, ReverseState reverseState, bool iCanRandomAccess)
 
Transition requestedTransition () const
 
ReverseState reverseState () const
 
void setLastOperationSucceeded (bool value)
 
void setTransitionToEvent (edm::EventID const &iID)
 
void setTransitionToNextEvent ()
 
void setTransitionToPreviousEvent ()
 
edm::EventID specifiedEventTransition () const
 

Private Member Functions

const ProcessingControlleroperator= (const ProcessingController &)
 
 ProcessingController (const ProcessingController &)
 

Private Attributes

bool canRandomAccess_
 
ForwardState forwardState_
 
bool lastOperationSucceeded_
 
ReverseState reverseState_
 
EventID specifiedEvent_
 
Transition transition_
 

Detailed Description

Definition at line 29 of file ProcessingController.h.

Member Enumeration Documentation

Enumerator
kEventsAheadInFile 
kNextFileExists 
kAtLastEvent 
kUnknownForward 

Definition at line 32 of file ProcessingController.h.

Enumerator
kEventsBackwardsInFile 
kPreviousFileExists 
kAtFirstEvent 
kUnknownReverse 

Definition at line 39 of file ProcessingController.h.

Constructor & Destructor Documentation

ProcessingController::ProcessingController ( ForwardState  forwardState,
ReverseState  reverseState,
bool  iCanRandomAccess 
)
edm::ProcessingController::ProcessingController ( const ProcessingController )
private

Member Function Documentation

bool ProcessingController::canRandomAccess ( ) const

Returns 'true' if the job's source can randomly access.

Definition at line 105 of file ProcessingController.cc.

References canRandomAccess_.

Referenced by edm::NavigateEventsLooper::duringLoop().

106 {
107  return canRandomAccess_;
108 }
ProcessingController::ForwardState ProcessingController::forwardState ( ) const

Returns the present state of processing.

Definition at line 93 of file ProcessingController.cc.

References forwardState_.

Referenced by edm::NavigateEventsLooper::duringLoop(), and FWFFLooper::duringLoop().

94 {
95  return forwardState_;
96 }
bool ProcessingController::lastOperationSucceeded ( ) const
const ProcessingController& edm::ProcessingController::operator= ( const ProcessingController )
private
ProcessingController::Transition ProcessingController::requestedTransition ( ) const

Definition at line 111 of file ProcessingController.cc.

References transition_.

Referenced by edm::EventProcessor::processEvent().

112 {
113  return transition_;
114 }
ProcessingController::ReverseState ProcessingController::reverseState ( ) const

Definition at line 99 of file ProcessingController.cc.

References reverseState_.

Referenced by edm::NavigateEventsLooper::duringLoop(), and FWFFLooper::duringLoop().

100 {
101  return reverseState_;
102 }
void ProcessingController::setLastOperationSucceeded ( bool  value)
void ProcessingController::setTransitionToEvent ( edm::EventID const &  iID)

Tells the framework that the next event to processes should be iID. If event iID can not be found in the source, the job will drop out of the event loop.

Definition at line 77 of file ProcessingController.cc.

References kToSpecifiedEvent, specifiedEvent_, and transition_.

Referenced by edm::NavigateEventsLooper::duringLoop(), and FWFFLooper::duringLoop().

void ProcessingController::setTransitionToNextEvent ( )

Tells the framework that we should go onto the next event in the sequence. If there is no next event the job will drop out of the event loop.

Definition at line 65 of file ProcessingController.cc.

References kToNextEvent, and transition_.

Referenced by edm::NavigateEventsLooper::duringLoop(), and FWFFLooper::duringLoop().

void ProcessingController::setTransitionToPreviousEvent ( )

Tells the framework we should backup and run the previous event seen in the sequence. If you are already at the first event the job will drop out of the event loop

Definition at line 71 of file ProcessingController.cc.

References kToPreviousEvent, and transition_.

Referenced by edm::NavigateEventsLooper::duringLoop(), and FWFFLooper::duringLoop().

edm::EventID ProcessingController::specifiedEventTransition ( ) const

If 'setTransitionToEvent was called this returns the value passed, else it returns an invalid EventID

Definition at line 118 of file ProcessingController.cc.

References specifiedEvent_.

Referenced by edm::EventProcessor::processEvent().

119 {
120  return specifiedEvent_;
121 }

Member Data Documentation

bool edm::ProcessingController::canRandomAccess_
private

Definition at line 103 of file ProcessingController.h.

Referenced by canRandomAccess().

ForwardState edm::ProcessingController::forwardState_
private

Definition at line 99 of file ProcessingController.h.

Referenced by forwardState().

bool edm::ProcessingController::lastOperationSucceeded_
private

Definition at line 104 of file ProcessingController.h.

Referenced by lastOperationSucceeded(), and setLastOperationSucceeded().

ReverseState edm::ProcessingController::reverseState_
private

Definition at line 100 of file ProcessingController.h.

Referenced by reverseState().

EventID edm::ProcessingController::specifiedEvent_
private

Definition at line 102 of file ProcessingController.h.

Referenced by setTransitionToEvent(), and specifiedEventTransition().

Transition edm::ProcessingController::transition_
private