struct CodeGenerator::FunctionTemplate¶
Overview¶
Immutable structure for specifying how to implement a generic function e.g. More…
#include <codeGenUtils.h> struct FunctionTemplate { // fields const std::string genericName; const unsigned int numArguments; const std::string doublePrecisionTemplate; const std::string singlePrecisionTemplate; // methods FunctionTemplate operator = (const FunctionTemplate& o); };
Detailed Documentation¶
Immutable structure for specifying how to implement a generic function e.g. gennrand_uniform
NOTE for the sake of easy initialisation first two parameters of GenericFunction are repeated (C++17 fixes)
Fields¶
const std::string genericName
Generic name used to refer to function in user code.
const unsigned int numArguments
Number of function arguments.
const std::string doublePrecisionTemplate
The function template (for use with functionSubstitute) used when model uses double precision.
const std::string singlePrecisionTemplate
The function template (for use with functionSubstitute) used when model uses single precision.