DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Public Attributes | List of all members
dd4hep::ConditionsMapping< T > Class Template Reference

Concrete ConditionsMap implementation class using externally defined containers. More...

#include <ConditionsMap.h>

Inheritance diagram for dd4hep::ConditionsMapping< T >:
dd4hep::ConditionsMap

Public Member Functions

 ConditionsMapping ()=default
 Standard constructor to construct an empty object. More...
 
virtual ~ConditionsMapping ()=default
 Standard destructor. More...
 
 ConditionsMapping (const ConditionsMapping &copy)=delete
 No copy constructor. More...
 
ConditionsMappingoperator= (const ConditionsMapping &copy)=delete
 No assignment. More...
 
virtual bool insert (DetElement detector, Condition::itemkey_type key, Condition condition) override
 Insert a new entry to the map. More...
 
virtual Condition get (DetElement detector, Condition::itemkey_type key) const override
 Interface to access conditions by hash value. More...
 
virtual std::vector< Conditionget (DetElement detector, Condition::itemkey_type lower, Condition::itemkey_type upper) const override
 No ConditionsMap overload: Access all conditions within a key range in the interval [lower,upper]. More...
 
virtual void scan (const Condition::Processor &processor) const override
 Interface to scan data content of the conditions mapping. More...
 
virtual void scan (DetElement detector, Condition::itemkey_type lower, Condition::itemkey_type upper, const Condition::Processor &processor) const override
 Interface to partially scan data content of the conditions mapping. More...
 
bool insert (DetElement detector, Condition::itemkey_type key, Condition condition)
 Specialization: Insert a new entry to the map. More...
 
void scan (DetElement detector, Condition::itemkey_type lower, Condition::itemkey_type upper, const Condition::Processor &proc) const
 Specialization: Interface to partially scan data content of the conditions mapping. More...
 
- Public Member Functions inherited from dd4hep::ConditionsMap
virtual ~ConditionsMap ()=default
 Standard destructor. More...
 

Public Attributes

data
 The actual data container. More...
 

Additional Inherited Members

- Public Types inherited from dd4hep::ConditionsMap
enum  { FIRST_ITEM = Condition::FIRST_ITEM_KEY, LAST_ITEM = Condition::LAST_ITEM_KEY }
 
enum  { FIRST_KEY = Condition::FIRST_KEY, LAST_KEY = Condition::LAST_KEY }
 

Detailed Description

template<typename T>
class dd4hep::ConditionsMapping< T >

Concrete ConditionsMap implementation class using externally defined containers.

Author
M.Frank
Version
1.0

Definition at line 125 of file ConditionsMap.h.

Constructor & Destructor Documentation

◆ ConditionsMapping() [1/2]

template<typename T >
dd4hep::ConditionsMapping< T >::ConditionsMapping ( )
default

Standard constructor to construct an empty object.

◆ ~ConditionsMapping()

template<typename T >
virtual dd4hep::ConditionsMapping< T >::~ConditionsMapping ( )
virtualdefault

Standard destructor.

◆ ConditionsMapping() [2/2]

template<typename T >
dd4hep::ConditionsMapping< T >::ConditionsMapping ( const ConditionsMapping< T > &  copy)
delete

No copy constructor.

Member Function Documentation

◆ get() [1/2]

template<typename T >
Condition ConditionsMapping::get ( DetElement  detector,
Condition::itemkey_type  key 
) const
overridevirtual

Interface to access conditions by hash value.

Implements dd4hep::ConditionsMap.

Definition at line 105 of file ConditionsMap.cpp.

◆ get() [2/2]

template<typename T >
virtual std::vector<Condition> dd4hep::ConditionsMapping< T >::get ( DetElement  detector,
Condition::itemkey_type  lower,
Condition::itemkey_type  upper 
) const
inlineoverridevirtual

No ConditionsMap overload: Access all conditions within a key range in the interval [lower,upper].

Reimplemented from dd4hep::ConditionsMap.

Definition at line 143 of file ConditionsMap.h.

◆ insert() [1/2]

bool dd4hep::ConditionsMapping< std::multimap< Condition::key_type, Condition > >::insert ( DetElement  detector,
Condition::itemkey_type  key,
Condition  condition 
)
virtual

Specialization: Insert a new entry to the map.

Implements dd4hep::ConditionsMap.

Definition at line 142 of file ConditionsMap.cpp.

◆ insert() [2/2]

template<typename T >
bool ConditionsMapping::insert ( DetElement  detector,
Condition::itemkey_type  key,
Condition  condition 
)
overridevirtual

Insert a new entry to the map.

Implements dd4hep::ConditionsMap.

Definition at line 98 of file ConditionsMap.cpp.

◆ operator=()

template<typename T >
ConditionsMapping& dd4hep::ConditionsMapping< T >::operator= ( const ConditionsMapping< T > &  copy)
delete

No assignment.

◆ scan() [1/3]

template<typename T >
void ConditionsMapping::scan ( const Condition::Processor processor) const
overridevirtual

Interface to scan data content of the conditions mapping.

Implements dd4hep::ConditionsMap.

Definition at line 112 of file ConditionsMap.cpp.

◆ scan() [2/3]

void dd4hep::ConditionsMapping< std::unordered_map< Condition::key_type, Condition > >::scan ( DetElement  detector,
Condition::itemkey_type  lower,
Condition::itemkey_type  upper,
const Condition::Processor proc 
) const
virtual

Specialization: Interface to partially scan data content of the conditions mapping.

Reimplemented from dd4hep::ConditionsMap.

Definition at line 150 of file ConditionsMap.cpp.

◆ scan() [3/3]

template<typename T >
void ConditionsMapping::scan ( DetElement  detector,
Condition::itemkey_type  lower,
Condition::itemkey_type  upper,
const Condition::Processor processor 
) const
overridevirtual

Interface to partially scan data content of the conditions mapping.

Reimplemented from dd4hep::ConditionsMap.

Definition at line 119 of file ConditionsMap.cpp.

Member Data Documentation

◆ data

template<typename T >
T dd4hep::ConditionsMapping< T >::data

The actual data container.

Definition at line 128 of file ConditionsMap.h.


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