GeoModel - GeoModelCore
ConstPlusParameter.h
1 //==========================================================================//
2 // Imported from the QAT library (qat.pitt.edu) by the copyright holder //
3 // Joe Boudreau. Software licensed under the terms and conditions of the //
4 // GNU Lesser Public License v3. //
5 //==========================================================================//
6 
7 
8 //--------------------------ConstPlusParameter------------------------------//
9 // //
10 // ConstPlusParameter, result of adding a constant to a parameters. //
11 // //
12 //--------------------------------------------------------------------------//
13 
14 #ifndef ConstPlusParameter_h
15 #define ConstPlusParameter_h 1
16 #include "GeoGenericFunctions/AbsParameter.h"
17 
18 namespace GeoGenfun {
19 
21 
22  PARAMETER_OBJECT_DEF(ConstPlusParameter)
23 
24  public:
25 
26  // Constructor
27  ConstPlusParameter(double, const AbsParameter *);
28 
29  // Copy constructor
31 
32  // Destructor
33  virtual ~ConstPlusParameter();
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 GeoGenfun
47 #endif
Definition: Abs.h:15