CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ValidityInterval.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Framework
4 // Class : ValidityInterval
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Author: Chris Jones
10 // Created: Tue Mar 29 14:47:31 EST 2005
11 //
12 
13 // system include files
14 
15 // user include files
17 
18 namespace edm {
19 //
20 // constants, enums and typedefs
21 //
22 
23 //
24 // static data member definitions
25 //
26 
27 //
28 // constructors and destructor
29 //
31  first_(IOVSyncValue::invalidIOVSyncValue()),
32  last_(IOVSyncValue::invalidIOVSyncValue())
33 {
34 }
35 
37  const IOVSyncValue& iLast) :
38 first_(iFirst), last_(iLast)
39 {
40 }
41 
42 // ValidityInterval::ValidityInterval(const ValidityInterval& rhs)
43 // {
44 // // do actual copying here;
45 // }
46 
47 //ValidityInterval::~ValidityInterval()
48 //{
49 //}
50 
51 //
52 // assignment operators
53 //
54 // const ValidityInterval& ValidityInterval::operator=(const ValidityInterval& rhs)
55 // {
56 // //An exception safe implementation is
57 // ValidityInterval temp(rhs);
58 // swap(rhs);
59 //
60 // return *this;
61 // }
62 
63 //
64 // member functions
65 //
66 
67 //
68 // const member functions
69 //
70 bool
72 {
73  return first_ <= iInstance && iInstance <= last_;
74 }
75 
76 //
77 // static member functions
78 //
79 const ValidityInterval&
81 {
82  static const ValidityInterval s_invalid;
83  return s_invalid;
84 }
85 
86 }
bool validFor(const IOVSyncValue &) const
static const ValidityInterval & invalidInterval()