CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ProductLookupIndex.h
Go to the documentation of this file.
1 #ifndef DataFormats_Provenance_ProductLookupIndex_h
2 #define DataFormats_Provenance_ProductLookupIndex_h
3 // -*- C++ -*-
4 //
5 // Package: Provenance
6 // Class : ProductLookupIndex
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri May 1 11:00:21 CDT 2009
19 //
20 
21 // system include files
22 
23 // user include files
25 
26 // forward declarations
27 
28 namespace edm {
29  class ConstBranchDescription;
30 
32 
33  public:
35  ProductTransientIndex iIndex,
36  unsigned int iProcessIndex,
37  bool iIsFirst=false):
38  branchDescription_(iBranch),
39  index_(iIndex),
40  processIndex_(iProcessIndex),
41  isFirst_(iIsFirst) {}
42 
43  void setIsFirst(bool iIsFirst) {
44  isFirst_ = iIsFirst;
45  }
46 
47  void setProcessIndex(unsigned int iIndex) {
48  processIndex_ = iIndex;
49  }
50  // ---------- const member functions ---------------------
52  ProductTransientIndex index() const { return index_; }
53 
55  unsigned int processIndex() const { return processIndex_; }
56 
60  bool isFirst() const { return isFirst_; }
61 
62  private:
63  //ProductLookupIndex(ProductLookupIndex const&); // allow default
64 
65  //ProductLookupIndex const& operator=(ProductLookupIndex const&); // allow default
66 
67  // ---------- member data --------------------------------
70  unsigned int processIndex_;
71  bool isFirst_;
72 
73  };
74 }
75 
76 
77 #endif
ConstBranchDescription const * branchDescription() const
ProductTransientIndex index() const
ConstBranchDescription const * branchDescription_
void setIsFirst(bool iIsFirst)
ProductLookupIndex(ConstBranchDescription const *iBranch, ProductTransientIndex iIndex, unsigned int iProcessIndex, bool iIsFirst=false)
void setProcessIndex(unsigned int iIndex)
ProductTransientIndex index_
unsigned int processIndex() const
index into the process history table for the process corresponding to this element ...