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

GenericFunctions/FunctionNoop.hh
Go to the documentation of this file.
1 // -*- C++ -*-
2 // $Id: FunctionNoop.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3 //--------------------------FunctionNoop------------------------------------//
4 // //
5 // Class FunctionNoop, output of the unary + operator: //
6 // Joe Boudreau, February 2001 //
7 // //
8 //--------------------------------------------------------------------------//
9 #ifndef FunctionNoop_h
10 #define FunctionNoop_h 1
12 
13 namespace Genfun {
14 
19  class FunctionNoop : public AbsFunction {
20 
22 
23  public:
24 
25  // Constructor
26  FunctionNoop(const AbsFunction *arg1);
27 
28  // Copy constructor.
29  FunctionNoop(const FunctionNoop &right);
30 
31  // Destructor
32  virtual ~FunctionNoop();
33 
34  // Retreive function value
35  virtual double operator ()(double argument) const;
36  virtual double operator ()(const Argument & a) const;
37 
38  // Dimensionality
39  virtual unsigned int dimensionality() const;
40 
41  // Derivative.
42  Derivative partial (unsigned int) const;
43 
44  // Does this function have an analytic derivative?
45  virtual bool hasAnalyticDerivative() const {return true;}
46 
47  private:
48 
49  // It is illegal to assign a FunctionNoop
50  const FunctionNoop & operator=(const FunctionNoop &right);
51 
52  // The function we're negating.
53  const AbsFunction *_arg1;
54  };
55 } // namespace Genfun
56 #endif
virtual bool hasAnalyticDerivative() const
#define FUNCTION_OBJECT_DEF(classname)
FunctionNoop(const AbsFunction *arg1)
Definition: FunctionNoop.cc:10
Derivative partial(unsigned int) const
Definition: FunctionNoop.cc:42
virtual unsigned int dimensionality() const
Definition: FunctionNoop.cc:26
virtual double operator()(double argument) const
Definition: FunctionNoop.cc:31