Main Page
Namespaces
Classes
Package Documentation
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()), last_(
IOVSyncValue
::invalidIOVSyncValue()) {}
32
33
ValidityInterval::ValidityInterval
(
const
IOVSyncValue
& iFirst,
const
IOVSyncValue
& iLast)
34
:
first_
(iFirst),
last_
(iLast) {}
35
36
// ValidityInterval::ValidityInterval(const ValidityInterval& rhs)
37
// {
38
// // do actual copying here;
39
// }
40
41
//ValidityInterval::~ValidityInterval()
42
//{
43
//}
44
45
//
46
// assignment operators
47
//
48
// const ValidityInterval& ValidityInterval::operator=(const ValidityInterval& rhs)
49
// {
50
// //An exception safe implementation is
51
// ValidityInterval temp(rhs);
52
// swap(rhs);
53
//
54
// return *this;
55
// }
56
57
//
58
// member functions
59
//
60
61
//
62
// const member functions
63
//
64
bool
ValidityInterval::validFor
(
const
IOVSyncValue
& iInstance)
const
{
65
return
first_
<= iInstance && iInstance <=
last_
;
66
}
67
68
//
69
// static member functions
70
//
71
const
ValidityInterval
&
ValidityInterval::invalidInterval
() {
72
static
const
ValidityInterval
s_invalid;
73
return
s_invalid;
74
}
75
76
}
// namespace edm
edm::ValidityInterval
Definition:
ValidityInterval.h:28
edm::ValidityInterval::last_
IOVSyncValue last_
Definition:
ValidityInterval.h:57
edm::ValidityInterval::validFor
bool validFor(const IOVSyncValue &) const
Definition:
ValidityInterval.cc:64
edm::ValidityInterval::first_
IOVSyncValue first_
Definition:
ValidityInterval.h:56
edm::ValidityInterval::ValidityInterval
ValidityInterval()
Definition:
ValidityInterval.cc:30
ValidityInterval.h
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ValidityInterval::invalidInterval
static const ValidityInterval & invalidInterval()
Definition:
ValidityInterval.cc:71
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
Generated for CMSSW Reference Manual by
1.8.11