Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:13

0001 // -*- C++ -*-
0002 //
0003 // Package:     Framework
0004 // Class  :     ProcessingController
0005 //
0006 // Implementation:
0007 //     [Notes on implementation]
0008 //
0009 // Original Author:  Chris Jones
0010 //         Created:  Mon Aug  9 09:33:31 CDT 2010
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "FWCore/Framework/interface/ProcessingController.h"
0017 
0018 using namespace edm;
0019 //
0020 // constants, enums and typedefs
0021 //
0022 
0023 //
0024 // static data member definitions
0025 //
0026 
0027 //
0028 // constructors and destructor
0029 //
0030 ProcessingController::ProcessingController(ForwardState forwardState, ReverseState reverseState, bool iCanRandomAccess)
0031     : forwardState_(forwardState),
0032       reverseState_(reverseState),
0033       transition_(kToNextEvent),
0034       specifiedEvent_(),
0035       canRandomAccess_(iCanRandomAccess),
0036       lastOperationSucceeded_(true) {}
0037 
0038 // ProcessingController::ProcessingController(const ProcessingController& rhs)
0039 // {
0040 //    // do actual copying here;
0041 // }
0042 
0043 //ProcessingController::~ProcessingController()
0044 //{
0045 //}
0046 
0047 //
0048 // assignment operators
0049 //
0050 // const ProcessingController& ProcessingController::operator=(const ProcessingController& rhs)
0051 // {
0052 //   //An exception safe implementation is
0053 //   ProcessingController temp(rhs);
0054 //   swap(rhs);
0055 //
0056 //   return *this;
0057 // }
0058 
0059 //
0060 // member functions
0061 //
0062 void ProcessingController::setTransitionToNextEvent() { transition_ = kToNextEvent; }
0063 
0064 void ProcessingController::setTransitionToPreviousEvent() { transition_ = kToPreviousEvent; }
0065 
0066 void ProcessingController::setTransitionToEvent(edm::EventID const& iID) {
0067   transition_ = kToSpecifiedEvent;
0068   specifiedEvent_ = iID;
0069 }
0070 
0071 void ProcessingController::setLastOperationSucceeded(bool value) { lastOperationSucceeded_ = value; }
0072 
0073 //
0074 // const member functions
0075 //
0076 ProcessingController::ForwardState ProcessingController::forwardState() const { return forwardState_; }
0077 
0078 ProcessingController::ReverseState ProcessingController::reverseState() const { return reverseState_; }
0079 
0080 bool ProcessingController::canRandomAccess() const { return canRandomAccess_; }
0081 
0082 ProcessingController::Transition ProcessingController::requestedTransition() const { return transition_; }
0083 
0084 edm::EventID ProcessingController::specifiedEventTransition() const { return specifiedEvent_; }
0085 
0086 bool ProcessingController::lastOperationSucceeded() const { return lastOperationSucceeded_; }