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

#include <ConstPlusParameter.hh>

+ Inheritance diagram for Genfun::ConstPlusParameter:

Public Member Functions

 ConstPlusParameter (double, const AbsParameter *)
 
 ConstPlusParameter (const ConstPlusParameter &right)
 
virtual ~ConstPlusParameter ()
 
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 20 of file ConstPlusParameter.hh.

Constructor & Destructor Documentation

◆ ConstPlusParameter() [1/2]

Genfun::ConstPlusParameter::ConstPlusParameter ( double  xconstant,
const AbsParameter aparm 
)

Definition at line 9 of file ConstPlusParameter.cc.

9 :
10 _constant(xconstant),
11 _parameter(aparm->clone())
12{
13 if (aparm->parameter() && _parameter->parameter()) _parameter->parameter()->connectFrom(aparm->parameter());
14}
virtual Parameter * parameter()
Definition: AbsParameter.hh:42
void connectFrom(const AbsParameter *source)
Definition: Parameter.cc:95

◆ ConstPlusParameter() [2/2]

Genfun::ConstPlusParameter::ConstPlusParameter ( const ConstPlusParameter right)

Definition at line 16 of file ConstPlusParameter.cc.

16 :
18_constant(right._constant),
19_parameter(right._parameter->clone())
20{}

◆ ~ConstPlusParameter()

Genfun::ConstPlusParameter::~ConstPlusParameter ( )
virtual

Definition at line 23 of file ConstPlusParameter.cc.

24{
25 delete _parameter;
26}

Member Function Documentation

◆ getValue()

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

Implements Genfun::AbsParameter.

Definition at line 29 of file ConstPlusParameter.cc.

29 {
30 return _constant + _parameter->getValue();
31}
virtual double getValue() const =0

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