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 ( )

◆ 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.

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

References first_, and 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.

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

References first_, and last_.

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

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().

edm::IOVSyncValue::invalidIOVSyncValue
static const IOVSyncValue & invalidIOVSyncValue()
Definition: IOVSyncValue.cc:78
edm::ValidityInterval::last_
IOVSyncValue last_
Definition: ValidityInterval.h:57
edm::ValidityInterval::first_
IOVSyncValue first_
Definition: ValidityInterval.h:56
ValidityInterval