CMS 3D CMS Logo

LuminosityBlockIndex.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_LuminosityBlockIndex_h
2 #define FWCore_Utilities_LuminosityBlockIndex_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Utilities
6 // Class : edm::LuminosityBlockIndex
7 //
20 //
21 // Original Author: Chris Jones
22 // Created: Fri, 26 Apr 2013 19:39:10 GMT
23 //
24 
25 // system include files
26 
27 // user include files
28 
29 // forward declarations
30 namespace edm {
31  class LuminosityBlockPrincipal;
32 
34  public:
37  ~LuminosityBlockIndex() = default;
38 
39  // ---------- const member functions ---------------------
40  operator unsigned int() const { return value_; }
41 
42  bool operator==(LuminosityBlockIndex const& iRHS) const { return value() == iRHS.value(); }
43 
46  unsigned int value() const { return value_; }
47 
49 
50  private:
53 
54  explicit LuminosityBlockIndex(unsigned int iValue) : value_{iValue} {}
55 
56  LuminosityBlockIndex() = delete;
57 
58  // ---------- member data --------------------------------
59  unsigned int value_;
60 
61  static const unsigned int invalidValue_;
62  };
63 } // namespace edm
64 
65 #endif
static const unsigned int invalidValue_
bool operator==(LuminosityBlockIndex const &iRHS) const
unsigned int value() const
static LuminosityBlockIndex invalidLuminosityBlockIndex()
LuminosityBlockIndex(unsigned int iValue)
HLT enums.
LuminosityBlockIndex & operator=(const LuminosityBlockIndex &)=default