![]() |
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. | |
| IovStore (const Iov_t &cacheBounds) | |
| Constructor, cache bounds set to supplied parameter. | |
| void | addIov (const Iov_t &iov) |
| Add an iov to the store and update the span variables. | |
| void | addIov (const cool::ValidityKey &since, const cool::ValidityKey &until) |
| Iov_t | getCacheBounds () const |
| Report the current cache bounds. | |
| void | setCacheBounds (const Iov_t &cacheBounds) |
| Set the cache bound variables. | |
| Iov_t | getMinimumStraddlingSpan () const |
| Get the minimum straddling span (max 'since' to min 'until'). | |
| void | setIovSpan (const Iov_t &span) |
| Set span. | |
| std::vector< Iov_t > & | vectorStore () |
| Return the internal vector store. | |
| std::pair< unsigned int, unsigned int > | numberOfIovsOnBoundaries () const |
| Return the current count of added Iovs which straddled cache boundaries. | |
| bool | empty () const |
| is the store empty? | |
| unsigned int | size () const |
| length of store | |
| void | clear () |
| clear the store | |
| Iov_t | at (const unsigned int idx) const |
| 'at' to read iov at specific index | |
| void | extendIov (const unsigned int idx, const cool::ValidityKey &newUntilTime) |
| Extend a specific iov at the index to a new 'until' time. | |
| bool | extendCacheLo () |
| Extend lower cache bound to the maximum 'since' time; return whether this changes its value. | |
| bool | extendCacheHi () |
| Extend upper cache bound to the minimum 'until' time; return whether this changes its value. | |
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 | |
| Iov_t | m_cacheBounds {0,0} |
| cache bounds, 'since', 'until', corresponds to m_cachestart, m_cachestop in original | |
| cool::ValidityKey | m_maxStraddlingSince {cool::ValidityKeyMin} |
| max 'since' of the iovs which straddle the cache boundary, corresponds to 'm_boundmin' in the original code | |
| cool::ValidityKey | m_minStraddlingUntil {cool::ValidityKeyMax} |
| min 'until' of the iovs which straddle the boundary corresponds to 'm_boundmax' in the original code | |
| std::pair< unsigned int, unsigned int > | m_countStraddling {} |
| count of iovs straddling the since or until boundaries | |
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.
Add an iov to the store and update the span variables.
Definition at line 16 of file IovStore.cxx.
| 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 the cache bound variables.
Definition at line 36 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 |
|
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.