CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
src
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
7
namespace
Genfun {
8
FUNCTION_OBJECT_IMP
(FunctionNoop)
9
10
FunctionNoop
::
FunctionNoop
(const
AbsFunction
*arg1):
11
_arg1(arg1->clone())
12
{
13
}
14
15
FunctionNoop::FunctionNoop
(
const
FunctionNoop
& right):
16
_arg1(right._arg1->clone())
17
{
18
}
19
20
21
FunctionNoop::~FunctionNoop
()
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
Generated on Sun Jun 17 2012 08:08:26 for CLHEP by
1.8.1.1