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
edm::ValidityInterval::operator!=
bool operator!=(const ValidityInterval &iRHS) const
Definition: ValidityInterval.h:41
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ValidityInterval::last
const IOVSyncValue & last() const
Definition: ValidityInterval.h:38
edm::ValidityInterval
Definition: ValidityInterval.h:28
edm::ValidityInterval::first
const IOVSyncValue & first() const
Definition: ValidityInterval.h:37
edm::ValidityInterval::setFirst
void setFirst(const IOVSyncValue &iTime)
Definition: ValidityInterval.h:47
edm::ValidityInterval::operator==
bool operator==(const ValidityInterval &iRHS) const
Definition: ValidityInterval.h:40
edm::ValidityInterval::last_
IOVSyncValue last_
Definition: ValidityInterval.h:57
edm::ValidityInterval::setLast
void setLast(const IOVSyncValue &iTime)
Definition: ValidityInterval.h:48
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
edm::ValidityInterval::first_
IOVSyncValue first_
Definition: ValidityInterval.h:56
edm::ValidityInterval::validFor
bool validFor(const IOVSyncValue &) const
Definition: ValidityInterval.cc:64
edm::ValidityInterval::ValidityInterval
ValidityInterval()
Definition: ValidityInterval.cc:30
IOVSyncValue.h
edm::ValidityInterval::invalidInterval
static const ValidityInterval & invalidInterval()
Definition: ValidityInterval.cc:71