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:
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
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::LuminosityBlockIndex::operator==
bool operator==(LuminosityBlockIndex const &iRHS) const
Definition: LuminosityBlockIndex.h:43
edm::LuminosityBlockPrincipal
Definition: LuminosityBlockPrincipal.h:31
edm::LuminosityBlockIndex::value
unsigned int value() const
Definition: LuminosityBlockIndex.h:47
edm::LuminosityBlockIndex::LuminosityBlockIndex
LuminosityBlockIndex()=delete
edm::LuminosityBlockIndex
Definition: LuminosityBlockIndex.h:33
edm::LuminosityBlockIndex::~LuminosityBlockIndex
~LuminosityBlockIndex()=default
edm::LuminosityBlockIndex::invalidLuminosityBlockIndex
static LuminosityBlockIndex invalidLuminosityBlockIndex()
Definition: LuminosityBlockIndex.cc:9
createfilelist.int
int
Definition: createfilelist.py:10
edm::LuminosityBlockIndex::LuminosityBlockIndex
LuminosityBlockIndex(unsigned int iValue)
Definition: LuminosityBlockIndex.h:55
edm::LuminosityBlockIndex::invalidValue_
static const unsigned int invalidValue_
Definition: LuminosityBlockIndex.h:60
edm::LuminosityBlockIndex::operator=
LuminosityBlockIndex & operator=(const LuminosityBlockIndex &)=default
edm::LuminosityBlockIndex::value_
unsigned int value_
Definition: LuminosityBlockIndex.h:58