#include <KeyList.h>
Public Types | |
typedef BaseKeyed | Base |
Public Member Functions | |
BaseKeyed const * | elem (int n) const |
BaseKeyed const * | elem (char const *iname) const |
BaseKeyed const * | elem (std::string const &iname) const |
template<typename T > | |
T const * | get (char const *iname) const |
template<typename T > | |
T const * | get (std::string const &iname) const |
template<typename T > | |
T const * | get (int n) const |
void | init (cond::IOVProxy const &seq) |
KeyList (IOVKeysDescription const *idescr=0) | |
void | load (std::vector< unsigned long long > const &keys) |
int | size () const |
Private Attributes | |
std::vector< boost::shared_ptr < Base > > | m_data |
IOVKeysDescription const * | m_description |
cond::IOVProxy | m_sequence |
typedef BaseKeyed cond::KeyList::Base |
cond::KeyList::KeyList | ( | IOVKeysDescription const * | idescr = 0 | ) |
Definition at line 8 of file KeyList.cc.
: m_description(idescr){}
BaseKeyed const * cond::KeyList::elem | ( | int | n | ) | const |
Definition at line 26 of file KeyList.cc.
Referenced by DTUserKeyedConfigPopConAnalyzer::analyze(), DTKeyedConfigPopConAnalyzer::analyze(), and get().
BaseKeyed const* cond::KeyList::elem | ( | std::string const & | iname | ) | const |
BaseKeyed const* cond::KeyList::elem | ( | char const * | iname | ) | const |
T const* cond::KeyList::get | ( | char const * | iname | ) | const [inline] |
T const* cond::KeyList::get | ( | std::string const & | iname | ) | const [inline] |
T const* cond::KeyList::get | ( | int | n | ) | const [inline] |
Definition at line 39 of file KeyList.h.
Referenced by DTKeyedConfigDBDump::analyze(), DTUserKeyedConfigPopConAnalyzer::analyze(), DTKeyedConfigPopConAnalyzer::analyze(), DTUserKeyedConfigHandler::chkConfigList(), DTKeyedConfigHandler::chkConfigList(), and DTConfigPluginHandler::get().
void cond::KeyList::init | ( | cond::IOVProxy const & | seq | ) | [inline] |
void cond::KeyList::load | ( | std::vector< unsigned long long > const & | keys | ) |
Definition at line 10 of file KeyList.cc.
References cond::DbTransaction::commit(), cond::IOVProxy::db(), cond::DbSession::getTypedObject(), i, cond::IOVProxy::iov(), m_data, m_sequence, L1TEmulatorMonitor_cff::p, cond::DbTransaction::start(), and cond::DbSession::transaction().
Referenced by DTKeyedConfigDBDump::analyze(), DTUserKeyedConfigHandler::chkConfigList(), DTKeyedConfigHandler::chkConfigList(), and DTConfigPluginHandler::get().
{ m_sequence.db().transaction().start(true); m_data.resize(keys.size()); for (size_t i=0; i<keys.size(); ++i) { m_data[i].reset(); if (keys[i]!=0) { IOVSequence::const_iterator p = m_sequence.iov().findSince(keys[i]); if (p!=m_sequence.iov().iovs().end()) { m_data[i] = m_sequence.db().getTypedObject<Base>( (*p).wrapperToken() ); } } } m_sequence.db().transaction().commit(); }
int cond::KeyList::size | ( | void | ) | const [inline] |
Definition at line 59 of file KeyList.h.
References m_data.
Referenced by DTUserKeyedConfigPopConAnalyzer::analyze(), and DTKeyedConfigPopConAnalyzer::analyze().
{ return m_data.size();}
std::vector<boost::shared_ptr<Base> > cond::KeyList::m_data [private] |
IOVKeysDescription const* cond::KeyList::m_description [private] |
cond::IOVProxy cond::KeyList::m_sequence [private] |