DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Classes | Namespaces | Macros | Typedefs | Functions
Handle.h File Reference
#include <DD4hep/Primitives.h>
#include <string>
#include <typeinfo>
#include <stdexcept>
#include <type_traits>

Go to the source code of this file.

Classes

class  dd4hep::Handle< T >
 Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects. More...
 
class  dd4hep::detail::DestroyHandle< T >
 Functor to destroy handles and delete the cached object. More...
 
class  dd4hep::detail::DestroyHandles< M >
 map Functor to destroy handles and delete the cached object More...
 
class  dd4hep::detail::ReleaseHandle< T >
 Functor to destroy handles and delete the cached object. More...
 
class  dd4hep::detail::ReleaseHandles< M >
 map Functor to release handles More...
 

Namespaces

 dd4hep
 Namespace for the AIDA detector description toolkit.
 
 dd4hep::detail
 DD4hep internal namespace.
 

Macros

#define RAD_2_DEGREE   57.295779513082320876798154814105
 
#define DEGREE_2_RAD   0.0174532925199432957692369076848
 
#define M_PI   3.14159265358979323846
 

Typedefs

typedef Handle< NamedObject > dd4hep::Ref_t
 Default Ref_t definition describing named objects. More...
 

Functions

bool dd4hep::set_allow_variable_redefine (bool value)
 Steer redefinition of variable re-definition during expression evaluation. returns old value. More...
 
long dd4hep::num_object_validations ()
 
void dd4hep::increment_object_validations ()
 
void dd4hep::warning_deprecated_xml_factory (const char *name)
 Function tp print warning about deprecated factory usage. Used by Plugin mechanism. More...
 
unsigned long long int dd4hep::magic_word ()
 Access to the magic word, which is protecting some objects against memory corruptions. More...
 
template<typename T >
void dd4hep::detail::destroyHandle (T &handle)
 Helper to delete objects from heap and reset the handle. More...
 
template<typename M >
void dd4hep::detail::destroyHandles (M &arg)
 Functional created of map destruction functors. More...
 
template<typename T >
void dd4hep::detail::releaseHandle (T &handle)
 Helper to delete objects from heap and reset the handle. More...
 
template<typename M >
void dd4hep::detail::releaseHandles (M &arg)
 Functional created of map destruction functors. More...
 
std::string dd4hep::remove_whitespace (const std::string &v)
 String manipulations: Remove unconditionally all white spaces. More...
 
std::string dd4hep::_toString (bool value)
 String conversions: boolean value to string. More...
 
std::string dd4hep::_toString (short value, const char *fmt="%d")
 String conversions: short integer value to string. More...
 
std::string dd4hep::_toString (int value, const char *fmt="%d")
 String conversions: integer value to string. More...
 
std::string dd4hep::_toString (unsigned long value, const char *fmt="%ld")
 String conversions: unsigned long integer value to string. More...
 
std::string dd4hep::_toString (float value, const char *fmt="%.17e")
 String conversions: float value to string. More...
 
std::string dd4hep::_toString (double value, const char *fmt="%.17e")
 String conversions: double value to string. More...
 
std::string dd4hep::_ptrToString (const void *p, const char *fmt="%p")
 Pointer to text conversion. More...
 
template<typename T >
std::string dd4hep::_toString (const T *p, const char *fmt="%p")
 Format any pointer (64 bits) to string. More...
 
template<typename T >
dd4hep::_toType (const std::string &value)
 Generic type conversion from string to primitive value. More...
 
bool dd4hep::_toBool (const std::string &value)
 String conversions: string to boolean value. More...
 
short dd4hep::_toShort (const std::string &value)
 String conversions: string to short value. More...
 
int dd4hep::_toInt (const std::string &value)
 String conversions: string to integer value. More...
 
long dd4hep::_toLong (const std::string &value)
 String conversions: string to long integer value. More...
 
unsigned short dd4hep::_toUShort (const std::string &value)
 String conversions: string to unsigned short value. More...
 
