Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
functions
FunctionFactory.cxx
Go to the documentation of this file.
1
12
// for truncation warning in debug mode
13
#ifdef _MSC_VER
14
#include "msdevstudio/MSconfig.h"
15
#endif
16
17
#include "
functions/FunctionFactory.h
"
18
19
// List of default functions
20
#include "
functions/BrokenPowerLaw.h
"
21
#include "
functions/ConstantF.h
"
22
#include "
functions/Erfc.h
"
23
#include "
functions/Exponential.h
"
24
#include "
functions/Gaussian.h
"
25
#include "
functions/Landau.h
"
26
#include "
functions/Linear.h
"
27
#include "
functions/LinearSumFunction.h
"
28
#include "
functions/LogNormal.h
"
29
#include "
functions/LogParabola.h
"
30
#include "
functions/Novosibirsk.h
"
31
#include "
functions/PowerLaw.h
"
32
#include "
functions/Quadratic.h
"
33
#include "
functions/Quadratic2.h
"
34
#include "
functions/Chi2Dist.h
"
35
36
using namespace
hippodraw;
37
38
FunctionFactory
*
FunctionFactory::s_instance
= 0;
39
40
FunctionFactory::FunctionFactory
()
41
{
42
}
43
44
FunctionFactory
*
FunctionFactory::instance
()
45
{
46
if
(
s_instance
== 0 ) {
47
s_instance
=
new
FunctionFactory
();
48
s_instance
->
initialize
();
49
}
50
return
s_instance
;
51
}
52
53
void
FunctionFactory::initialize
()
54
{
55
add
(
new
Gaussian
() );
56
add
(
new
Erfc
() );
57
add
(
new
Exponential
() );
58
add
(
new
Landau
() );
59
add
(
new
Linear
() );
60
add
(
new
LinearSumFunction
() );
61
add
(
new
LogNormal
() );
62
add
(
new
LogParabola
() );
63
add
(
new
Novosibirsk
() );
64
add
(
new
PowerLaw
() );
65
add
(
new
BrokenPowerLaw
() );
66
add
(
new
Quadratic
() );
67
add
(
new
Quadratic2
() );
68
add
(
new
ConstantF
() );
69
add
(
new
Chi2Dist
() );
70
}
Generated for HippoDraw Class Library by