DD4hep  1.28.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Protected Attributes | List of all members
dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > > Class Template Reference

Concrete class to hold a segmentation parameter of a vector of items of a given type with its description. More...

#include <SegmentationParameter.h>

Inheritance diagram for dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >:
dd4hep::DDSegmentation::SegmentationParameter

Public Member Functions

 TypedSegmentationParameter (const std::string &nam, const std::string &desc, std::vector< TYPE > &val, const std::vector< TYPE > &defaultVal, SegmentationParameter::UnitType unitTyp=SegmentationParameter::NoUnit, bool isOpt=false)
 Default constructor. More...
 
virtual ~TypedSegmentationParameter ()
 Default destructor. More...
 
const std::vector< TYPE > & typedValue () const
 Access to the parameter value. More...
 
void setTypedValue (const std::vector< TYPE > &val)
 Set the parameter value. More...
 
const std::vector< TYPE > & typedDefaultValue () const
 Access to the parameter default value. More...
 
std::string type () const
 Access to the parameter type. More...
 
std::string value () const
 Access to the parameter value in string representation. More...
 
void setValue (const std::string &val)
 Set the parameter value in string representation. More...
 
std::string defaultValue () const
 Access to the parameter default value in string representation. More...
 
- Public Member Functions inherited from dd4hep::DDSegmentation::SegmentationParameter
virtual ~SegmentationParameter ()
 Default destructor. More...
 
const std::string & name () const
 Access to the parameter name. More...
 
const std::string & description () const
 Access to the parameter description. More...
 
UnitType unitType () const
 Access to the unit type. More...
 
bool isOptional () const
 Check if this parameter is optional. More...
 
std::string toString () const
 Printable version. More...
 

Protected Attributes

std::vector< TYPE > * _value = 0
 
std::vector< TYPE > _defaultValue
 
- Protected Attributes inherited from dd4hep::DDSegmentation::SegmentationParameter
std::string _name
 The parameter name. More...
 
std::string _description
 The parameter description. More...
 
UnitType _unitType
 The unit type. More...
 
bool _isOptional
 Store if parameter is optional. More...
 

Additional Inherited Members

- Public Types inherited from dd4hep::DDSegmentation::SegmentationParameter
enum  UnitType { NoUnit, LengthUnit, AngleUnit }
 Defines the parameter unit type (useful to convert to default set of units) More...
 
- Protected Member Functions inherited from dd4hep::DDSegmentation::SegmentationParameter
 SegmentationParameter (const std::string &nam, const std::string &desc, UnitType unitTyp=NoUnit, bool isOpt=false)
 Default constructor used by derived classes. More...
 

Detailed Description

template<typename TYPE>
class dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >

Concrete class to hold a segmentation parameter of a vector of items of a given type with its description.

Definition at line 231 of file SegmentationParameter.h.

Constructor & Destructor Documentation

◆ TypedSegmentationParameter()

template<typename TYPE >
dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >::TypedSegmentationParameter ( const std::string &  nam,
const std::string &  desc,
std::vector< TYPE > &  val,
const std::vector< TYPE > &  defaultVal,
SegmentationParameter::UnitType  unitTyp = SegmentationParameter::NoUnit,
bool  isOpt = false 
)
inline

Default constructor.

Definition at line 239 of file SegmentationParameter.h.

◆ ~TypedSegmentationParameter()

template<typename TYPE >
virtual dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >::~TypedSegmentationParameter ( )
inlinevirtual

Default destructor.

Definition at line 246 of file SegmentationParameter.h.

Member Function Documentation

◆ defaultValue()

template<typename TYPE >
std::string dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >::defaultValue ( ) const
inlinevirtual

Access to the parameter default value in string representation.

Implements dd4hep::DDSegmentation::SegmentationParameter.

Definition at line 296 of file SegmentationParameter.h.

◆ setTypedValue()

template<typename TYPE >
void dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >::setTypedValue ( const std::vector< TYPE > &  val)
inline

Set the parameter value.

Definition at line 254 of file SegmentationParameter.h.

◆ setValue()

template<typename TYPE >
void dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >::setValue ( const std::string &  val)
inlinevirtual

Set the parameter value in string representation.

Implements dd4hep::DDSegmentation::SegmentationParameter.

Definition at line 281 of file SegmentationParameter.h.

◆ type()

template<typename TYPE >
std::string dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >::type ( ) const
inlinevirtual

Access to the parameter type.

Implements dd4hep::DDSegmentation::SegmentationParameter.

Definition at line 264 of file SegmentationParameter.h.

◆ typedDefaultValue()

template<typename TYPE >
const std::vector<TYPE>& dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >::typedDefaultValue ( ) const
inline

Access to the parameter default value.

Definition at line 259 of file SegmentationParameter.h.

◆ typedValue()

template<typename TYPE >
const std::vector<TYPE>& dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >::typedValue ( ) const
inline

Access to the parameter value.

Definition at line 249 of file SegmentationParameter.h.

◆ value()

template<typename TYPE >
std::string dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >::value ( ) const
inlinevirtual

Access to the parameter value in string representation.

Implements dd4hep::DDSegmentation::SegmentationParameter.

Definition at line 271 of file SegmentationParameter.h.

Member Data Documentation

◆ _defaultValue

template<typename TYPE >
std::vector<TYPE> dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >::_defaultValue
protected

Definition at line 308 of file SegmentationParameter.h.

◆ _value

template<typename TYPE >
std::vector<TYPE>* dd4hep::DDSegmentation::TypedSegmentationParameter< std::vector< TYPE > >::_value = 0
protected

Definition at line 307 of file SegmentationParameter.h.


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