CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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  {
35 
36  public:
39  ~LuminosityBlockIndex() = default;
40 
41  // ---------- const member functions ---------------------
42  operator unsigned int() const {
43  return value_;
44  }
45 
46  bool operator==(LuminosityBlockIndex const& iRHS) const {
47  return value() == iRHS.value();
48  }
49 
52  unsigned int value() const { return value_;}
53 
55 
56  private:
59 
60  explicit LuminosityBlockIndex(unsigned int iValue): value_{iValue} {}
61 
62  LuminosityBlockIndex()= delete;
63 
64  // ---------- member data --------------------------------
65  unsigned int value_;
66 
67  static const unsigned int invalidValue_;
68  };
69 }
70 
71 
72 #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