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

#include <FunctionNoop.hh>

+ Inheritance diagram for Genfun::FunctionNoop:

Public Member Functions

 FunctionNoop (const AbsFunction *arg1)
 
 FunctionNoop (const FunctionNoop &right)
 
virtual ~FunctionNoop ()
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &a) const override
 
virtual unsigned int dimensionality () const override
 
Derivative partial (unsigned int) const override
 
virtual bool hasAnalyticDerivative () const override
 
- Public Member Functions inherited from Genfun::AbsFunction
 AbsFunction ()
 
 AbsFunction (const AbsFunction &right)
 
virtual ~AbsFunction ()
 
virtual unsigned int dimensionality () const
 
virtual double operator() (double argument) const =0
 
virtual double operator() (const Argument &argument) const =0
 
virtual AbsFunctionclone () const =0
 
virtual FunctionComposition operator() (const AbsFunction &f) const
 
virtual ParameterComposition operator() (const AbsParameter &p) const
 
Derivative derivative (const Variable &v) const
 
Derivative prime () const
 
virtual bool hasAnalyticDerivative () const
 
virtual Derivative partial (unsigned int) const
 

Detailed Description

Author

Definition at line 19 of file FunctionNoop.hh.

Constructor & Destructor Documentation

◆ FunctionNoop() [1/2]

Genfun::FunctionNoop::FunctionNoop ( const AbsFunction arg1)

Definition at line 10 of file FunctionNoop.cc.

10 :
11 _arg1(arg1->clone())
12{
13}

◆ FunctionNoop() [2/2]

Genfun::FunctionNoop::FunctionNoop ( const FunctionNoop right)

Definition at line 15 of file FunctionNoop.cc.

15 :
16 AbsFunction(right), _arg1(right._arg1->clone())
17{
18}

◆ ~FunctionNoop()

Genfun::FunctionNoop::~FunctionNoop ( )
virtual

Definition at line 21 of file FunctionNoop.cc.

22{
23 delete _arg1;
24}

Member Function Documentation

◆ dimensionality()

unsigned int Genfun::FunctionNoop::dimensionality ( ) const
overridevirtual

Reimplemented from Genfun::AbsFunction.

Definition at line 26 of file FunctionNoop.cc.

26 {
27 return _arg1->dimensionality();
28}
virtual unsigned int dimensionality() const
Definition: AbsFunction.cc:79

◆ hasAnalyticDerivative()

virtual bool Genfun::FunctionNoop::hasAnalyticDerivative ( ) const
inlineoverridevirtual

Reimplemented from Genfun::AbsFunction.

Definition at line 45 of file FunctionNoop.hh.

45{return true;}

◆ operator()() [1/2]

double Genfun::FunctionNoop::operator() ( const Argument a) const
overridevirtual

Implements Genfun::AbsFunction.

Definition at line 36 of file FunctionNoop.cc.

37{
38 return +((*_arg1)(x));
39}

◆ operator()() [2/2]

double Genfun::FunctionNoop::operator() ( double  argument) const
overridevirtual

Implements Genfun::AbsFunction.

Definition at line 31 of file FunctionNoop.cc.

32{
33 return +((*_arg1)(x));
34}

◆ partial()

Derivative Genfun::FunctionNoop::partial ( unsigned int  index) const
overridevirtual

Reimplemented from Genfun::AbsFunction.

Definition at line 42 of file FunctionNoop.cc.

42 {
43 return _arg1->partial(index);
44}
virtual Derivative partial(unsigned int) const
Definition: AbsFunction.cc:40

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