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
 
virtual ~Iov_t ()
 

Public Attributes

Hash payloadId
 
Time_t since
 
Time_t till
 

Detailed Description

Definition at line 49 of file Types.h.

Constructor & Destructor Documentation

virtual cond::Iov_t::~Iov_t ( )
inlinevirtual

Definition at line 50 of file Types.h.

50 {}

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(), and core.AutoHandle.AutoHandle::ReallyLoad().

16  {
17  return since != time::MAX_VAL && till != time::MIN_VAL && !payloadId.empty();
18  }
Time_t since
Definition: Types.h:54
const Time_t MIN_VAL(0)
Hash payloadId
Definition: Types.h:56
const Time_t MAX_VAL(std::numeric_limits< Time_t >::max())
Time_t till
Definition: Types.h:55
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:54
Time_t till
Definition: Types.h:55

Member Data Documentation

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