#include <IOVSequence.h>
Public Types | |
typedef Container::const_iterator | const_iterator |
typedef ora::QueryableVector < Item > | Container |
typedef cond::IOVElement | Item |
typedef Container::iterator | iterator |
enum | ScopeType { Unknown =-1, Obsolete, Tag, TagInGT, ChildTag, ChildTagInGT } |
Public Member Functions | |
size_t | add (cond::Time_t time, std::string const &token, std::string const &payloadClassName) |
bool | exist (cond::Time_t time) const |
const_iterator | find (cond::Time_t time) const |
const_iterator | findSince (cond::Time_t time) const |
cond::Time_t | firstSince () const |
Container const & | iovs () const |
IOVSequence () | |
IOVSequence (cond::TimeType ttype) | |
IOVSequence (int type, cond::Time_t till, std::string const &imetadata) | |
IOVSequence (IOVSequence const &rh) | |
cond::Time_t | lastTill () const |
void | loadAll () const |
std::string const & | metadata () const |
bool | notOrdered () const |
IOVSequence & | operator= (IOVSequence const &rh) |
std::set< std::string > const & | payloadClasses () const |
Container & | piovs () |
Container const & | piovs () const |
ScopeType | scope () const |
void | setScope (ScopeType type) |
void | swapOIds (ora::ITokenWriter &writer) const |
void | swapTokens (ora::ITokenParser &parser) const |
cond::TimeType | timeType () const |
size_t | truncate () |
void | updateLastTill (cond::Time_t till) |
void | updateMetadata (const std::string &metadata, bool append=true) |
~IOVSequence () | |
Public Member Functions inherited from cond::UpdateStamp | |
std::string const & | comment () const |
int | revision () const |
int | stamp (std::string const &icomment, bool append=false) |
cond::Time_t | timestamp () const |
UpdateStamp () | |
UpdateStamp (UpdateStamp const &rhs) | |
virtual | ~UpdateStamp () |
Private Member Functions | |
void | disorder () |
Container const & | sortMe () const |
Private Attributes | |
Container | m_iovs |
cond::Time_t | m_lastTill |
std::string | m_metadata |
bool | m_notOrdered |
std::set< std::string > | m_payloadClasses |
ScopeType | m_scope |
Container * | m_sorted |
int | m_timetype |
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 24 of file IOVSequence.h.
Definition at line 29 of file IOVSequence.h.
Definition at line 27 of file IOVSequence.h.
Definition at line 26 of file IOVSequence.h.
Definition at line 28 of file IOVSequence.h.
Enumerator | |
---|---|
Unknown | |
Obsolete | |
Tag | |
TagInGT | |
ChildTag | |
ChildTagInGT |
Definition at line 30 of file IOVSequence.h.
cond::IOVSequence::IOVSequence | ( | ) |
Definition at line 8 of file IOVSequence.cc.
|
explicit |
Definition at line 18 of file IOVSequence.cc.
cond::IOVSequence::IOVSequence | ( | int | type, |
cond::Time_t | till, | ||
std::string const & | imetadata | ||
) |
Definition at line 28 of file IOVSequence.cc.
cond::IOVSequence::~IOVSequence | ( | ) |
cond::IOVSequence::IOVSequence | ( | IOVSequence const & | rh | ) |
Definition at line 44 of file IOVSequence.cc.
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().
|
private |
Definition at line 142 of file IOVSequence.cc.
References m_notOrdered, and m_sorted.
Referenced by add(), and truncate().
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().
Referenced by cond::IOVImportIterator::setUp().
IOVSequence::const_iterator cond::IOVSequence::find | ( | cond::Time_t | time | ) | const |
Definition at line 110 of file IOVSequence.cc.
References begin, end, ora::QueryableVector< Tp >::end(), iovs(), lastTill(), AlCaHLTBitMon_ParallelJobs::p, and cond::IOVElement::sinceTime().
Referenced by BeautifulSoup.Tag::__getattr__(), findSince(), BeautifulSoup.Tag::firstText(), and cond::IOVImportIterator::setUp().
IOVSequence::const_iterator cond::IOVSequence::findSince | ( | cond::Time_t | time | ) | const |
Definition at line 122 of file IOVSequence.cc.
References end, ora::QueryableVector< Tp >::end(), find(), iovs(), AlCaHLTBitMon_ParallelJobs::p, and cond::rpcobgas::time.
Referenced by exist(), and cond::KeyList::load().
|
inline |
Definition at line 63 of file IOVSequence.h.
References ora::QueryableVector< Tp >::front(), and iovs().
Referenced by cond::IOVImportIterator::setUp().
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::ExportIOVUtilities::execute(), exist(), find(), findSince(), firstSince(), cond::KeyList::load(), cond::IOVElementProxy::set(), and cond::IOVImportIterator::setUp().
|
inline |
Definition at line 65 of file IOVSequence.h.
References m_lastTill.
Referenced by cond::ExportIOVUtilities::execute(), find(), and cond::IOVElementProxy::set().
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().
|
inline |
Definition at line 79 of file IOVSequence.h.
References m_metadata.
Referenced by cond::ExportIOVUtilities::execute(), and updateMetadata().
|
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.
|
inline |
Definition at line 81 of file IOVSequence.h.
References m_payloadClasses.
|
inline |
Definition at line 90 of file IOVSequence.h.
References ora::QueryableVector< Tp >::load(), and m_iovs.
Referenced by add(), and truncate().
|
inline |
Definition at line 94 of file IOVSequence.h.
References ora::QueryableVector< Tp >::load(), and m_iovs.
|
inline |
|
inline |
|
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.
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, m_payloadClasses, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 60 of file IOVSequence.h.
References m_timetype, cond::timeTypeSpecs, and cond::TimeTypeSpecs::type.
Referenced by cond::IOVElementProxy::set().
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().
Referenced by Vispa.Gui.VispaWidget.TextField::calculateDimensions().
|
inline |
void cond::IOVSequence::updateMetadata | ( | const std::string & | metadata, |
bool | append = true |
||
) |
Definition at line 131 of file IOVSequence.cc.
References m_metadata, metadata(), cmsHarvester::sep, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 112 of file IOVSequence.h.
Referenced by iovs(), loadAll(), operator=(), piovs(), sortMe(), swapOIds(), and swapTokens().
|
private |
Definition at line 114 of file IOVSequence.h.
Referenced by lastTill(), operator=(), and updateLastTill().
|
private |
Definition at line 116 of file IOVSequence.h.
Referenced by metadata(), operator=(), and updateMetadata().
|
private |
Definition at line 115 of file IOVSequence.h.
Referenced by add(), disorder(), iovs(), notOrdered(), operator=(), and truncate().
|
private |
Definition at line 117 of file IOVSequence.h.
Referenced by add(), operator=(), payloadClasses(), and swapTokens().
|
private |
Definition at line 118 of file IOVSequence.h.
Referenced by operator=(), scope(), and setScope().
|
mutableprivate |
Definition at line 120 of file IOVSequence.h.
Referenced by disorder(), iovs(), operator=(), sortMe(), and ~IOVSequence().
|
private |
Definition at line 113 of file IOVSequence.h.
Referenced by operator=(), and timeType().