CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EarlyDeleteHelper.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_EarlyDeleteHelper_h
2 #define FWCore_Framework_EarlyDeleteHelper_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Class : EarlyDeleteHelper
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Mon Feb 6 16:17:08 CST 2012
19 // $Id: EarlyDeleteHelper.h,v 1.1 2012/02/09 22:12:56 chrjones Exp $
20 //
21 
22 // system include files
23 #include <vector>
24 
25 // user include files
26 
27 // forward declarations
28 namespace edm {
29  class BranchID;
30  class EventPrincipal;
31 
33  {
34 
35  public:
36  EarlyDeleteHelper(unsigned int* iBeginIndexItr,
37  unsigned int* iEndIndexItr,
38  std::vector<std::pair<edm::BranchID,unsigned int>>* iBranchCounts);
39  EarlyDeleteHelper(const EarlyDeleteHelper&) = default;
41  //virtual ~EarlyDeleteHelper();
42 
43  // ---------- const member functions ---------------------
44 
45  // ---------- static member functions --------------------
46 
47  // ---------- member functions ---------------------------
51  void addedToPath() { ++nPathsOn_;}
52  void appendIndex(unsigned int index);
53  void shiftIndexPointers(unsigned int iShift);
54 
55  unsigned int* begin() { return pBeginIndex_;}
56  unsigned int* end() { return pEndIndex_;}
57 
58  private:
59 
60  // ---------- member data --------------------------------
61  unsigned int* pBeginIndex_;
62  unsigned int* pEndIndex_;
63  std::vector<std::pair<edm::BranchID,unsigned int>>* pBranchCounts_;
64  unsigned int pathsLeftToComplete_;
65  unsigned int nPathsOn_;
66 
67  };
68 }
69 
70 
71 #endif
void appendIndex(unsigned int index)
std::vector< std::pair< edm::BranchID, unsigned int > > * pBranchCounts_
unsigned int pathsLeftToComplete_
EarlyDeleteHelper(unsigned int *iBeginIndexItr, unsigned int *iEndIndexItr, std::vector< std::pair< edm::BranchID, unsigned int >> *iBranchCounts)
unsigned int * pBeginIndex_
void moduleRan(EventPrincipal &)
EarlyDeleteHelper & operator=(const EarlyDeleteHelper &)=default
void shiftIndexPointers(unsigned int iShift)
unsigned int * begin()
void pathFinished(EventPrincipal &)