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() [1/2]

ValidityInterval::ValidityInterval ( )

Definition at line 30 of file ValidityInterval.cc.

◆ ValidityInterval() [2/2]

ValidityInterval::ValidityInterval ( const IOVSyncValue iFirst,
const IOVSyncValue iLast 
)

Definition at line 33 of file ValidityInterval.cc.

34  : first_(iFirst), last_(iLast) {}

Member Function Documentation

◆ first()

const IOVSyncValue& edm::ValidityInterval::first ( ) const
inline

◆ invalidInterval()

const ValidityInterval & ValidityInterval::invalidInterval ( )
static

◆ last()

const IOVSyncValue& edm::ValidityInterval::last ( ) const
inline

◆ operator!=()

bool edm::ValidityInterval::operator!= ( const ValidityInterval iRHS) const
inline

Definition at line 41 of file ValidityInterval.h.

41 { return !(*this == iRHS); }

◆ operator==()

bool edm::ValidityInterval::operator== ( const ValidityInterval iRHS) const
inline

Definition at line 40 of file ValidityInterval.h.

References first_, and last_.

40 { return iRHS.first_ == first_ && iRHS.last_ == last_; }

◆ setFirst()

void edm::ValidityInterval::setFirst ( const IOVSyncValue iTime)
inline

◆ setLast()

void edm::ValidityInterval::setLast ( const IOVSyncValue iTime)
inline

◆ validFor()

bool ValidityInterval::validFor ( const IOVSyncValue iInstance) const

Definition at line 64 of file ValidityInterval.cc.

References first_, and last_.

Referenced by edm::eventsetup::EventSetupRecordProvider::doWeNeedToWaitForIOVsToFinish(), and edm::eventsetup::EventSetupRecordProvider::setValidityIntervalFor().

64  {
65  return first_ <= iInstance && iInstance <= last_;
66  }

Member Data Documentation

◆ first_

IOVSyncValue edm::ValidityInterval::first_
private

Definition at line 56 of file ValidityInterval.h.

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

◆ last_

IOVSyncValue edm::ValidityInterval::last_
private

Definition at line 57 of file ValidityInterval.h.

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