test
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 //
20 
21 // system include files
22 #include <vector>
23 
24 // user include files
25 
26 // forward declarations
27 namespace edm {
28  class BranchID;
29  class EventPrincipal;
30 
32  {
33 
34  public:
35  EarlyDeleteHelper(unsigned int* iBeginIndexItr,
36  unsigned int* iEndIndexItr,
37  std::vector<std::pair<edm::BranchID,unsigned int>>* iBranchCounts);
38  EarlyDeleteHelper(const EarlyDeleteHelper&) = default;
40  //virtual ~EarlyDeleteHelper();
41 
42  // ---------- const member functions ---------------------
43 
44  // ---------- static member functions --------------------
45 
46  // ---------- member functions ---------------------------
48  void moduleRan(EventPrincipal const&);
49  void pathFinished(EventPrincipal const&);
50  void addedToPath() { ++nPathsOn_;}
51  void appendIndex(unsigned int index);
52  void shiftIndexPointers(unsigned int iShift);
53 
54  unsigned int* begin() { return pBeginIndex_;}
55  unsigned int* end() { return pEndIndex_;}
56 
57  private:
58 
59  // ---------- member data --------------------------------
60  unsigned int* pBeginIndex_;
61  unsigned int* pEndIndex_;
62  std::vector<std::pair<edm::BranchID,unsigned int>>* pBranchCounts_;
63  unsigned int pathsLeftToComplete_;
64  unsigned int nPathsOn_;
65 
66  };
67 }
68 
69 
70 #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 const &)
void pathFinished(EventPrincipal const &)
EarlyDeleteHelper & operator=(const EarlyDeleteHelper &)=default
void shiftIndexPointers(unsigned int iShift)
unsigned int * begin()