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 {
30 
31  public:
33  ValidityInterval(const IOVSyncValue& iFirst,
34  const IOVSyncValue& iLast);
35  //virtual ~ValidityInterval();
36 
37  // ---------- const member functions ---------------------
38  bool validFor(const IOVSyncValue&) const;
39 
40  const IOVSyncValue& first() const { return first_; }
41  const IOVSyncValue& last() const { return last_; }
42 
43  bool operator==(const ValidityInterval& iRHS) const {
44  return iRHS.first_ == first_ &&
45  iRHS.last_ == last_ ;
46  }
47  bool operator!=(const ValidityInterval& iRHS) const {
48  return ! (*this == iRHS);
49  }
50 
51  // ---------- static member functions --------------------
52  static const ValidityInterval& invalidInterval();
53 
54  // ---------- member functions ---------------------------
55  void setFirst(const IOVSyncValue& iTime) {
56  first_ = iTime;
57  }
58  void setLast(const IOVSyncValue& iTime) {
59  last_ = iTime;
60  }
61 
62  private:
63  //ValidityInterval(const ValidityInterval&); // stop default
64 
65  //const ValidityInterval& operator=(const ValidityInterval&); // stop default
66 
67  // ---------- member data --------------------------------
70 };
71 
72 }
73 #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