CMS 3D CMS Logo

ValidityInterval.h
Go to the documentation of this file.
1 #ifndef Framework_ValidityInterval_h
2 #define Framework_ValidityInterval_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Class : ValidityInterval
7 //
16 //
17 // Author: Chris Jones
18 // Created: Tue Mar 29 14:47:25 EST 2005
19 //
20 
21 // system include files
22 
23 // user include files
25 
26 // forward declarations
27 namespace edm {
29  public:
31  ValidityInterval(const IOVSyncValue& iFirst, const IOVSyncValue& iLast);
32  //virtual ~ValidityInterval();
33 
34  // ---------- const member functions ---------------------
35  bool validFor(const IOVSyncValue&) const;
36 
37  const IOVSyncValue& first() const { return first_; }
38  const IOVSyncValue& last() const { return last_; }
39 
40  bool operator==(const ValidityInterval& iRHS) const { return iRHS.first_ == first_ && iRHS.last_ == last_; }
41  bool operator!=(const ValidityInterval& iRHS) const { return !(*this == iRHS); }
42 
43  // ---------- static member functions --------------------
44  static const ValidityInterval& invalidInterval();
45 
46  // ---------- member functions ---------------------------
47  void setFirst(const IOVSyncValue& iTime) { first_ = iTime; }
48  void setLast(const IOVSyncValue& iTime) { last_ = iTime; }
49 
50  private:
51  //ValidityInterval(const ValidityInterval&); // stop default
52 
53  //const ValidityInterval& operator=(const ValidityInterval&); // stop default
54 
55  // ---------- member data --------------------------------
58  };
59 
60 } // namespace edm
61 #endif
void setFirst(const IOVSyncValue &iTime)
bool validFor(const IOVSyncValue &) const
const IOVSyncValue & last() const
bool operator!=(const ValidityInterval &iRHS) const
void setLast(const IOVSyncValue &iTime)
HLT enums.
static const ValidityInterval & invalidInterval()
const IOVSyncValue & first() const
bool operator==(const ValidityInterval &iRHS) const