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
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::LuminosityBlockIndex::operator==
bool operator==(LuminosityBlockIndex const &iRHS) const
Definition: LuminosityBlockIndex.h:42
edm::LuminosityBlockPrincipal
Definition: LuminosityBlockPrincipal.h:31
edm::LuminosityBlockIndex::value
unsigned int value() const
Definition: LuminosityBlockIndex.h:46
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:54
edm::LuminosityBlockIndex::invalidValue_
static const unsigned int invalidValue_
Definition: LuminosityBlockIndex.h:61
edm::LuminosityBlockIndex::operator=
LuminosityBlockIndex & operator=(const LuminosityBlockIndex &)=default
edm::LuminosityBlockIndex::value_
unsigned int value_
Definition: LuminosityBlockIndex.h:59