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