TFPFunctionCallBack¶
Internally used class for callback-based function expressions
Declaration¶
Source position: fpexprpars.pp line 704
type
TFPFunctionCallBack = class(TFPExprFunction)
public
constructor CreateFunction;
procedure GetNodeValue;
property CallBack: TFPExprFunctionCallBack; {r}
end;
Description¶
The TFPFunctionCallBack class implements function calls that are resolved using callback mechanisms rather than built-in function implementations. It extends the expression framework to allow dynamic function resolution through user-defined callback procedures.
The callback function mechanism enables applications to provide custom function implementations that can be called from within expressions. This allows for extending the expression language with application-specific functions without modifying the core expression parser.
When a callback function is called, the registered callback procedure is invoked with the function arguments and is expected to compute and return the function result.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| CallBack read only | public | The callback procedure for function evaluation |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| CreateFunction | public | Create callback function with identifier and arguments |
| GetNodeValue | public | Get callback function result |
See also¶
| Name | Description |
|---|---|
| TFPExprNode | Class for representing nodes in expression trees |