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

Concrete template instantiation of a combined property value pair. More...

#include <ComponentProperties.h>

Inheritance diagram for dd4hep::PropertyValue< TYPE >:
dd4hep::Property

Public Member Functions

 PropertyValue ()
 Default constructor. More...
 
 PropertyValue (const PropertyValue &c)=default
 Copy constructor. More...
 
PropertyValueoperator= (const PropertyValue &c)=default
 Assignment operator. More...
 
PropertyValueoperator= (const TYPE &val)
 Assignment operator. More...
 
bool operator== (const TYPE &val) const
 Equality operator. More...
 
const BasicGrammargrammar () const
 Access grammar object. More...
 
std::string str () const
 Conversion to string value. More...
 
template<typename T >
value () const
 Retrieve value with data conversion. More...
 
template<typename T >
void value (TYPE &val) const
 Retrieve value from stack with data conversion (large values e.g. vectors etc.) More...
 
template<typename T >
void set (const T &val)
 Set value of this property with data conversion. More...
 

Public Attributes

TYPE data {}
 

Additional Inherited Members

- Private Member Functions inherited from dd4hep::Property
 Property ()=default
 Default constructor. More...
 
 Property (const Property &p)=default
 Copy constructor. More...
 
template<typename TYPE >
 Property (TYPE &val)
 User constructor. More...
 
void * ptr () const
 Access void data pointer. More...
 
std::string type () const
 Property type name. More...
 
const BasicGrammargrammar () const
 Access grammar object. More...
 
std::string str () const
 Conversion to string value. More...
 
Propertystr (const std::string &input)
 Conversion from string value. More...
 
const Propertystr (const std::string &input) const
 Conversion from string value. More...
 
Propertyoperator= (const Property &p)=default
 Assignment operator. More...
 
Propertyoperator= (const char *val)
 Assignment operator / set new balue. More...
 
template<typename TYPE >
Propertyoperator= (const TYPE &val)
 Assignment operator / set new balue. More...
 
template<typename TYPE >
TYPE value () const
 Retrieve value. More...
 
template<typename TYPE >
void value (TYPE &value) const
 Retrieve value from stack (large values e.g. vectors etc.) More...
 
template<typename TYPE >
void set (const TYPE &value)
 Set value of this property. More...
 
- Static Private Member Functions inherited from dd4hep::Property
static std::string type (const Property &proptery)
 Property type name. More...
 
static std::string type (const std::type_info &proptery)
 Property type name. More...
 
- Private Attributes inherited from dd4hep::Property
void * m_par { nullptr }
 Pointer to the data location. More...
 
const BasicGrammarm_hdl { nullptr }
 Reference to the grammar of this property (extended type description) More...
 

Detailed Description

template<class TYPE>
class dd4hep::PropertyValue< TYPE >

Concrete template instantiation of a combined property value pair.

Note: This class cannot be saved to a ROOT file!

Author
M.Frank
Version
1.0

Definition at line 140 of file ComponentProperties.h.

Constructor & Destructor Documentation

◆ PropertyValue() [1/2]

template<class TYPE >
dd4hep::PropertyValue< TYPE >::PropertyValue ( )
inline

Default constructor.

Definition at line 144 of file ComponentProperties.h.

◆ PropertyValue() [2/2]

template<class TYPE >
dd4hep::PropertyValue< TYPE >::PropertyValue ( const PropertyValue< TYPE > &  c)
default

Copy constructor.

Member Function Documentation

◆ grammar()

template<class TYPE >
const BasicGrammar& dd4hep::PropertyValue< TYPE >::grammar ( ) const
inline

Access grammar object.

Definition at line 154 of file ComponentProperties.h.

◆ operator=() [1/2]

template<class TYPE >
PropertyValue& dd4hep::PropertyValue< TYPE >::operator= ( const PropertyValue< TYPE > &  c)
default

Assignment operator.

◆ operator=() [2/2]

template<class TYPE >
PropertyValue& dd4hep::PropertyValue< TYPE >::operator= ( const TYPE &  val)
inline

Assignment operator.

Definition at line 150 of file ComponentProperties.h.

◆ operator==()

template<class TYPE >
bool dd4hep::PropertyValue< TYPE >::operator== ( const TYPE &  val) const
inline

Equality operator.

Definition at line 152 of file ComponentProperties.h.

◆ set()

template<class TYPE >
template<typename T >
void dd4hep::PropertyValue< TYPE >::set ( const T &  val)
inline

Set value of this property with data conversion.

Definition at line 163 of file ComponentProperties.h.

◆ str()

template<class TYPE >
std::string dd4hep::PropertyValue< TYPE >::str ( ) const
inline

Conversion to string value.

Definition at line 156 of file ComponentProperties.h.

◆ value() [1/2]

template<class TYPE >
template<typename T >
T dd4hep::PropertyValue< TYPE >::value ( ) const
inline

Retrieve value with data conversion.

Definition at line 158 of file ComponentProperties.h.

◆ value() [2/2]

template<class TYPE >
template<typename T >
void dd4hep::PropertyValue< TYPE >::value ( TYPE &  val) const
inline

Retrieve value from stack with data conversion (large values e.g. vectors etc.)

Definition at line 161 of file ComponentProperties.h.

Member Data Documentation

◆ data

template<class TYPE >
TYPE dd4hep::PropertyValue< TYPE >::data {}

Definition at line 142 of file ComponentProperties.h.


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