ATLAS Offline Software
|
#include <IovStore.h>
Public Types | |
typedef std::pair< cool::ValidityKey, cool::ValidityKey > | Iov_t |
Public Member Functions | |
IovStore () | |
Default constructor, cache bounds set to 0,0. More... | |
IovStore (const Iov_t &cacheBounds) | |
Constructor, cache bounds set to supplied parameter. More... | |
void | addIov (const Iov_t &iov) |
Add an iov to the store and update the span variables. More... | |
void | addIov (const cool::ValidityKey &since, const cool::ValidityKey &until) |
Iov_t | getCacheBounds () const |
Report the current cache bounds. More... | |
void | setCacheBounds (const Iov_t &cacheBounds) |
Set the cache bound variables. More... | |
Iov_t | getMinimumStraddlingSpan () const |
Get the minimum straddling span (max 'since' to min 'until') More... | |
void | setIovSpan (const Iov_t &span) |
Set span. More... | |
std::vector< Iov_t > & | vectorStore () |
Return the internal vector store. More... | |
std::pair< unsigned int, unsigned int > | numberOfIovsOnBoundaries () const |
Return the current count of added Iovs which straddled cache boundaries. More... | |
bool | empty () const |
is the store empty? More... | |
unsigned int | size () const |
length of store More... | |
void | clear () |
clear the store More... | |
Iov_t | at (const unsigned int idx) const |
'at' to read iov at specific index More... | |
void | extendIov (const unsigned int idx, const cool::ValidityKey &newUntilTime) |
Extend a specific iov at the index to a new 'until' time. More... | |
bool | extendCacheLo () |
Extend lower cache bound to the maximum 'since' time; return whether this changes its value. More... | |
bool | extendCacheHi () |
Extend upper cache bound to the minimum 'until' time; return whether this changes its value. More... | |
Static Private Member Functions | |
static std::pair< bool, bool > | straddling (const Iov_t &iov, const Iov_t &bounds) |
Private Attributes | |
std::vector< Iov_t > | m_iovs {} |
main vector of iovs More... | |
Iov_t | m_cacheBounds {0,0} |
cache bounds, 'since', 'until', corresponds to m_cachestart, m_cachestop in original More... | |
cool::ValidityKey | m_maxStraddlingSince {cool::ValidityKeyMin} |
max 'since' of the iovs which straddle the cache boundary, corresponds to 'm_boundmin' in the original code More... | |
cool::ValidityKey | m_minStraddlingUntil {cool::ValidityKeyMax} |
min 'until' of the iovs which straddle the boundary corresponds to 'm_boundmax' in the original code More... | |
std::pair< unsigned int, unsigned int > | m_countStraddling {} |
count of iovs straddling the since or until boundaries More... | |
Definition at line 20 of file IovStore.h.
typedef std::pair<cool::ValidityKey, cool::ValidityKey> IOVDbNamespace::IovStore::Iov_t |
Definition at line 22 of file IovStore.h.
|
default |
Default constructor, cache bounds set to 0,0.
Constructor, cache bounds set to supplied parameter.
Definition at line 11 of file IovStore.cxx.
void IOVDbNamespace::IovStore::addIov | ( | const cool::ValidityKey & | since, |
const cool::ValidityKey & | until | ||
) |
Definition at line 25 of file IovStore.cxx.
'at' to read iov at specific index
Definition at line 49 of file IovStore.h.
void IOVDbNamespace::IovStore::clear | ( | ) |
clear the store
Definition at line 56 of file IovStore.cxx.
|
inline |
bool IOVDbNamespace::IovStore::extendCacheHi | ( | ) |
Extend upper cache bound to the minimum 'until' time; return whether this changes its value.
Definition at line 96 of file IovStore.cxx.
bool IOVDbNamespace::IovStore::extendCacheLo | ( | ) |
Extend lower cache bound to the maximum 'since' time; return whether this changes its value.
Definition at line 89 of file IovStore.cxx.
void IOVDbNamespace::IovStore::extendIov | ( | const unsigned int | idx, |
const cool::ValidityKey & | newUntilTime | ||
) |
Extend a specific iov at the index to a new 'until' time.
Definition at line 77 of file IovStore.cxx.
IovStore::Iov_t IOVDbNamespace::IovStore::getCacheBounds | ( | ) | const |
Report the current cache bounds.
Definition at line 31 of file IovStore.cxx.
IovStore::Iov_t IOVDbNamespace::IovStore::getMinimumStraddlingSpan | ( | ) | const |
Get the minimum straddling span (max 'since' to min 'until')
Get the minimum straddling span (max 'since' - min 'until')
Definition at line 45 of file IovStore.cxx.
std::pair< unsigned int, unsigned int > IOVDbNamespace::IovStore::numberOfIovsOnBoundaries | ( | ) | const |
Return the current count of added Iovs which straddled cache boundaries.
Definition at line 51 of file IovStore.cxx.
Set span.
Definition at line 82 of file IovStore.cxx.
|
inline |
std::vector< IovStore::Iov_t > & IOVDbNamespace::IovStore::vectorStore | ( | ) |
Return the internal vector store.
Definition at line 64 of file IovStore.cxx.
|
private |
cache bounds, 'since', 'until', corresponds to m_cachestart, m_cachestop in original
Definition at line 61 of file IovStore.h.
|
private |
count of iovs straddling the since or until boundaries
Definition at line 71 of file IovStore.h.
|
private |
main vector of iovs
Definition at line 59 of file IovStore.h.
|
private |
max 'since' of the iovs which straddle the cache boundary, corresponds to 'm_boundmin' in the original code
Definition at line 65 of file IovStore.h.
|
private |
min 'until' of the iovs which straddle the boundary corresponds to 'm_boundmax' in the original code
Definition at line 69 of file IovStore.h.