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

GenericFunctions/ConstPlusParameter.hh
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: ConstPlusParameter.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3//--------------------------ConstPlusParameter------------------------------//
4// //
5// ConstPlusParameter, result of adding a constant to a parameters. //
6// Joe Boudreau, Petar Maksimovic, November 1999 //
7// //
8//--------------------------------------------------------------------------//
9
10#ifndef ConstPlusParameter_h
11#define ConstPlusParameter_h 1
13
14namespace Genfun {
15
20 class ConstPlusParameter : public AbsParameter {
21
22 PARAMETER_OBJECT_DEF(ConstPlusParameter)
23
24 public:
25
26 // Constructor
28
29 // Copy constructor
31
32 // Destructor
34
35 // Retreive function value
36 virtual double getValue() const;
37
38 private:
39
40 // It is illegal to assign a ConstPlusParameter
41 const ConstPlusParameter & operator=(const ConstPlusParameter &right);
42
43 double _constant;
44 AbsParameter *_parameter;
45 };
46} // namespace Genfun
47#endif
#define PARAMETER_OBJECT_DEF(classname)
ConstPlusParameter(const ConstPlusParameter &right)
virtual double getValue() const
ConstPlusParameter(double, const AbsParameter *)