CMS 3D CMS Logo

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

#include <IOVProxy.h>

Public Types

typedef IOVElementProxy result_type
 

Public Member Functions

 IterHelp ()
 
 IterHelp (IOVProxyData &in)
 
 IterHelp (IOVProxyData &in, cond::Time_t lowBound)
 
result_type const & operator() (int i) const
 

Private Attributes

IOVElementProxy elem
 
IOVSequence const * iov
 
cond::Time_t lowBound
 

Detailed Description

Definition at line 85 of file IOVProxy.h.

Member Typedef Documentation

Definition at line 87 of file IOVProxy.h.

Constructor & Destructor Documentation

cond::IterHelp::IterHelp ( )
inline

Definition at line 88 of file IOVProxy.h.

88 : lowBound(0),iov(0){}
cond::Time_t lowBound
Definition: IOVProxy.h:104
IOVSequence const * iov
Definition: IOVProxy.h:105
cond::IterHelp::IterHelp ( IOVProxyData in)

Definition at line 74 of file IOVProxy.cc.

74  :
75  lowBound(0),
76  iov(&(*impl.data)),
77  elem(){
78 }
IOVElementProxy elem
Definition: IOVProxy.h:106
cond::Time_t lowBound
Definition: IOVProxy.h:104
IOVSequence const * iov
Definition: IOVProxy.h:105
cond::IterHelp::IterHelp ( IOVProxyData in,
cond::Time_t  lowBound 
)

Definition at line 79 of file IOVProxy.cc.

79  :
80  lowBound(lb),
81  iov(&(*impl.data)),
82  elem(){
83 }
IOVElementProxy elem
Definition: IOVProxy.h:106
cond::Time_t lowBound
Definition: IOVProxy.h:104
IOVSequence const * iov
Definition: IOVProxy.h:105

Member Function Documentation

result_type const& cond::IterHelp::operator() ( int  i) const
inline

Definition at line 92 of file IOVProxy.h.

References elem, iov, lowBound, cond::IOVElementProxy::set(), cond::IOVElementProxy::since(), cond::IOVElementProxy::till(), tmp, and cond::IOVElementProxy::token().

92  {
93  if (iov) {
94  IOVElementProxy tmp;
95  tmp.set(*iov,i);
96  cond::Time_t since = tmp.since();
97  if( since < lowBound ) since = lowBound;
98  elem.set( since, tmp.till(), tmp.token() );
99  }
100  return elem;
101  }
int i
Definition: DBlmapReader.cc:9
IOVElementProxy elem
Definition: IOVProxy.h:106
cond::Time_t lowBound
Definition: IOVProxy.h:104
unsigned long long Time_t
Definition: Time.h:16
void set(cond::Time_t is, cond::Time_t it, std::string const &itoken)
Definition: IOVProxy.h:59
IOVSequence const * iov
Definition: IOVProxy.h:105
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100

Member Data Documentation

IOVElementProxy cond::IterHelp::elem
mutableprivate

Definition at line 106 of file IOVProxy.h.

Referenced by operator()().

IOVSequence const* cond::IterHelp::iov
private

Definition at line 105 of file IOVProxy.h.

Referenced by operator()().

cond::Time_t cond::IterHelp::lowBound
private

Definition at line 104 of file IOVProxy.h.

Referenced by operator()().