CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
FunctionNoop.cc
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: FunctionNoop.cc,v 1.3 2003/09/06 14:04:14 boudreau Exp $
3// ---------------------------------------------------------------------------
4
5#include "CLHEP/GenericFunctions/FunctionNoop.hh"
6
7namespace Genfun {
8FUNCTION_OBJECT_IMP(FunctionNoop)
9
11 _arg1(arg1->clone())
12{
13}
14
16 AbsFunction(right), _arg1(right._arg1->clone())
17{
18}
19
20
22{
23 delete _arg1;
24}
25
26unsigned int FunctionNoop::dimensionality() const {
27 return _arg1->dimensionality();
28}
29
30
31double FunctionNoop::operator ()(double x) const
32{
33 return +((*_arg1)(x));
34}
35
36double FunctionNoop::operator ()(const Argument & x) const
37{
38 return +((*_arg1)(x));
39}
40
41
42Derivative FunctionNoop::partial(unsigned int index) const {
43 return _arg1->partial(index);
44}
45
46} // namespace Genfun
#define FUNCTION_OBJECT_IMP(classname)
Definition: AbsFunction.hh:149
virtual Derivative partial(unsigned int) const
Definition: AbsFunction.cc:40
virtual unsigned int dimensionality() const
Definition: AbsFunction.cc:79
virtual double operator()(double argument) const override
Definition: FunctionNoop.cc:31
virtual unsigned int dimensionality() const override
Definition: FunctionNoop.cc:26
FunctionNoop(const AbsFunction *arg1)
Definition: FunctionNoop.cc:10
Derivative partial(unsigned int) const override
Definition: FunctionNoop.cc:42
Definition: Abs.hh:14