CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:
36  LuminosityBlockIndex() = delete;
38  ~LuminosityBlockIndex() = default;
39 
40  // ---------- const member functions ---------------------
41  operator unsigned int() const { return value_; }
42 
43  bool operator==(LuminosityBlockIndex const& iRHS) const { return value() == iRHS.value(); }
44 
47  unsigned int value() const { return value_; }
48 
50 
51  private:
54 
55  explicit LuminosityBlockIndex(unsigned int iValue) : value_{iValue} {}
56 
57  // ---------- member data --------------------------------
58  unsigned int value_;
59 
60  static const unsigned int invalidValue_;
61  };
62 } // namespace edm
63 
64 #endif
static const unsigned int invalidValue_
bool operator==(LuminosityBlockIndex const &iRHS) const
unsigned int value() const
static LuminosityBlockIndex invalidLuminosityBlockIndex()
LuminosityBlockIndex(unsigned int iValue)
LuminosityBlockIndex & operator=(const LuminosityBlockIndex &)=default