GeoModel - GeoModelCore
Main Page
Related Pages
Classes
Files
File List
GeoGenericFunctions
GeoGenericFunctions
ConstMinusFunction.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
//--------------------------ConstMinusFunction------------------------------//
8
// //
9
// ConstMinusFunction, result of subtracting a function from constant //
10
// //
11
//--------------------------------------------------------------------------//
12
13
#ifndef ConstMinusFunction_hh
14
#define ConstMinusFunction_hh
15
#include "GeoGenericFunctions/AbsFunction.h"
16
17
// For persistification
18
class
ConstMinusFunctionRecorder;
19
20
namespace
GeoGenfun
{
21
22
class
ConstMinusFunction
:
public
AbsFunction
{
23
24
FUNCTION_OBJECT_DEF(
ConstMinusFunction
)
25
26
public
:
27
28
// Constructor
29
ConstMinusFunction
(
double
constant,
const
AbsFunction
*arg);
30
31
// Copy constructor
32
ConstMinusFunction
(
const
ConstMinusFunction
&right);
33
34
// Destructor
35
virtual
~
ConstMinusFunction
();
36
37
// Retreive function value
38
virtual
double
operator ()(
double
argument)
const override
;
39
virtual
double
operator ()(
const
Argument
& a)
const override
;
40
41
// Dimensionality
42
virtual
unsigned
int
dimensionality()
const override
;
43
44
// Derivative.
45
virtual
Derivative
partial (
unsigned
int
)
const override
;
46
47
// Does this function.hhave an analytic derivative?
48
virtual
bool
hasAnalyticDerivative()
const override
{
return
true
;}
49
50
private
:
51
52
// It is illegal to assign a ConstMinusFunction
53
const
ConstMinusFunction
& operator=(
const
ConstMinusFunction
&right);
54
55
double
_constant;
56
const
AbsFunction
*_arg;
57
58
// For persistification:
59
friend
class ::ConstMinusFunctionRecorder;
60
61
};
62
}
// namespace GeoGenfun
63
#endif
GeoGenfun::Argument
Definition:
Argument.h:23
GeoGenfun::AbsFunction
Definition:
AbsFunction.h:45
GeoGenfun::ConstMinusFunction
Definition:
ConstMinusFunction.h:22
GeoGenfun::FunctionNoop
Definition:
FunctionNoop.h:22
GeoGenfun
Definition:
Abs.h:15
Generated on Thu May 28 2020 05:11:07 for GeoModel - GeoModelCore by
1.8.11