CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

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 
6 
7 namespace Genfun {
8 FUNCTION_OBJECT_IMP(FunctionNoop)
9 
11  _arg1(arg1->clone())
12 {
13 }
14 
16  _arg1(right._arg1->clone())
17 {
18 }
19 
20 
22 {
23  delete _arg1;
24 }
25 
26 unsigned int FunctionNoop::dimensionality() const {
27  return _arg1->dimensionality();
28 }
29 
30 
31 double FunctionNoop::operator ()(double x) const
32 {
33  return +((*_arg1)(x));
34 }
35 
36 double FunctionNoop::operator ()(const Argument & x) const
37 {
38  return +((*_arg1)(x));
39 }
40 
41 
42 Derivative FunctionNoop::partial(unsigned int index) const {
43  return _arg1->partial(index);
44 }
45 
46 } // namespace Genfun