JCL Help:TEasyEvaluator.AddFunc@string@TFloat32Func
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: TEasyEvaluator.AddFunc Method (string, TFloat32Func)
[+] TEasyEvaluator Methods
[+] TEasyEvaluator Properties
Search in JCL Help
Search in all projects
Summary
Adds a function.
Pascal
public procedure AddFunc(const AName: string; AFunc: TFloat32Func); overload;
public procedure AddFunc(const AName: string; AFunc: TFloat64Func); overload;
public procedure AddFunc(const AName: string; AFunc: TFloat80Func); overload;
public procedure AddFunc(const AName: string; AFunc: TUnary32Func); overload;
public procedure AddFunc(const AName: string; AFunc: TUnary64Func); overload;
public procedure AddFunc(const AName: string; AFunc: TUnary80Func); overload;
public procedure AddFunc(const AName: string; AFunc: TBinary32Func); overload;
public procedure AddFunc(const AName: string; AFunc: TBinary64Func); overload;
public procedure AddFunc(const AName: string; AFunc: TBinary80Func); overload;
public procedure AddFunc(const AName: string; AFunc: TTernary32Func); overload;
public procedure AddFunc(const AName: string; AFunc: TTernary64Func); overload;
public procedure AddFunc(const AName: string; AFunc: TTernary80Func); overload;
Parameters
Parameters | Description |
const AName: string | Identifier for the function. |
AFunc: TFloat32Func | Function pointer that evaluates the function. |
Description
Adds a function to the internal context. Multiple calls to the same function with the same parameters might be resolved to a single call during common sub-expression elimination (CSE) optimization. A possible workaround would be to add a fake extra parameter and pass in different constant for each distinct call.
About
Donator
Barry Kelly
Notes
Any functions added using these methods will override identifiers of the same name in external contexts added through ExtContextSet.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page