GeoModel - GeoModelCore
ConstTimesParameter.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 //--------------------------ConstTimesParameter-----------------------------//
9 // //
10 // ConstTimesParameter, result of multiplying a parameter and a constant. //
11 // //
12 //--------------------------------------------------------------------------//
13 
14 #ifndef ConstTimesParameter_h
15 #define ConstTimesParameter_h 1
16 #include "GeoGenericFunctions/AbsParameter.h"
17 
18 namespace GeoGenfun {
19 
21 
22  PARAMETER_OBJECT_DEF(ConstTimesParameter)
23 
24  public:
25 
26  // Constructor
27  ConstTimesParameter(double, const AbsParameter *);
28 
29  // Copy constructor
31 
32  // Destructor
33  virtual ~ConstTimesParameter();
34 
35  // Retreive function value
36  virtual double getValue() const;
37 
38  private:
39 
40  // It is illegal to assign a ConstTimesParameter
41  const ConstTimesParameter & operator=(const ConstTimesParameter &right);
42 
43  double _constant;
44  AbsParameter *_parameter;
45  };
46 } // namespace GeoGenfun
47 #endif
Definition: Abs.h:15