[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Internally used class for sum aggregate functions
Source position: fpexprpars.pp line 676
type TAggregateSum = class(TAggregateExpr) |
||
public |
||
function ConvertArgument(); override; |
|
Convert argument for sum aggregation |
procedure InitAggregate; override; |
|
Initialize sum aggregation |
procedure UpdateAggregate; override; |
|
Update sum aggregate with new value |
end; |
|
Internally used class for sum aggregate functions |
|
| | | ||
|
Internally used Base class for aggregate expressions |
|
| | | ||
|
Internally used class for representing function calls in expression trees |
|
| | | ||
|
Internally used class for identifier nodes in expression trees |
|
| | | ||
|
Class for representing nodes in expression trees |
|
| | | ||
The TAggregateSum class implements the sum aggregate function, which calculates the total of all processed numeric values. It extends TAggregateExpr to provide summation-specific aggregation logic.
The class maintains an internal accumulator that adds each new value to the running total. It handles different numeric types (integers, floats, currency) and performs appropriate type conversions to maintain precision during the summation process.
The sum function ensures type safety by converting arguments to compatible numeric types before performing addition operations. The final result type depends on the types of values processed during aggregation.
This class is used internally by the TFPExpressionParser class to construct an AST (Abstract Syntax Tree). There is normally no need for you to use or instantiate this class directly.
|
Class for representing nodes in expression trees |