test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
cond::Iov_t Struct Reference

#include <Types.h>

Public Member Functions

virtual void clear ()
 
bool isValid () const
 
bool isValidFor (Time_t target) const
 

Public Attributes

Hash payloadId
 
Time_t since
 
Time_t till
 

Detailed Description

Definition at line 47 of file Types.h.

Member Function Documentation

void cond::Iov_t::clear ( void  )
virtual
bool cond::Iov_t::isValid ( void  ) const

Definition at line 16 of file Types.cc.

References cond::time::MAX_VAL(), cond::time::MIN_VAL(), payloadId, since, and till.

Referenced by cond::persistency::BasePayloadProxy::isValid().

16  {
17  return since != time::MAX_VAL && till != time::MIN_VAL && !payloadId.empty();
18  }
Time_t since
Definition: Types.h:51
const Time_t MIN_VAL(0)
Hash payloadId
Definition: Types.h:53
const Time_t MAX_VAL(std::numeric_limits< Time_t >::max())
Time_t till
Definition: Types.h:52
bool cond::Iov_t::isValidFor ( Time_t  target) const

Definition at line 20 of file Types.cc.

References since, and till.

Referenced by cond::persistency::BasePayloadProxy::setIntervalFor().

20  {
21  return target >= since && target <= till;
22  }
Time_t since
Definition: Types.h:51
Time_t till
Definition: Types.h:52

Member Data Documentation

Hash cond::Iov_t::payloadId
Time_t cond::Iov_t::since
Time_t cond::Iov_t::till