DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Helper class to bind string values to C++ data items. More...
#include <OpaqueDataBinder.h>
Public Member Functions | |
OpaqueDataBinder ()=default | |
Default constructor. More... | |
~OpaqueDataBinder ()=default | |
Default destructor. More... | |
template<typename BINDER , typename T > | |
bool | bind (const BINDER &b, T &object, const std::string &typ, const std::string &val) |
Binding function for scalar items. See the implementation function for the concrete instantiations. More... | |
template<typename T > | |
bool | bind_sequence (T &object, const std::string &typ, const std::string &val) |
Binding function for sequences (unmapped STL containers) More... | |
template<> | |
bool | bind_map (const MapBinder &b, Condition &object, const std::string &key_type, const std::string &val_type) |
Conditions binding function for STL maps. More... | |
template<> | |
bool | insert_map (const MapBinder &b, Condition &object, const std::string &key_type, const std::string &key, const std::string &val_type, const std::string &val) |
Conditions: Filling function for STL maps. More... | |
template<> | |
bool | insert_map (const MapBinder &b, Condition &object, const std::string &key_type, const std::string &val_type, const std::string &pair_data) |
Conditions: Filling function for STL maps. More... | |
Static Public Member Functions | |
template<typename BINDER , typename OBJECT > | |
static bool | bind (const BINDER &b, OBJECT &object, const std::string &typ, const std::string &val) |
Binding function for scalar items. See the implementation function for the concrete instantiations. More... | |
template<typename OBJECT > | |
static bool | bind_sequence (OBJECT &object, const std::string &typ, const std::string &val) |
Binding function for sequences (unmapped STL containers) More... | |
template<typename BINDER , typename OBJECT > | |
static bool | bind_map (const BINDER &b, OBJECT &o, const std::string &key_type, const std::string &val_type) |
Binding function for STL maps. Does not fill data! More... | |
template<typename BINDER , typename OBJECT > | |
static bool | insert_map (const BINDER &b, OBJECT &o, const std::string &key_type, const std::string &key, const std::string &val_type, const std::string &val) |
Filling function for STL maps. More... | |
template<typename BINDER , typename OBJECT > | |
static bool | insert_map (const BINDER &b, OBJECT &o, const std::string &key_type, const std::string &val_type, const std::string &pair_data) |
Filling function for STL maps. More... | |
Helper class to bind string values to C++ data items.
Definition at line 75 of file OpaqueDataBinder.h.
|
default |
Default constructor.
|
default |
Default destructor.
|
static |
Binding function for scalar items. See the implementation function for the concrete instantiations.
bool dd4hep::detail::OpaqueDataBinder::bind | ( | const BINDER & | b, |
T & | object, | ||
const std::string & | typ, | ||
const std::string & | val | ||
) |
Binding function for scalar items. See the implementation function for the concrete instantiations.
Definition at line 57 of file OpaqueDataBinder.cpp.
|
static |
Binding function for STL maps. Does not fill data!
Binding function for STL maps.
Definition at line 272 of file OpaqueDataBinder.cpp.
bool dd4hep::detail::OpaqueDataBinder::bind_map | ( | const MapBinder & | b, |
Condition & | object, | ||
const std::string & | key_type, | ||
const std::string & | val_type | ||
) |
Conditions binding function for STL maps.
Definition at line 378 of file OpaqueDataBinder.cpp.
|
static |
Binding function for sequences (unmapped STL containers)
bool dd4hep::detail::OpaqueDataBinder::bind_sequence | ( | T & | object, |
const std::string & | typ, | ||
const std::string & | val | ||
) |
Binding function for sequences (unmapped STL containers)
Definition at line 118 of file OpaqueDataBinder.cpp.
|
static |
Filling function for STL maps.
Definition at line 302 of file OpaqueDataBinder.cpp.
|
static |
Filling function for STL maps.
Definition at line 334 of file OpaqueDataBinder.cpp.
bool dd4hep::detail::OpaqueDataBinder::insert_map | ( | const MapBinder & | b, |
Condition & | object, | ||
const std::string & | key_type, | ||
const std::string & | key, | ||
const std::string & | val_type, | ||
const std::string & | val | ||
) |
Conditions: Filling function for STL maps.
Definition at line 383 of file OpaqueDataBinder.cpp.
bool dd4hep::detail::OpaqueDataBinder::insert_map | ( | const MapBinder & | b, |
Condition & | object, | ||
const std::string & | key_type, | ||
const std::string & | val_type, | ||
const std::string & | pair_data | ||
) |
Conditions: Filling function for STL maps.
Definition at line 389 of file OpaqueDataBinder.cpp.