CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

cond::IterHelp Class Reference

#include <IOVProxy.h>

List of all members.

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.

: lowBound(0),iov(0){}
cond::IterHelp::IterHelp ( IOVProxyData in)

Definition at line 71 of file IOVProxy.cc.

                                         :
  lowBound(0),
  iov(&(*impl.data)), 
  elem(){
}
cond::IterHelp::IterHelp ( IOVProxyData in,
cond::Time_t  lowBound 
)

Definition at line 76 of file IOVProxy.cc.

                                                        :
  lowBound(lb),
  iov(&(*impl.data)), 
  elem(){
}

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().

                                                {
      if (iov) {
        IOVElementProxy tmp;
        tmp.set(*iov,i);
        cond::Time_t since = tmp.since();
        if( since < lowBound ) since = lowBound;
        elem.set( since, tmp.till(), tmp.token() ); 
      }
      return elem;
    }

Member Data Documentation

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()().

Definition at line 104 of file IOVProxy.h.

Referenced by operator()().