DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Interface for conditions pool optimized to host conditions updates. More...
#include <ConditionsPool.h>
Public Types | |
typedef std::vector< Condition > | ConditionEntries |
typedef std::map< const IOV *, ConditionEntries > | UpdateEntries |
Update container specification. More... | |
Public Types inherited from dd4hep::cond::ConditionsPool | |
enum | { AGE_NONE = 0, AGE_ANY = 9999999, AGE_EXPIRED = 12345678 } |
Public Member Functions | |
UpdatePool (ConditionsManager mgr, IOV *iov) | |
Default constructor. More... | |
virtual | ~UpdatePool () |
Default destructor. More... | |
virtual size_t | popEntries (UpdateEntries &entries)=0 |
Adopt all entries sorted by IOV. Entries will be removed from the pool. More... | |
virtual void | select_range (Condition::key_type key, const IOV &req_validity, RangeConditions &result)=0 |
Select the conditions matching the key. More... | |
Public Member Functions inherited from dd4hep::cond::ConditionsPool | |
void | onRegister (Condition condition) |
Listener invocation when a condition is registered to the cache. More... | |
void | onRemove (Condition condition) |
Listener invocation when a condition is deregistered from the cache. More... | |
ConditionsPool (ConditionsManager mgr, IOV *iov) | |
Default constructor. More... | |
virtual | ~ConditionsPool () |
Default destructor. Note: pool must be cleared by the subclass! More... | |
void | print () const |
Print pool basics. More... | |
void | print (const std::string &opt) const |
Print pool basics. More... | |
virtual size_t | size () const =0 |
Total entry count. More... | |
virtual void | clear ()=0 |
Full cleanup of all managed conditions. More... | |
virtual bool | insert (Condition cond)=0 |
Register a new condition to this pool. More... | |
virtual void | insert (RangeConditions &cond)=0 |
Register a new condition to this pool. May overload for performance reasons. More... | |
virtual Condition | exists (Condition::key_type key) const =0 |
Check if a condition exists in the pool. More... | |
virtual size_t | select (Condition::key_type key, RangeConditions &result)=0 |
Select the conditions matching the DetElement and the conditions name. More... | |
virtual size_t | select_all (RangeConditions &result)=0 |
Select all conditions contained. More... | |
virtual size_t | select_all (const ConditionsSelect &predicate)=0 |
Select the conditons, passing a predicate. More... | |
virtual size_t | select_all (ConditionsPool &selection_pool)=0 |
Select all conditions contained. More... | |
Public Member Functions inherited from dd4hep::NamedObject | |
NamedObject (const char *nam, const char *typ="") | |
Initializing constructor. More... | |
NamedObject (const std::string &nam) | |
Initializing constructor. More... | |
NamedObject (const std::string &nam, const std::string &typ) | |
Initializing constructor. More... | |
NamedObject ()=default | |
Standard constructor. More... | |
NamedObject (const NamedObject &c)=default | |
Copy constructor. More... | |
NamedObject (NamedObject &&c)=default | |
Move constructor. More... | |
virtual | ~NamedObject ()=default |
Default destructor. More... | |
NamedObject & | operator= (const NamedObject &c)=default |
Assignment operator. More... | |
NamedObject & | operator= (NamedObject &&c)=default |
Move assignment operator. More... | |
const char * | GetName () const |
Access name. More... | |
void | SetName (const char *nam) |
Set name (used by Handle) More... | |
void | SetTitle (const char *tit) |
Set Title (used by Handle) More... | |
const char * | GetTitle () const |
Get name (used by Handle) More... | |
Additional Inherited Members | |
Public Attributes inherited from dd4hep::cond::ConditionsPool | |
IOV * | iov |
The IOV of the conditions hosted. More... | |
int | age_value |
Aging value. More... | |
Public Attributes inherited from dd4hep::NamedObject | |
std::string | name |
The object name. More... | |
std::string | type |
The object type. More... | |
Protected Attributes inherited from dd4hep::cond::ConditionsPool | |
ConditionsManager | m_manager |
Handle to conditions manager object. More... | |
Interface for conditions pool optimized to host conditions updates.
Definition at line 109 of file ConditionsPool.h.
typedef std::vector<Condition> dd4hep::cond::UpdatePool::ConditionEntries |
Definition at line 112 of file ConditionsPool.h.
typedef std::map<const IOV*, ConditionEntries> dd4hep::cond::UpdatePool::UpdateEntries |
Update container specification.
Definition at line 114 of file ConditionsPool.h.
UpdatePool::UpdatePool | ( | ConditionsManager | mgr, |
IOV * | iov | ||
) |
Default constructor.
Definition at line 73 of file ConditionsPool.cpp.
|
virtual |
Default destructor.
Definition at line 78 of file ConditionsPool.cpp.
|
pure virtual |
Adopt all entries sorted by IOV. Entries will be removed from the pool.
|
pure virtual |
Select the conditions matching the key.