DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dd4hep::cond::ConditionsMappedPool< MAPPING, BASE > Class Template Reference

Class implementing the conditions collection for a given IOV type. More...

Inheritance diagram for dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >:
dd4hep::cond::ConditionsMappedUpdatePool< MAPPING, BASE >

Public Types

typedef BASE Base
 
typedef MAPPING Mapping
 
typedef ConditionsMappedPool< Mapping, BaseSelf
 

Public Member Functions

 ConditionsMappedPool (ConditionsManager mgr)
 Default constructor. More...
 
virtual ~ConditionsMappedPool ()
 Default destructor. More...
 
virtual size_t size () const final
 Total entry count. More...
 
virtual bool insert (Condition condition) final
 Register a new condition to this pool. More...
 
virtual void insert (RangeConditions &new_entries) final
 Register a new condition to this pool. May overload for performance reasons. More...
 
virtual void clear () final
 Full cleanup of all managed conditions. More...
 
virtual Condition exists (Condition::key_type key) const final
 Check if a condition exists in the pool. More...
 
virtual size_t select (Condition::key_type key, RangeConditions &result) final
 Select the conditions matching the DetElement and the conditions name. More...
 
virtual size_t select_all (const ConditionsSelect &result) final
 Select the conditons, used also by the DetElement of the condition. More...
 
virtual size_t select_all (RangeConditions &result) final
 Select the conditons, used also by the DetElement of the condition. More...
 
virtual size_t select_all (ConditionsPool &result) final
 Select the conditons, used also by the DetElement of the condition. More...
 

Protected Member Functions

template<typename R , typename T >
std::size_t loop (R &result, T functor)
 Helper function to loop over the conditions container and apply a functor. More...
 

Protected Attributes

Mapping m_entries
 

Detailed Description

template<typename MAPPING, typename BASE>
class dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >

Class implementing the conditions collection for a given IOV type.

Please note: Users should not directly interact with object instances of this type. Data are not thread protected and interaction may cause serious harm. Only the ConditionsManager implementation should interact with this class or any subclass to ensure data integrity.

Author
M.Frank
Version
1.0

Definition at line 47 of file ConditionsMappedPool.cpp.

Member Typedef Documentation

◆ Base

template<typename MAPPING , typename BASE >
typedef BASE dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::Base

Definition at line 49 of file ConditionsMappedPool.cpp.

◆ Mapping

template<typename MAPPING , typename BASE >
typedef MAPPING dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::Mapping

Definition at line 50 of file ConditionsMappedPool.cpp.

◆ Self

template<typename MAPPING , typename BASE >
typedef ConditionsMappedPool<Mapping,Base> dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::Self

Definition at line 51 of file ConditionsMappedPool.cpp.

Constructor & Destructor Documentation

◆ ConditionsMappedPool()

template<typename MAPPING , typename BASE >
ConditionsMappedPool::ConditionsMappedPool ( ConditionsManager  mgr)

Default constructor.

Definition at line 209 of file ConditionsMappedPool.cpp.

◆ ~ConditionsMappedPool()

template<typename MAPPING , typename BASE >
ConditionsMappedPool::~ConditionsMappedPool
virtual

Default destructor.

Definition at line 217 of file ConditionsMappedPool.cpp.

Member Function Documentation

◆ clear()

template<typename MAPPING , typename BASE >
virtual void dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::clear ( )
inlinefinalvirtual

Full cleanup of all managed conditions.

Definition at line 97 of file ConditionsMappedPool.cpp.

◆ exists()

template<typename MAPPING , typename BASE >
virtual Condition dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::exists ( Condition::key_type  key) const
inlinefinalvirtual

Check if a condition exists in the pool.

Definition at line 103 of file ConditionsMappedPool.cpp.

◆ insert() [1/2]

template<typename MAPPING , typename BASE >
virtual bool dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::insert ( Condition  condition)
inlinefinalvirtual

Register a new condition to this pool.

Definition at line 75 of file ConditionsMappedPool.cpp.

◆ insert() [2/2]

template<typename MAPPING , typename BASE >
virtual void dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::insert ( RangeConditions new_entries)
inlinefinalvirtual

Register a new condition to this pool. May overload for performance reasons.

Definition at line 88 of file ConditionsMappedPool.cpp.

◆ loop()

template<typename MAPPING , typename BASE >
template<typename R , typename T >
std::size_t dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::loop ( R &  result,
functor 
)
inlineprotected

Helper function to loop over the conditions container and apply a functor.

Definition at line 57 of file ConditionsMappedPool.cpp.

◆ select()

template<typename MAPPING , typename BASE >
virtual size_t dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::select ( Condition::key_type  key,
RangeConditions result 
)
inlinefinalvirtual

Select the conditions matching the DetElement and the conditions name.

Definition at line 109 of file ConditionsMappedPool.cpp.

◆ select_all() [1/3]

template<typename MAPPING , typename BASE >
virtual size_t dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::select_all ( ConditionsPool result)
inlinefinalvirtual

Select the conditons, used also by the DetElement of the condition.

Definition at line 121 of file ConditionsMappedPool.cpp.

◆ select_all() [2/3]

template<typename MAPPING , typename BASE >
virtual size_t dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::select_all ( const ConditionsSelect result)
inlinefinalvirtual

Select the conditons, used also by the DetElement of the condition.

Definition at line 113 of file ConditionsMappedPool.cpp.

◆ select_all() [3/3]

template<typename MAPPING , typename BASE >
virtual size_t dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::select_all ( RangeConditions result)
inlinefinalvirtual

Select the conditons, used also by the DetElement of the condition.

Definition at line 117 of file ConditionsMappedPool.cpp.

◆ size()

template<typename MAPPING , typename BASE >
virtual size_t dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::size ( ) const
inlinefinalvirtual

Total entry count.

Definition at line 70 of file ConditionsMappedPool.cpp.

Member Data Documentation

◆ m_entries

template<typename MAPPING , typename BASE >
Mapping dd4hep::cond::ConditionsMappedPool< MAPPING, BASE >::m_entries
protected

Definition at line 54 of file ConditionsMappedPool.cpp.


The documentation for this class was generated from the following file: