ECF
1.7
D:
Projekt
ECF
ECF_master
ECF
cartesian
Pos.h
1
#ifndef CGPPos_h
2
#define CGPPos_h
3
#include "Function.h"
4
namespace
Cartesian {
5
6
template
<
class
T>
7
class
PosT :
public
Function
8
{
9
public
:
10
PosT();
11
~PosT();
12
13
void
evaluate(std::vector<T>& inputs, T& result);
14
};
15
16
typedef
PosT<double>
Pos;
17
18
template
<
class
T>
19
PosT<T>::PosT()
20
{
21
name_ =
"pos"
;
22
nArguments_ = 1;
23
}
24
25
template
<
class
T>
26
PosT<T>::~PosT()
27
{}
28
29
template
<
class
T>
30
void
PosT<T>::evaluate(std::vector<T>& inputs, T& result)
31
{
32
result = (inputs[0] > 0 ? inputs[0] : 0);
33
}
34
}
35
#endif
//Pos_h
Cartesian::PosT
Definition
Pos.h:8
Generated on
for ECF by
1.18.0