52 typedef double Func2(
double,
double);
53 typedef double Func3(
double,
double,
double);
54 typedef double Func4(
double,
double,
double,
double);
55 typedef double Func5(
double,
double,
double,
double,
double);
56 typedef double Func6(
double,
double,
double,
double,
double,
double);
61 typedef double Funcn(
int n,
double* params);
91 :
_type(
FUNC2), _retType(ExprType().FP(1).Varying()), _scalar(true),
_func((void*)
f), _minargs(2), _maxargs(2)
95 :
_type(
FUNC3), _retType(ExprType().FP(1).Varying()), _scalar(true),
_func((void*)
f), _minargs(3), _maxargs(3)
99 :
_type(
FUNC4), _retType(ExprType().FP(1).Varying()), _scalar(true),
_func((void*)
f), _minargs(4), _maxargs(4)
103 :
_type(
FUNC5), _retType(ExprType().FP(1).Varying()), _scalar(true),
_func((void*)
f), _minargs(5), _maxargs(5)
107 :
_type(
FUNC6), _retType(ExprType().FP(1).Varying()), _scalar(true),
_func((void*)
f), _minargs(6), _maxargs(6)
111 :
_type(
FUNC1V), _retType(ExprType().FP(1).Varying()), _scalar(true),
_func((void*)
f), _minargs(1), _maxargs(1)
115 :
_type(
FUNC2V), _retType(ExprType().FP(1).Varying()), _scalar(true),
_func((void*)
f), _minargs(2), _maxargs(2)
119 :
_type(
FUNC1VV), _retType(ExprType().FP(3).Varying()), _scalar(false),
_func((void*)
f), _minargs(1), _maxargs(1)
123 :
_type(
FUNC2VV), _retType(ExprType().FP(3).Varying()), _scalar(false),
_func((void*)
f), _minargs(2), _maxargs(2)
126 ExprFunc(
Funcn*
f,
int min,
int max)
127 :
_type(
FUNCN), _retType(ExprType().FP(1).Varying()), _scalar(true),
_func((void*)
f), _minargs(
min), _maxargs(
max)
130 ExprFunc(
Funcnv*
f,
int min,
int max)
131 :
_type(
FUNCNV), _retType(ExprType().FP(1).Varying()), _scalar(true),
_func((void*)
f), _minargs(
min), _maxargs(
max)
134 ExprFunc(
Funcnvv*
f,
int min,
int max)
135 :
_type(
FUNCNVV), _retType(ExprType().FP(3).Varying()), _scalar(false),
_func((void*)
f), _minargs(
min), _maxargs(
max)
with numParticles numAttributes A variable block contains variable names and types but doesn t care what the values are< pre > void f(const std::string &s, MyParticleData *p, int outputDim=3)