Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
Framework
src
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
16
#include "
FWCore/Framework/interface/ValidityInterval.h
"
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
//
30
ValidityInterval::ValidityInterval
() :
31
first_(
IOVSyncValue
::invalidIOVSyncValue()),
32
last_(
IOVSyncValue
::invalidIOVSyncValue())
33
{
34
}
35
36
ValidityInterval::ValidityInterval
(
const
IOVSyncValue
& iFirst,
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
71
ValidityInterval::validFor
(
const
IOVSyncValue
& iInstance)
const
72
{
73
return
first_
<= iInstance && iInstance <=
last_
;
74
}
75
76
//
77
// static member functions
78
//
79
const
ValidityInterval
&
80
ValidityInterval::invalidInterval
()
81
{
82
static
const
ValidityInterval
s_invalid;
83
return
s_invalid;
84
}
85
86
}
edm::ValidityInterval
Definition:
ValidityInterval.h:28
edm::ValidityInterval::last_
IOVSyncValue last_
Definition:
ValidityInterval.h:69
edm::ValidityInterval::validFor
bool validFor(const IOVSyncValue &) const
Definition:
ValidityInterval.cc:71
edm::ValidityInterval::first_
IOVSyncValue first_
Definition:
ValidityInterval.h:68
edm::ValidityInterval::ValidityInterval
ValidityInterval()
Definition:
ValidityInterval.cc:30
ValidityInterval.h
edm::ValidityInterval::invalidInterval
static const ValidityInterval & invalidInterval()
Definition:
ValidityInterval.cc:80
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
Generated for CMSSW Reference Manual by
1.8.5