CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Attributes

edm::ValidityInterval Class Reference

#include <ValidityInterval.h>

List of all members.

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 (const IOVSyncValue &iFirst, const IOVSyncValue &iLast)
 ValidityInterval ()

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 ( )
ValidityInterval::ValidityInterval ( const IOVSyncValue iFirst,
const IOVSyncValue iLast 
)

Definition at line 36 of file ValidityInterval.cc.

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

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.

                                                          {
         return ! (*this == iRHS);
      }
bool edm::ValidityInterval::operator== ( const ValidityInterval iRHS) const [inline]

Definition at line 43 of file ValidityInterval.h.

References first_, and last_.

                                                          {
         return iRHS.first_ == first_ && 
         iRHS.last_ == last_ ;
      }
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_.

Referenced by edm::eventsetup::EventSetupRecordProvider::setValidityIntervalFor().

{
   return first_ <= iInstance && iInstance <= last_;
}

Member Data Documentation

Definition at line 68 of file ValidityInterval.h.

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

Definition at line 69 of file ValidityInterval.h.

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