CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Genfun::ParameterComposition Class Reference

#include <ParameterComposition.hh>

+ Inheritance diagram for Genfun::ParameterComposition:

Public Member Functions

 ParameterComposition (const AbsFunction *arg1, const AbsParameter *arg2)
 
 ParameterComposition (const ParameterComposition &right)
 
virtual ~ParameterComposition ()
 
virtual double getValue () const
 
- Public Member Functions inherited from Genfun::AbsParameter
 AbsParameter ()
 
 AbsParameter (const AbsParameter &)
 
virtual ~AbsParameter ()
 
virtual double getValue () const =0
 
AbsParameterclone () const
 
virtual Parameterparameter ()
 
virtual const Parameterparameter () const
 

Detailed Description

Author

Definition at line 21 of file ParameterComposition.hh.

Constructor & Destructor Documentation

◆ ParameterComposition() [1/2]

Genfun::ParameterComposition::ParameterComposition ( const AbsFunction arg1,
const AbsParameter arg2 
)

Definition at line 10 of file ParameterComposition.cc.

10 :
12 _arg1(arg1->clone()),
13 _arg2(arg2->clone())
14{
15 if (arg2->parameter() && _arg2->parameter()) _arg2->parameter()->connectFrom(arg2->parameter());
16}
virtual Parameter * parameter()
Definition: AbsParameter.hh:42
void connectFrom(const AbsParameter *source)
Definition: Parameter.cc:95

◆ ParameterComposition() [2/2]

Genfun::ParameterComposition::ParameterComposition ( const ParameterComposition right)

Definition at line 18 of file ParameterComposition.cc.

18 :
20_arg1(right._arg1->clone()),
21_arg2(right._arg2->clone())
22{}

◆ ~ParameterComposition()

Genfun::ParameterComposition::~ParameterComposition ( )
virtual

Definition at line 25 of file ParameterComposition.cc.

26{
27 delete _arg1;
28 delete _arg2;
29}

Member Function Documentation

◆ getValue()

double Genfun::ParameterComposition::getValue ( ) const
virtual

Implements Genfun::AbsParameter.

Definition at line 32 of file ParameterComposition.cc.

32 {
33 return _arg1->operator() (_arg2->getValue());
34}
virtual double getValue() const =0

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