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.

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

Definition at line 33 of file ValidityInterval.cc.

34  : 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 41 of file ValidityInterval.h.

References invalidInterval().

41 { return !(*this == iRHS); }
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_; }
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 64 of file ValidityInterval.cc.

References first_, and last_.

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

Member Data Documentation

IOVSyncValue edm::ValidityInterval::first_
private

Definition at line 56 of file ValidityInterval.h.

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

IOVSyncValue edm::ValidityInterval::last_
private

Definition at line 57 of file ValidityInterval.h.

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