#include <IOVProxy.h>
Classes | |
struct | IterHelp |
Public Types | |
typedef boost::transform_iterator < IterHelp, boost::counting_iterator< int > > | const_iterator |
Public Member Functions | |
const_iterator | begin () const |
std::string | comment () const |
DbSession & | db () const |
const_iterator | end () const |
const_iterator | find (cond::Time_t time) const |
void | head (int n) const |
IOV const & | iov () const |
IOVProxy (cond::DbSession &dbSession, const std::string &token) | |
IOVProxy (cond::DbSession &dbSession) | |
IOVProxy () | |
void | load (const std::string &token) |
std::set< std::string > const & | payloadClasses () const |
bool | refresh () |
void | resetRange () const |
int | revision () const |
void | setRange (cond::Time_t since, cond::Time_t till) const |
int | size () const |
SequenceState | state () const |
void | tail (int n) const |
cond::Time_t | timestamp () const |
TimeType | timetype () const |
~IOVProxy () | |
Private Attributes | |
int | m_high |
boost::shared_ptr< impl::IOVImpl > | m_iov |
int | m_low |
Definition at line 55 of file IOVProxy.h.
typedef boost::transform_iterator<IterHelp,boost::counting_iterator<int> > cond::IOVProxy::const_iterator |
Definition at line 83 of file IOVProxy.h.
cond::IOVProxy::IOVProxy | ( | ) |
Definition at line 81 of file IOVProxy.cc.
cond::IOVProxy::~IOVProxy | ( | ) |
Definition at line 83 of file IOVProxy.cc.
{}
cond::IOVProxy::IOVProxy | ( | cond::DbSession & | dbSession | ) | [explicit] |
Definition at line 85 of file IOVProxy.cc.
cond::IOVProxy::IOVProxy | ( | cond::DbSession & | dbSession, |
const std::string & | token | ||
) |
const_iterator cond::IOVProxy::begin | ( | void | ) | const [inline] |
Definition at line 85 of file IOVProxy.h.
Referenced by BOOST_PYTHON_MODULE(), cond::AlignSplitIOV::execute(), HcalO2OManager::getListOfPoolIovs(), CondBasicIter::init(), and cond::service::PoolDBOutputService::tagInfo().
std::string cond::IOVProxy::comment | ( | ) | const |
Definition at line 158 of file IOVProxy.cc.
References iov().
Referenced by BOOST_PYTHON_MODULE().
{ return iov().comment(); }
cond::DbSession & cond::IOVProxy::db | ( | ) | const |
Definition at line 171 of file IOVProxy.cc.
References m_iov.
Referenced by cond::KeyList::load().
{ return m_iov->dbSession; }
const_iterator cond::IOVProxy::end | ( | void | ) | const [inline] |
Definition at line 90 of file IOVProxy.h.
Referenced by BOOST_PYTHON_MODULE(), cond::AlignSplitIOV::execute(), find(), CondBasicIter::forward(), HcalO2OManager::getListOfPoolIovs(), and CondBasicIter::init().
IOVProxy::const_iterator cond::IOVProxy::find | ( | cond::Time_t | time | ) | const |
Definition at line 130 of file IOVProxy.cc.
References end(), cond::IOV::find(), iov(), m_high, m_iov, m_low, and n.
Referenced by cond::BasePayloadProxy::loadFor(), and cond::BasePayloadProxy::setIntervalFor().
void cond::IOVProxy::head | ( | int | n | ) | const |
IOV const & cond::IOVProxy::iov | ( | ) | const |
Definition at line 143 of file IOVProxy.cc.
References cond::IOV::iov.
Referenced by comment(), find(), cond::KeyList::load(), cond::BasePayloadProxy::loadFor(), payloadClasses(), revision(), setRange(), size(), state(), timestamp(), and timetype().
{
return *(*m_iov).iov;
}
void cond::IOVProxy::load | ( | const std::string & | token | ) |
Definition at line 92 of file IOVProxy.cc.
References m_high, m_iov, and size().
Referenced by cond::BasePayloadProxy::BasePayloadProxy(), cond::BasePayloadProxy::loadIov(), and cond::BasePayloadProxy::loadTag().
std::set< std::string > const & cond::IOVProxy::payloadClasses | ( | ) | const |
bool cond::IOVProxy::refresh | ( | ) |
void cond::IOVProxy::resetRange | ( | ) | const |
Definition at line 106 of file IOVProxy.cc.
References m_high, m_low, and size().
Referenced by BOOST_PYTHON_MODULE().
int cond::IOVProxy::revision | ( | ) | const |
Definition at line 163 of file IOVProxy.cc.
References iov().
Referenced by BOOST_PYTHON_MODULE().
{ return iov().revision(); }
void cond::IOVProxy::setRange | ( | cond::Time_t | since, |
cond::Time_t | till | ||
) | const |
Definition at line 112 of file IOVProxy.cc.
References cond::IOV::find(), iov(), m_high, m_low, min, and size().
Referenced by BOOST_PYTHON_MODULE(), CondBasicIter::setMax(), CondBasicIter::setMin(), and CondBasicIter::setRange().
int cond::IOVProxy::size | ( | void | ) | const |
Definition at line 139 of file IOVProxy.cc.
References iov().
Referenced by BOOST_PYTHON_MODULE(), load(), refresh(), resetRange(), setRange(), and cond::service::PoolDBOutputService::tagInfo().
{ return iov().iovs().size(); }
SequenceState cond::IOVProxy::state | ( | ) | const [inline] |
void cond::IOVProxy::tail | ( | int | n | ) | const |
Definition at line 125 of file IOVProxy.cc.
References m_high, m_low, and max().
Referenced by BOOST_PYTHON_MODULE(), and cond::service::PoolDBOutputService::tagInfo().
cond::Time_t cond::IOVProxy::timestamp | ( | ) | const |
Definition at line 167 of file IOVProxy.cc.
References iov().
Referenced by BOOST_PYTHON_MODULE().
{ return iov().timestamp(); }
TimeType cond::IOVProxy::timetype | ( | ) | const |
Definition at line 147 of file IOVProxy.cc.
References iov(), and cond::IOV::timeType().
Referenced by BOOST_PYTHON_MODULE(), cond::AlignSplitIOV::execute(), and cond::BasePayloadProxy::timetype().
{ return iov().timeType(); }
int cond::IOVProxy::m_high [mutable, private] |
Definition at line 128 of file IOVProxy.h.
Referenced by end(), find(), head(), load(), refresh(), resetRange(), setRange(), and tail().
boost::shared_ptr<impl::IOVImpl> cond::IOVProxy::m_iov [private] |
int cond::IOVProxy::m_low [mutable, private] |
Definition at line 127 of file IOVProxy.h.
Referenced by begin(), find(), head(), resetRange(), setRange(), and tail().