CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
edm::ValidityInterval Class Reference

#include <ValidityInterval.h>

Public Member Functions

const IOVSyncValuefirst () const
 
const IOVSyncValuelast () const
 
bool operator!= (const ValidityInterval &iRHS) const
 
bool operator== (const ValidityInterval &iRHS) const
 
void setFirst (const IOVSyncValue &iTime)
 
void setLast (const IOVSyncValue &iTime)
 
bool validFor (const IOVSyncValue &) const
 
 ValidityInterval ()
 
 ValidityInterval (const IOVSyncValue &iFirst, const IOVSyncValue &iLast)
 

Static Public Member Functions

static const ValidityIntervalinvalidInterval ()
 

Private Attributes

IOVSyncValue first_
 
IOVSyncValue last_
 

Detailed Description

Definition at line 28 of file ValidityInterval.h.

Constructor & Destructor Documentation

ValidityInterval::ValidityInterval ( )

Definition at line 30 of file ValidityInterval.cc.

30  :
33 {
34 }
static const IOVSyncValue & invalidIOVSyncValue()
Definition: IOVSyncValue.cc:92
ValidityInterval::ValidityInterval ( const IOVSyncValue iFirst,
const IOVSyncValue iLast 
)

Definition at line 36 of file ValidityInterval.cc.

37  :
38 first_(iFirst), last_(iLast)
39 {
40 }

Member Function Documentation

const IOVSyncValue& edm::ValidityInterval::first ( ) const
inline
const ValidityInterval & ValidityInterval::invalidInterval ( )
static
const IOVSyncValue& edm::ValidityInterval::last ( ) const
inline
bool edm::ValidityInterval::operator!= ( const ValidityInterval iRHS) const
inline

Definition at line 47 of file ValidityInterval.h.

References invalidInterval().

47  {
48  return ! (*this == iRHS);
49  }
bool edm::ValidityInterval::operator== ( const ValidityInterval iRHS) const
inline

Definition at line 43 of file ValidityInterval.h.

References first_, and last_.

43  {
44  return iRHS.first_ == first_ &&
45  iRHS.last_ == last_ ;
46  }
void edm::ValidityInterval::setFirst ( const IOVSyncValue iTime)
inline
void edm::ValidityInterval::setLast ( const IOVSyncValue iTime)
inline
bool ValidityInterval::validFor ( const IOVSyncValue iInstance) const

Definition at line 71 of file ValidityInterval.cc.

References first_, and last_.

72 {
73  return first_ <= iInstance && iInstance <= last_;
74 }

Member Data Documentation

IOVSyncValue edm::ValidityInterval::first_
private

Definition at line 68 of file ValidityInterval.h.

Referenced by first(), operator==(), setFirst(), and validFor().

IOVSyncValue edm::ValidityInterval::last_
private

Definition at line 69 of file ValidityInterval.h.

Referenced by last(), operator==(), setLast(), and validFor().