unsigned int dd4hep::_toUInt (const std::string &value)
 String conversions: string to unsigned integer value. More...
 
unsigned long dd4hep::_toULong (const std::string &value)
 String conversions: string to long integer value. More...
 
float dd4hep::_toFloat (const std::string &value)
 String conversions: string to float value. More...
 
double dd4hep::_toDouble (const std::string &value)
 String conversions: string to double value. More...
 
bool dd4hep::_toBool (bool value)
 Void helper function to support formalisms. More...
 
short dd4hep::_toShort (short value)
 Void helper function to support formalisms. More...
 
int dd4hep::_toInt (int value)
 Void helper function to support formalisms. More...
 
long dd4hep::_toLong (long value)
 Void helper function to support formalisms. More...
 
unsigned short dd4hep::_toUShort (unsigned short value)
 Void helper function to support formalisms. More...
 
unsigned int dd4hep::_toUInt (unsigned int value)
 Void helper function to support formalisms. More...
 
unsigned long dd4hep::_toULong (unsigned long value)
 Void helper function to support formalisms. More...
 
float dd4hep::_toFloat (float value)
 Void helper function to support formalisms. More...
 
double dd4hep::_toDouble (double value)
 Void helper function to support formalisms. More...
 
template<class T >
dd4hep::_multiply (const std::string &left, T right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<class T >
dd4hep::_multiply (T left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<class T >
dd4hep::_multiply (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
char dd4hep::_multiply< char > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
char dd4hep::_multiply< char > (char left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
char dd4hep::_multiply< char > (const std::string &left, char right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned char dd4hep::_multiply< unsigned char > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned char dd4hep::_multiply< unsigned char > (unsigned char left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned char dd4hep::_multiply< unsigned char > (const std::string &left, unsigned char right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
short dd4hep::_multiply< short > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
short dd4hep::_multiply< short > (short left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
short dd4hep::_multiply< short > (const std::string &left, short right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned short dd4hep::_multiply< unsigned short > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned short dd4hep::_multiply< unsigned short > (unsigned short left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned short dd4hep::_multiply< unsigned short > (const std::string &left, unsigned short right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
int dd4hep::_multiply< int > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
int dd4hep::_multiply< int > (int left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
int dd4hep::_multiply< int > (const std::string &left, int right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned int dd4hep::_multiply< unsigned int > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned int dd4hep::_multiply< unsigned int > (unsigned int left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned int dd4hep::_multiply< unsigned int > (const std::string &left, unsigned int right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
long dd4hep::_multiply< long > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
long dd4hep::_multiply< long > (long left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
long dd4hep::_multiply< long > (const std::string &left, long right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned long dd4hep::_multiply< unsigned long > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned long dd4hep::_multiply< unsigned long > (unsigned long left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned long dd4hep::_multiply< unsigned long > (const std::string &left, unsigned long right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
float dd4hep::_multiply< float > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
float dd4hep::_multiply< float > (float left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
float dd4hep::_multiply< float > (const std::string &left, float right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
double dd4hep::_multiply< double > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
double dd4hep::_multiply< double > (const std::string &left, double right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
double dd4hep::_multiply< double > (double left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
void dd4hep::_toDictionary (const std::string &name, const std::string &value)
 Enter name value pair to the dictionary. "value" must be a numerical expression, which is evaluated. More...
 
void dd4hep::_toDictionary (const std::string &name, const std::string &value, const std::string &typ)
 Enter name value pair to the dictionary. More...
 

Macro Definition Documentation

◆ DEGREE_2_RAD

#define DEGREE_2_RAD   0.0174532925199432957692369076848

Definition at line 30 of file Handle.h.

◆ M_PI

#define M_PI   3.14159265358979323846

Definition at line 34 of file Handle.h.

◆ RAD_2_DEGREE

#define RAD_2_DEGREE   57.295779513082320876798154814105

Definition at line 27 of file Handle.h.