![]() |
DD4hep
1.33.0
Detector Description Toolkit for High Energy Physics
|
Key definition to optimize ans simplyfy the access to conditions entities. More...
#include <Conditions.h>
Classes | |
| struct | HashCompare |
| Compare keys by the hash value. More... | |
| union | KeyMaker |
| Helper union to interprete conditions keys. More... | |
Public Member Functions | |
| ConditionKey ()=default | |
| Default constructor. More... | |
| ConditionKey (Condition::key_type key) | |
| Constructor from fully qualified key. More... | |
| ConditionKey (DetElement detector, const std::string &identifier) | |
| Constructor from string. More... | |
| ConditionKey (Condition::detkey_type det_key, const std::string &identifier) | |
| Constructor from detector element key and item sub-key. More... | |
| ConditionKey (DetElement detector, Condition::itemkey_type item_key) | |
| Constructor from detector element and item sub-key. More... | |
| ConditionKey (Condition::detkey_type det_key, Condition::itemkey_type item_key) | |
| Constructor from detector element key and item sub-key. More... | |
| ConditionKey (const ConditionKey &c)=default | |
| Copy constructor. More... | |
| Condition::detkey_type | detector_key () const |
| Access the detector element part of the key. More... | |
| Condition::itemkey_type | item_key () const |
| Access the detector element part of the key. More... | |
| ConditionKey & | operator= (const ConditionKey &key)=default |
| Assignment operator from object copy. More... | |
| bool | operator== (const ConditionKey &compare) const |
| Equality operator using key object. More... | |
| bool | operator== (const Condition::key_type compare) const |
| Equality operator using hash value. More... | |
| bool | operator< (const ConditionKey &compare) const |
| Equality operator using the string representation. More... | |
| bool | operator< (const Condition::key_type compare) const |
| Operator less (for map insertions) using hash value. More... | |
| operator Condition::key_type () const | |
| Automatic conversion to the hashed representation of the key object. More... | |
| std::string | toString () const |
| Conversion to string. More... | |
Static Public Member Functions | |
| static Condition::key_type | hashCode (DetElement detector, const char *value) |
| Hash code generation from input string. More... | |
| static Condition::key_type | hashCode (DetElement detector, const std::string &value) |
| Hash code generation from input string. More... | |
| static Condition::itemkey_type | itemCode (const char *value) |
| 32 bit hashcode of the item More... | |
| static Condition::itemkey_type | itemCode (const std::string &value) |
| 32 bit hashcode of the item More... | |
Public Attributes | |
| Condition::key_type | hash = 0 |
| Hashed key representation. More... | |
Key definition to optimize ans simplyfy the access to conditions entities.
Definition at line 280 of file Conditions.h.
|
default |
Default constructor.
|
inline |
Constructor from fully qualified key.
Definition at line 338 of file Conditions.h.
| ConditionKey::ConditionKey | ( | DetElement | detector, |
| const std::string & | identifier | ||
| ) |
Constructor from string.
Definition at line 240 of file Conditions.cpp.
| ConditionKey::ConditionKey | ( | Condition::detkey_type | det_key, |
| const std::string & | identifier | ||
| ) |
Constructor from detector element key and item sub-key.
Definition at line 250 of file Conditions.cpp.
| ConditionKey::ConditionKey | ( | DetElement | detector, |
| Condition::itemkey_type | item_key | ||
| ) |
Constructor from detector element and item sub-key.
Constructor from detector element key and item sub-key.
Definition at line 262 of file Conditions.cpp.
|
inline |
Constructor from detector element key and item sub-key.
Definition at line 387 of file Conditions.h.
|
default |
Copy constructor.
|
inline |
Access the detector element part of the key.
Definition at line 351 of file Conditions.h.
|
static |
Hash code generation from input string.
Definition at line 272 of file Conditions.cpp.
|
static |
Hash code generation from input string.
Definition at line 279 of file Conditions.cpp.
|
inline |
Access the detector element part of the key.
Definition at line 355 of file Conditions.h.
|
static |
32 bit hashcode of the item
Definition at line 286 of file Conditions.cpp.
|
static |
32 bit hashcode of the item
Definition at line 293 of file Conditions.cpp.
|
inline |
Automatic conversion to the hashed representation of the key object.
Definition at line 381 of file Conditions.h.
|
inline |
Operator less (for map insertions) using hash value.
Definition at line 404 of file Conditions.h.
|
inline |
Equality operator using the string representation.
Operator less (for map insertions) using key object.
Operator less (for map insertions) using key object
Definition at line 400 of file Conditions.h.
|
default |
Assignment operator from object copy.
|
inline |
Equality operator using hash value.
Definition at line 396 of file Conditions.h.
|
inline |
Equality operator using key object.
Definition at line 392 of file Conditions.h.
| std::string ConditionKey::toString | ( | ) | const |
Conversion to string.
Definition at line 300 of file Conditions.cpp.
| Condition::key_type dd4hep::ConditionKey::hash = 0 |
Hashed key representation.
Definition at line 287 of file Conditions.h.
1.8.18