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

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

Inheritance diagram for dd4hep::cond::ConditionsLinearPool< MAPPING, BASE >:
dd4hep::cond::ConditionsLinearUpdatePool< MAPPING, BASE >

Public Member Functions

 ConditionsLinearPool (ConditionsManager mgr, IOV *iov)
 Default constructor. More...
 
virtual ~ConditionsLinearPool ()
 Default destructor. More...
 
virtual size_t size () const final
 Total entry count. 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 bool insert (Condition condition) final
 Register a new condition to this pool. More...
 
virtual void insert (RangeConditions &rc) final
 Register a new condition to this pool. May overload for performance reasons. 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 >
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::ConditionsLinearPool< 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 45 of file ConditionsLinearPool.cpp.

Constructor & Destructor Documentation

◆ ConditionsLinearPool()

template<typename MAPPING , typename BASE >
ConditionsLinearPool::ConditionsLinearPool ( ConditionsManager  mgr,
IOV iov 
)

Default constructor.

Definition at line 195 of file ConditionsLinearPool.cpp.

◆ ~ConditionsLinearPool()

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

Default destructor.

Definition at line 205 of file ConditionsLinearPool.cpp.

Member Function Documentation

◆ clear()

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

Full cleanup of all managed conditions.

Definition at line 68 of file ConditionsLinearPool.cpp.

◆ exists()

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

Check if a condition exists in the pool.

Definition at line 74 of file ConditionsLinearPool.cpp.

◆ insert() [1/2]

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

Register a new condition to this pool.

Definition at line 80 of file ConditionsLinearPool.cpp.

◆ insert() [2/2]

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

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

Definition at line 84 of file ConditionsLinearPool.cpp.

◆ loop()

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

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

Definition at line 50 of file ConditionsLinearPool.cpp.

◆ select()

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

Select the conditions matching the DetElement and the conditions name.

Definition at line 88 of file ConditionsLinearPool.cpp.

◆ select_all() [1/3]

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

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

Definition at line 100 of file ConditionsLinearPool.cpp.

◆ select_all() [2/3]

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

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

Definition at line 92 of file ConditionsLinearPool.cpp.

◆ select_all() [3/3]

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

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

Definition at line 96 of file ConditionsLinearPool.cpp.

◆ size()

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

Total entry count.

Definition at line 63 of file ConditionsLinearPool.cpp.

Member Data Documentation

◆ m_entries

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

Definition at line 47 of file ConditionsLinearPool.cpp.


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