#include <IOVSequence.h>
a time order sequence of interval-of-validity The time associated to each interval is the end-validity (till time) the end of each interval is the begin of the next it is a UpdateStamp by mixin (I'll regret..)
Definition at line 23 of file IOVSequence.h.
Definition at line 28 of file IOVSequence.h.
Definition at line 26 of file IOVSequence.h.
Definition at line 25 of file IOVSequence.h.
Definition at line 27 of file IOVSequence.h.
Definition at line 29 of file IOVSequence.h.
cond::IOVSequence::IOVSequence | ( | ) |
Definition at line 8 of file IOVSequence.cc.
: m_iovs(), m_timetype(-1), m_lastTill(0), m_notOrdered(false), m_metadata(""), m_payloadClasses(), m_scope( Unknown ), m_sorted(0) {}
cond::IOVSequence::IOVSequence | ( | cond::TimeType | ttype | ) | [explicit] |
Definition at line 18 of file IOVSequence.cc.
: m_iovs(), m_timetype(ttype), m_lastTill(timeTypeSpecs[ttype].endValue), m_notOrdered(false), m_metadata(" "), m_payloadClasses(), m_scope( Unknown ), m_sorted(0) {}
cond::IOVSequence::IOVSequence | ( | int | type, |
cond::Time_t | till, | ||
std::string const & | imetadata | ||
) |
Definition at line 28 of file IOVSequence.cc.
: m_iovs(), m_timetype(ttype), m_lastTill(till), m_notOrdered(false), m_metadata(imetadata), m_payloadClasses(), m_scope( Unknown ), m_sorted(0) {}
cond::IOVSequence::~IOVSequence | ( | ) |
cond::IOVSequence::IOVSequence | ( | IOVSequence const & | rh | ) |
Definition at line 44 of file IOVSequence.cc.
: UpdateStamp(rh), m_iovs(rh.m_iovs), m_timetype(rh.m_timetype), m_lastTill(rh.m_lastTill), m_notOrdered(rh.m_notOrdered), m_metadata(rh.m_metadata), m_payloadClasses(rh.m_payloadClasses), m_scope( rh.m_scope ), m_sorted(0) {}
size_t cond::IOVSequence::add | ( | cond::Time_t | time, |
std::string const & | token, | ||
std::string const & | payloadClassName | ||
) |
Definition at line 95 of file IOVSequence.cc.
References prof2calltree::back, disorder(), relativeConstraints::empty, m_notOrdered, m_payloadClasses, piovs(), ora::QueryableVector< Tp >::push_back(), and ora::QueryableVector< Tp >::size().
void cond::IOVSequence::disorder | ( | ) | [private] |
Definition at line 142 of file IOVSequence.cc.
References m_notOrdered, and m_sorted.
Referenced by add(), and truncate().
{ m_notOrdered=true; delete m_sorted; m_sorted=0; }
bool cond::IOVSequence::exist | ( | cond::Time_t | time | ) | const |
Definition at line 127 of file IOVSequence.cc.
References ora::QueryableVector< Tp >::end(), findSince(), and iovs().
IOVSequence::const_iterator cond::IOVSequence::find | ( | cond::Time_t | time | ) | const |
Definition at line 110 of file IOVSequence.cc.
References begin, ora::QueryableVector< Tp >::end(), end, iovs(), lastTill(), AlCaHLTBitMon_ParallelJobs::p, and cond::IOVElement::sinceTime().
Referenced by cond::IOVService::exportIOVRangeWithPayload(), findSince(), cond::IOVService::payloadToken(), and cond::IOVService::validity().
IOVSequence::const_iterator cond::IOVSequence::findSince | ( | cond::Time_t | time | ) | const |
Definition at line 122 of file IOVSequence.cc.
References ora::QueryableVector< Tp >::end(), end, find(), iovs(), AlCaHLTBitMon_ParallelJobs::p, and cond::rpcobgas::time.
Referenced by exist().
cond::Time_t cond::IOVSequence::firstSince | ( | ) | const [inline] |
Definition at line 62 of file IOVSequence.h.
References ora::QueryableVector< Tp >::front(), and iovs().
Referenced by cond::IOVService::exportIOVRangeWithPayload(), cond::IOVService::isValid(), and cond::IOVService::validity().
IOVSequence::Container const & cond::IOVSequence::iovs | ( | ) | const |
Definition at line 76 of file IOVSequence.cc.
References m_iovs, m_notOrdered, m_sorted, and sortMe().
Referenced by cond::IOVService::deleteAll(), exist(), cond::IOVService::exportIOVRangeWithPayload(), cond::IOVService::exportIOVWithPayload(), find(), findSince(), firstSince(), cond::IOVService::iovSize(), cond::IOVService::payloadToken(), and cond::IOVService::validity().
{ if (m_sorted) return *m_sorted; if (m_notOrdered) return sortMe(); return m_iovs; }
cond::Time_t cond::IOVSequence::lastTill | ( | ) | const [inline] |
Definition at line 64 of file IOVSequence.h.
References m_lastTill.
Referenced by cond::IOVService::exportIOVRangeWithPayload(), cond::IOVService::exportIOVWithPayload(), find(), cond::IOVService::isValid(), and cond::IOVService::validity().
{ return m_lastTill;}
void cond::IOVSequence::loadAll | ( | ) | const |
Definition at line 69 of file IOVSequence.cc.
References ora::QueryableVector< Tp >::load(), and m_iovs.
Referenced by cond::loadIOV().
std::string const& cond::IOVSequence::metadata | ( | ) | const [inline] |
Definition at line 78 of file IOVSequence.h.
References m_metadata.
Referenced by cond::IOVService::exportIOVRangeWithPayload(), cond::IOVService::exportIOVWithPayload(), and updateMetadata().
{ return m_metadata;}
bool cond::IOVSequence::notOrdered | ( | ) | const [inline] |
IOVSequence & cond::IOVSequence::operator= | ( | IOVSequence const & | rh | ) |
Definition at line 55 of file IOVSequence.cc.
References m_iovs, m_lastTill, m_metadata, m_notOrdered, m_payloadClasses, m_scope, m_sorted, and m_timetype.
{ delete m_sorted; m_sorted=0; m_iovs = rh.m_iovs; m_timetype = rh.m_timetype; m_lastTill=rh.m_lastTill; m_notOrdered=rh.m_notOrdered; m_metadata = rh.m_metadata; m_payloadClasses = rh.m_payloadClasses; m_scope = rh.m_scope; return *this; }
std::set<std::string> const& cond::IOVSequence::payloadClasses | ( | ) | const [inline] |
Definition at line 80 of file IOVSequence.h.
References m_payloadClasses.
Referenced by cond::IOVService::payloadClasses().
{ return m_payloadClasses; }
Container& cond::IOVSequence::piovs | ( | ) | [inline] |
Definition at line 89 of file IOVSequence.h.
References ora::QueryableVector< Tp >::load(), and m_iovs.
Referenced by add(), and truncate().
Container const& cond::IOVSequence::piovs | ( | ) | const [inline] |
Definition at line 93 of file IOVSequence.h.
References ora::QueryableVector< Tp >::load(), and m_iovs.
ScopeType cond::IOVSequence::scope | ( | ) | const [inline] |
void cond::IOVSequence::setScope | ( | ScopeType | type | ) | [inline] |
IOVSequence::Container const & cond::IOVSequence::sortMe | ( | ) | const [private] |
Definition at line 82 of file IOVSequence.cc.
References ora::QueryableVector< Tp >::begin(), ora::QueryableVector< Tp >::end(), ora::QueryableVector< Tp >::load(), m_iovs, m_sorted, cond::IOVElement::sinceTime(), and python::multivaluedict::sort().
Referenced by iovs().
void cond::IOVSequence::swapOIds | ( | ora::ITokenWriter & | writer | ) | const |
Definition at line 157 of file IOVSequence.cc.
References ora::QueryableVector< Tp >::begin(), ora::QueryableVector< Tp >::end(), and m_iovs.
{ for( IOVSequence::const_iterator iT = m_iovs.begin(); iT != m_iovs.end(); ++iT ){ iT->swapOId( writer ); } }
void cond::IOVSequence::swapTokens | ( | ora::ITokenParser & | parser | ) | const |
Definition at line 147 of file IOVSequence.cc.
References ora::QueryableVector< Tp >::begin(), cond::className(), ora::ITokenParser::className(), ora::QueryableVector< Tp >::end(), m_iovs, and m_payloadClasses.
{ for( IOVSequence::const_iterator iT = m_iovs.begin(); iT != m_iovs.end(); ++iT ){ iT->swapToken( parser ); // adding the classname 'by hand' std::string className = parser.className( iT->token() ); const_cast<IOVSequence* >(this)->m_payloadClasses.insert( className ); } }
cond::TimeType cond::IOVSequence::timeType | ( | ) | const [inline] |
Definition at line 59 of file IOVSequence.h.
References m_timetype, cond::timeTypeSpecs, and cond::TimeTypeSpecs::type.
Referenced by cond::IOVService::exportIOVRangeWithPayload(), cond::IOVService::exportIOVWithPayload(), and cond::IOVService::timeType().
{ return cond::timeTypeSpecs[m_timetype].type;}
size_t cond::IOVSequence::truncate | ( | ) |
Definition at line 104 of file IOVSequence.cc.
References disorder(), m_notOrdered, piovs(), ora::QueryableVector< Tp >::pop_back(), and ora::QueryableVector< Tp >::size().
void cond::IOVSequence::updateLastTill | ( | cond::Time_t | till | ) | [inline] |
void cond::IOVSequence::updateMetadata | ( | const std::string & | metadata, |
bool | append = true |
||
) |
Definition at line 131 of file IOVSequence.cc.
References m_metadata, and metadata().
{ std::string sep(". "); if( !metadata.empty() ){ if (append && !m_metadata.empty()) { m_metadata += sep + metadata; } else m_metadata = metadata; } }
Container cond::IOVSequence::m_iovs [private] |
Definition at line 111 of file IOVSequence.h.
Referenced by iovs(), loadAll(), operator=(), piovs(), sortMe(), swapOIds(), and swapTokens().
cond::Time_t cond::IOVSequence::m_lastTill [private] |
Definition at line 113 of file IOVSequence.h.
Referenced by lastTill(), operator=(), and updateLastTill().
std::string cond::IOVSequence::m_metadata [private] |
Definition at line 115 of file IOVSequence.h.
Referenced by metadata(), operator=(), and updateMetadata().
bool cond::IOVSequence::m_notOrdered [private] |
Definition at line 114 of file IOVSequence.h.
Referenced by add(), disorder(), iovs(), notOrdered(), operator=(), and truncate().
std::set<std::string> cond::IOVSequence::m_payloadClasses [private] |
Definition at line 116 of file IOVSequence.h.
Referenced by add(), operator=(), payloadClasses(), and swapTokens().
ScopeType cond::IOVSequence::m_scope [private] |
Definition at line 117 of file IOVSequence.h.
Referenced by operator=(), scope(), and setScope().
Container* cond::IOVSequence::m_sorted [mutable, private] |
Definition at line 119 of file IOVSequence.h.
Referenced by disorder(), iovs(), operator=(), sortMe(), and ~IOVSequence().
int cond::IOVSequence::m_timetype [private] |
Definition at line 112 of file IOVSequence.h.
Referenced by operator=(), and timeType().